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

roslib does not exist!

asked 2013-01-13 03:03:38 -0500

dptsrk gravatar image

updated 2014-01-28 17:14:49 -0500

ngrennan gravatar image

I am new to ros and am still following the tutorials. I was following "Writing a Simple Publisher and Subscriber (Python)", but when I try to compile the code it shows "ImportError: No module named roslib".

I have ensured that PYTHONPATH contains $ROS_ROOT/core/roslib/src. But when I go to the file system, $ROS_ROOT/core is there, but roslib and src do not exist.

System Information: Using the fuerte Ubuntu VirtualBox Image.

N.B. ROS_ROOT is /opt/ros/fuerte/share/ros

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2013-01-13 20:06:17 -0500

dptsrk gravatar image

Actually the problem has been resolved now.

I was trying to run the talker.py code like you would normally run python codes. I realized later that you have to call make for it to run.

edit flag offensive delete link more
0

answered 2013-01-13 06:53:23 -0500

KruseT gravatar image

In fuerte, the roslib packages are installed to:

/opt/ros/fuerte/lib/python2.7/dist-packages/roslib

You should not have to change the PYTHONPATH manually yourself. Just sourcing /opt/ros/fuerte/setup.bash should set up everything just fine. PYTHONPATH should be something like:

/opt/ros/fuerte/lib/python2.7/dist-packages

To help you more, you need to provide more details such as what tutorial you are following and which step exactly fails.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2013-01-13 03:03:38 -0500

Seen: 1,990 times

Last updated: Jan 13 '13