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

what is inside your $PYTHONPATH?

asked 2012-07-30 11:35:57 -0500

Zara gravatar image

updated 2014-01-28 17:13:11 -0500

ngrennan gravatar image

Hello all,

I am trying to find a solution for the problem I have with this error message:

import rospkg ImportError: No module named rospkg

Can somebody tell me what it should be inside the $PYTHONPATH exactly? For me it is only : /opt/ros/fuerte/lib/python2.7/dist-packages

Thanks,

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2012-07-30 22:19:15 -0500

Lorenz gravatar image

You didn't provide any information about the platform you are using,how you installed ROS and which version you are using (see the support guidelines) so I assume you installed from Debian packages and you use Fuerte.

The debian package that contains rospkg is python-rospkg and the corresponding files are put into /usr/share/pyshared which is a system directory. That means that you don't need to add it to the python path since that's one of the default locations python searches for modules.

Did you install python-rospkg:

sudo apt-get install python-rospkg

Normally, the package should be installed automatically since it is a dependency of ROS. If it's not there, I'm sure something went wrong with your ROS installation.

edit flag offensive delete link more

Comments

I checked that one too. Finally I erased my Ubuntu 12.0.4 and re-installed Ubuntu 12.0.4 and ROS again. Everything works fine now. Knocking the wood!!

Zara gravatar image Zara  ( 2012-08-01 08:13:35 -0500 )edit

Question Tools

Stats

Asked: 2012-07-30 11:35:57 -0500

Seen: 1,166 times

Last updated: Jul 30 '12