Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 49

ImportError: No module named rospy

$
0
0
When I roslaunch my node, the error I receive is ImportError: No module named rospy But when I open up the python environment and run `import rospy`, it imports successfully and I can access `rospy.__file__`, which returns /opt/ros/indigo/lib/python2.7/dist-packages/rospy/__init__.pyc which is on my PYTHONPATH: declare -x PYTHONPATH="/usr/lib/python2.7/dist-packages:/home//indigo_ws/devel/lib/python2.7/dist-packages:/opt/ros/indigo/lib/python2.7/dist-packages" I do have a custom installation of Python that seems to have messed up some catkin_pkg installation, which is why it's had to be appended to the path. When I remove it to run roslaunch as a debug, I just get the same error. Running Ubuntu 14.04 on a Raspberry Pi, if that helps.

Viewing all articles
Browse latest Browse all 49

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>