No module named 'cv_bridge'

Hello,

At some point in the tutorial, I am trying to launch python scripts/search_for_mira_robot.py --classes coco.names --num_classes $num_classes --weights ./checkpoints/yolov3.tf but then I get the error :

File “scripts/search_for_mira_robot.py”, line 31, in
from cv_bridge import CvBridge
ImportError: No module named 'cv_bridge’

Although I did pip install cv_bridge that gave me Requirement already satisfied: cv_bridge in /opt/ros/kinetic/lib/python2.7/dist-packages (1.12.8) and indeed when creating an empty python script and juste calling import cv_bridge no error appear … So it seems to me that it comes from the search_for_mira_robot.py script.

If someone has a solution I would be grateful

Gracias amigos !

Hi!

Could you recheck the comand instructions in the notebook? You might have forgot to source and activate the virtual envs for python3

1 Like