Roscore error [closed]

asked 2013-08-30 10:19:23 -0500

Pino gravatar image

updated 2013-09-02 09:49:41 -0500

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 ROS_ROOT=/opt/ros/fuerte/share/ros ROSLISP_PACKAGE_DIRECTORY=/opt/ros/fuerte/share/common-lisp/ros ROS_PACKAGE_PATH=/opt/ros/fuerte/stacks:/opt/ros/fuerte/share:/opt/ros/fuerte/share/ros ROS_MASTER_URI=http://localhost:11311 ROS_WORKSPACE=/home/asctec/ros_workspace ROS_DISTRO=fuerte ROS_ETC_DIR=/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,

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2017-12-05 18:40:55.738160