ROS Resources: Documentation | Support | Discussion Forum | Service Status | Q&A answers.ros.org
Ask Your Question
2

roslib.load_manifest error - Python

asked 2013-12-05 04:42:04 -0500

Phorce gravatar image

updated 2016-10-24 09:03:04 -0500

ngrennan gravatar image

I'm trying to convert the points in PointCloud2 Messages to a numpy array, now, my main problem is whenever I try to use this line:

import roslib; roslib.load_manifest('python_msg_conversions')

I'm importing the roslib etc.. I get the following error:

$ python talker.py 

Traceback (most recent call last):
  File "talker.py", line 1, in <module>
    import roslib; roslib.load_manifest('python_msg_conversions')
  File "/opt/ros/hydro/lib/python2.7/dist-packages/roslib/launcher.py", line 62, in load_manifest
    sys.path = _generate_python_path(package_name, _rospack) + sys.path
  File "/opt/ros/hydro/lib/python2.7/dist-packages/roslib/launcher.py", line 93, in _generate_python_path
    m = rospack.get_manifest(pkg)
  File "/usr/lib/pymodules/python2.7/rospkg/rospack.py", line 159, in get_manifest
    return self._load_manifest(name)
  File "/usr/lib/pymodules/python2.7/rospkg/rospack.py", line 198, in _load_manifest
    retval = self._manifests[name] = parse_manifest_file(self.get_path(name), self._manifest_name)
  File "/usr/lib/pymodules/python2.7/rospkg/rospack.py", line 190, in get_path
    raise ResourceNotFound(name, ros_paths=self._ros_paths)
rospkg.common.ResourceNotFound: python_msg_conversions
ROS path [0]=/opt/ros/hydro/share/ros
ROS path [1]=/home/O/src
ROS path [2]=/home/catkin_ws/src
ROS path [3]=/opt/ros/hydro/share
ROS path [4]=/opt/ros/hydro/stacks

I have no idea as to why I'm getting this error either.

I hope someone can help me

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2013-12-05 19:54:14 -0500

gvdhoorn gravatar image

updated 2013-12-06 02:00:39 -0500

rospkg.common.ResourceNotFound: python_msg_conversions

It looks like the python_msg_conversions package isn't on the search path. Do you have it installed?


Edit: just now noticed you're on Hydro. Is this a catkin package? The rospy tutorials (see Writing a Simple Publisher and Subscriber for instance) show that catkin packages should no longer use roslib.load_manifest(..).

edit flag offensive delete link more

Comments

Alternatively, this link explain the change well too.

130s gravatar image130s ( 2013-12-09 04:20:05 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2013-12-05 04:42:04 -0500

Seen: 1,181 times

Last updated: Mar 17 '16