ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

i met the same problem, here is how i "solved" it, ugly but worked

write "import cv2" into import sys sys.path.remove('/opt/ros/kinetic/lib/python2.7/dist-packages') # in order to import cv2 under python3 import cv2 sys.path.append('/opt/ros/kinetic/lib/python2.7/dist-packages') # append back in order to import rospy

i met the same problem, here is how i "solved" it, ugly but worked

write "import cv2" into into

import sys
sys.path.remove('/opt/ros/kinetic/lib/python2.7/dist-packages') # in order to import cv2 under python3
import cv2
sys.path.append('/opt/ros/kinetic/lib/python2.7/dist-packages') # append back in order to import rospy

rospy