ros-drivers / axis_camera

Contains basic Python drivers for accessing an Axis camera's MJPG stream. Also provides control for PTZ cameras.
BSD 3-Clause "New" or "Revised" License
52 stars 72 forks source link

import camera_info_manager ModuleNotFoundError: No module named 'camera_info_manager' #77

Open deepumdev opened 1 year ago

deepumdev commented 1 year ago

I have ros melodic and axisip3935-lr camera. I cloned the github and catkin_make done. Then i tried to launch the node. But, the terminal showed error "import camera_info_manager ModuleNotFoundError: No module named 'camera_info_manager'". How can i rectify it.

awesomebytes commented 1 year ago

You are missing dependencies, try:

# cd into your catkin_ws, you should see the 'src' folder here (and maybe build/devel/install if you tried to compile)
rosdep install --from-paths src --ignore-src -r

It will pull the declared dependencies in package.xml (if you have more stuff in the workspace, it will install the dependencies for those too).

deepumdev commented 1 year ago

You are missing dependencies, try:

# cd into your catkin_ws, you should see the 'src' folder here (and maybe build/devel/install if you tried to compile)
rosdep install --from-paths src --ignore-src -r

It will pull the declared dependencies in package.xml (if you have more stuff in the workspace, it will install the dependencies for those too).

I have tried and did catkin_make with camera_info_manager. But it raise an error that self.cname= camera_info_manager.genCameraNqme(self.hostname) AttributeError:module 'camera_info_manager' has no attribute 'genCameraName'. How can i debug it. Could you please help me ?

civerachb-cpr commented 1 year ago

What branch of axis_camera do you have checked-out? If you're using Melodic (which is now EOL -- I would advise upgrading to Noetic as soon as you reasonably can) you'll need to use the melodic-devel branch of axis_camera, not master or noetic-devel.