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


asked 2015-04-24 11:18:11 -0500

sunny2015 gravatar image

updated 2015-04-25 03:35:50 -0500

130s gravatar image

when I run roscore,the output is like below,how can I solve this problem?

WARNING: unable to configure logging. No log files will be generated
Checking log directory for disk usage. This may take awhile.
Press Ctrl-C to interrupt
Done checking log file disk usage. Usage is <1GB.

Traceback (most recent call last):
  File "/opt/ros/fuerte/bin/rosversion", line 5, in <module>
    pkg_resources.run_script('rospkg==1.0.2', 'rosversion')
  File "/usr/lib/python2.7/dist-packages/", line 499, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/dist-packages/", line 1235, in run_script
    execfile(script_filename, namespace, namespace)
  File "/usr/local/lib/python2.7/dist-packages/rospkg-1.0.2-py2.7.egg/EGG-INFO/scripts/rosversion", line 76, in <module>
    version = rosstack.get_stack_version(stack_name)
  File "/usr/local/lib/python2.7/dist-packages/rospkg-1.0.2-py2.7.egg/rospkg/", line 359, in get_stack_version
    return get_stack_version_by_dir(self.get_path(stack))
  File "/usr/local/lib/python2.7/dist-packages/rospkg-1.0.2-py2.7.egg/rospkg/", line 412, in get_stack_version_by_dir
    m = parse_manifest_file(stack_dir, STACK_FILE)
  File "/usr/local/lib/python2.7/dist-packages/rospkg-1.0.2-py2.7.egg/rospkg/", line 343, in parse_manifest_file
    return parse_manifest(manifest_name,, filename)
  File "/usr/local/lib/python2.7/dist-packages/rospkg-1.0.2-py2.7.egg/rospkg/", line 404, in parse_manifest = _check('author')(p, filename)
  File "/usr/local/lib/python2.7/dist-packages/rospkg-1.0.2-py2.7.egg/rospkg/", line 67, in check
    raise InvalidManifest("Invalid manifest file [%s]: must have a single '%s' element"%(filename, name))
rospkg.manifest.InvalidManifest: Invalid manifest file [/opt/ros/fuerte/share/ros/stack.xml]: must have a single 'author' element
Invalid <param> tag: Cannot load command parameter [rosversion]: command [rosversion ros] returned with code [1]. 

Param xml is <param command="rosversion ros" name="rosversion"/>
edit retag flag offensive close merge delete


some more or better info, what commands did you run to install? what os, which ros version, etc, etc,

inflo gravatar image inflo  ( 2015-04-24 11:22:53 -0500 )edit

Fuerte and Ubuntu 12.04 (Precise)

sunny2015 gravatar image sunny2015  ( 2015-04-24 11:36:34 -0500 )edit

I run : sudo apt-get install ros-fuerte-desktop-full to install fuerte

sunny2015 gravatar image sunny2015  ( 2015-04-24 11:41:10 -0500 )edit

sorry, dont know, try to remove and re-install again

inflo gravatar image inflo  ( 2015-04-24 12:53:50 -0500 )edit

how to remove the ros? sorry, I am a beginner

sunny2015 gravatar image sunny2015  ( 2015-04-24 13:21:00 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2015-04-25 03:39:15 -0500

tfoote gravatar image

You are running a very old version of rospkg. The last verion released is 1.0.35 your traceback indicates 1.0.2 which was released in April 2012.

Also from your trackback I can see it's located in /usr/local/lib which is indicative of a pip/easy_install based installation. You should make sure to uninstall that copy which will mask out the newer version from the debian packages. To see how to uninstall via pip you can get instructions here

To see what version you're running check that you get something like the following.

$ dpkg -l | grep rospkg
ii  python-rospkg                                         1.0.35-1                                            all          ROS package library
$ pip freeze | grep rospkg
edit flag offensive delete link more

Question Tools

1 follower


Asked: 2015-04-24 11:18:11 -0500

Seen: 2,107 times

Last updated: Apr 25 '15