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

ImportError: No module named rospkg

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

Sanket_Kumar gravatar image

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

Hi Guys,

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

http://www.ros.org/wiki/rosserial_arduino/Tutorials/Hello%20World

But I have gotten an error message for this command:

rosrun rosserial_python serial_node.py /dev/ttyUSB0

I got following error message:

Traceback (most recent call last):
  File "/home/sanket/ros_workspace/rosserial/rosserial_python/nodes/serial_node.py", line 38, in <module>
import roslib; roslib.load_manifest("rosserial_python")
  File "/opt/ros/fuerte/lib/python2.7/dist-packages/roslib/__init__.py", line 50, in <module>
from roslib.launcher import load_manifest
  File "/opt/ros/fuerte/lib/python2.7/dist-packages/roslib/launcher.py", 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
1

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

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

Stats

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

Seen: 1,306 times

Last updated: Sep 24 '12