Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Error after openni_kinect install

Hello,

After installing the openni_kinect package using:

$ sudo apt-get install ros-fuerte-openni-camera ros-fuerte-openni-launch

I get the following error when trying to run roscore:

$ roscore
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/pkg_resources.py", line 499, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", 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/rospack.py", 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/rospack.py", 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/manifest.py", line 343, in parse_manifest_file
    return parse_manifest(manifest_name, f.read(), filename)
  File "/usr/local/lib/python2.7/dist-packages/rospkg-1.0.2-py2.7.egg/rospkg/manifest.py", line 404, in parse_manifest
    m.author = _check('author')(p, filename)
  File "/usr/local/lib/python2.7/dist-packages/rospkg-1.0.2-py2.7.egg/rospkg/manifest.py", 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"/>

I found this answer: http://answers.ros.org/question/37397/update-fuerte-to-1810-breaks-rospkg/ but after trying that solution and the ones listed on the comments this is the new error message:

$ roscore
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 4, in <module>
    import pkg_resources
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2711, in <module>
    parse_requirements(__requires__), Environment()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 584, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: rospkg==1.0.2
Invalid <param> tag: Cannot load command parameter [rosversion]: command [rosversion ros] returned with code [1]. 

Param xml is <param command="rosversion ros" name="rosversion"/>

Is there any way to solve this? This package would be really useful.

Thanks,