Robotics StackExchange | Archived questions

Roscore error

Hello,

After installing some packages in ROS Fuerte with Xubuntu and trying to run roscore again, I get the following error:

    $ 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"/>

I also tried to run

$rosversion ros

Which outputs the same result:

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

I tried the solutions explained here:

http://answers.ros.org/question/37397/update-fuerte-to-1810-breaks-rospkg/

http://answers.ros.org/question/42321/problem-to-start-roscore-on-arm-ubuntu-1204/

But the same error still appears.

In case it is useful here are the relevant variables:

$ env | grep ROS ROSROOT=/opt/ros/fuerte/share/ros ROSLISPPACKAGEDIRECTORY=/opt/ros/fuerte/share/common-lisp/ros ROSPACKAGEPATH=/opt/ros/fuerte/stacks:/opt/ros/fuerte/share:/opt/ros/fuerte/share/ros ROSMASTERURI=http://localhost:11311 ROSWORKSPACE=/home/asctec/rosworkspace ROSDISTRO=fuerte ROSETCDIR=/opt/ros/fuerte/etc/ros

I also reinstalled ROS but the same error still appears.

Any suggestion on what else to try would be appreciated.

Thanks,

Asked by Pino on 2013-08-30 10:19:23 UTC

Comments

Answers