How to solve 'ImportError: No module named object_recognition_capture.orb_capture' ? [closed]
I followed recognition kitchen doc.
I use ROS electric version.
I connect kinect device and run:
roslaunch openni_camera openni_node.launch
rosrun object_recognition_core orb_template.py -o my_textured_plane
And I get this message:
sam@sam:~/code/ros/sam_perception/sam_recognition$ rosrun object_recognition_core orb_template.py -o my_textured_plane
Traceback (most recent call last):
File "/opt/ros/electric/stacks/object_recognition/object_recognition_core/bin/orb_template.py", line 3, in <module>
from object_recognition_capture.orb_capture import *
ImportError: No module named object_recognition_capture.orb_capture
sam@sam:~/code/ros/sam_perception/sam_recognition$
How to solve it?
Thank you~
Is your PYTHONPATH set correctly? it must include directory path where concerned module is residing.
How to set PYTHONPATH? Thank you~
export PYTHONPATH=...
I set $PYTHONPATH to /usr/bin/python:/opt/ros/electric/ros/core/roslib/src: but it doesn't work. What to do next? Thank you~
PYTHONPATH must contain reference to your module object_recognition_capture.orb_capture. Please read http://www.stereoplex.com/blog/understanding-imports-and-pythonpath to understand PYTHONPATH
That is not my module. I just want to run it. How to find the correct path? Thank you~