TypeError: 'module' object is not callable when trying to run ROS executable

asked 2023-07-19 03:50:38 -0500

kwasi_dp gravatar image

I wrote a ROS2 program that streams from a camera using OpenCV. However, when I try to run the file, I get the following error: .../lib/depth_camera/stream_continuously", line 33, in <module> sys.exit(load_entry_point('depth-camera==0.0.0', 'console_scripts', stream_continuously')()) TypeError: 'module' object is not callable

The program works fine when I just run the python file as opposed to the ROS executable.

edit retag flag offensive close merge delete