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

rosdep package/name?

asked 2012-05-15 01:35:43 -0500

liborw gravatar image

updated 2014-04-20 14:09:31 -0500

ngrennan gravatar image

Hi, In my previous question I have problem with rosmake complaining that it can not find the dependency, which was solved by changing:

<rosdep name="gsl"/>


<rosdep package="gsl"/>

however, I wanted to add dynamic_reconfigure but the building process failed with error, but when I changed rosdep back to name, it finishes but complain as before. The build error is:

load_module did not return. Unable to determine dependencies for file listed above.
  Traceback (most recent call last):
    File "/opt/ros/electric/stacks/driver_common/dynamic_reconfigure/cmake/gendeps", line 64, in <module>
      imp.load_module("__main__", f, srcfile, ('.cfg', 'U', 1))
    File "/home/wagnelib/Source/ros_workspace/my_package/cfg/Wrinkledness.cfg", line 4, in <module>
    File "/opt/ros/electric/ros/core/roslib/src/roslib/", line 75, in load_manifest
      sys.path = prefix + _generate_python_path(package_name, [], os.environ) + sys.path
    File "/opt/ros/electric/ros/core/roslib/src/roslib/", line 134, in _generate_python_path
      raise roslib.packages.InvalidROSPkgException("While loading package '%s': cannot load dependency '%s'\nLower level error was %s"%(pkg, d.package, traceback.format_exc()))
  roslib.packages.InvalidROSPkgException: While loading package 'clopema': cannot load dependency 'gsl'
  Lower level error was Traceback (most recent call last):
    File "/opt/ros/electric/ros/core/roslib/src/roslib/", line 128, in _generate_python_path
      paths.extend(_generate_python_path(d.package, depends, env))
    File "/opt/ros/electric/ros/core/roslib/src/roslib/", line 118, in _generate_python_path
      m = roslib.manifest.parse_file(manifest_file)
    File "/opt/ros/electric/ros/core/roslib/src/roslib/", line 139, in parse_file
      return roslib.manifestlib.parse_file(Manifest(), file)
    File "/opt/ros/electric/ros/core/roslib/src/roslib/", line 486, in parse_file
      return parse(m, text, file)
    File "/opt/ros/electric/ros/core/roslib/src/roslib/", line 525, in parse
      m.rosdeps = check('rosdep')(p, filename)
    File "/opt/ros/electric/ros/core/roslib/src/roslib/", line 149, in check
      names = [d['name'].value for d in rosdeps]
    File "/usr/lib/python2.6/xml/dom/", line 530, in __getitem__
      return self._attrs[attname_or_tuple]
  KeyError: 'name'

  CMake Error at /opt/ros/electric/stacks/driver_common/dynamic_reconfigure/cmake/cfgbuild.cmake:65 (string):
    string sub-command REPLACE requires at least four arguments.
  Call Stack (most recent call first):
    /opt/ros/electric/stacks/driver_common/dynamic_reconfigure/cmake/cfgbuild.cmake:83 (gencfg_cpp)
    CMakeLists.txt:26 (include)

  -- Configuring incomplete, errors occurred!
edit retag flag offensive close merge delete



Strange. I've been using <rosdep name="..."> and <depend package="..."> all along.

joq gravatar image joq  ( 2012-05-15 06:40:24 -0500 )edit

@joq I agree. I don't think rosdep supports the package attribute.

piyushk gravatar image piyushk  ( 2012-05-15 07:50:33 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2012-06-25 16:25:18 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

From @joq and @piyushk rosdep should only use the name attribute.

edit flag offensive delete link more

Question Tools


Asked: 2012-05-15 01:35:43 -0500

Seen: 1,036 times

Last updated: Jun 25 '12