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

ImportError: No module named rospkg

asked 2012-09-21 08:07:14 -0600

Sanket_Kumar gravatar image

updated 2012-09-21 08:20:17 -0600

Hi Guys,

I was trying to follow the tutorials under rosserial_arduino from this link:

But I have gotten an error message for this command:

rosrun rosserial_python /dev/ttyUSB0

I got following error message:

Traceback (most recent call last):
  File "/home/sanket/ros_workspace/rosserial/rosserial_python/nodes/", line 38, in <module>
import roslib; roslib.load_manifest("rosserial_python")
  File "/opt/ros/fuerte/lib/python2.7/dist-packages/roslib/", line 50, in <module>
from roslib.launcher import load_manifest
  File "/opt/ros/fuerte/lib/python2.7/dist-packages/roslib/", line 42, in <module>
import rospkg
ImportError: No module named rospkg

Thanks in advance.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-09-24 07:17:55 -0600

tfoote gravatar image

This specific error should be resolved by installing rospkg. On Ubuntu install python-rospkg via apt.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2012-09-21 08:07:14 -0600

Seen: 1,294 times

Last updated: Sep 24 '12