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

roscore error [closed]

asked 2015-04-24 13:18:29 -0500

sunny2015 gravatar image

updated 2015-04-25 01:55:04 -0500

gvdhoorn gravatar image

I installed fuerte on ubuntu12.04,when I begin to run roscore,it gets

asctec@asctec-mastermind:~/fuerte_workspace/sandbox/beginner_tutorials$ 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/", line 2711, in <module>
    parse_requirements(__requires__), Environment()
  File "/usr/lib/python2.7/dist-packages/", 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"/>

what would cause this error?

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by tfoote
close date 2015-04-25 03:39:41.900950


This is the same problem as:

tfoote gravatar image tfoote  ( 2015-04-25 03:31:50 -0500 )edit

They are different problem. In fact I have pip uninstall packages in /usr/local/lib/python2.7/dist-packages and you can see my rospkg is now in /usr/lib/python2.7/dist-packages.

sunny2015 gravatar image sunny2015  ( 2015-04-27 15:25:06 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2015-04-25 01:58:50 -0500

ahendrix gravatar image

I usually see this when I haven't sourced the setup.bash for ROS.

Did you source the setup.bash for your workspace, or the setup.bash in /opt/ros ? (note that you have to source the setup.bash every time you open a new terminal, or you can add it to your .bashrc)

edit flag offensive delete link more


I have source the setup, but still have such problem

sunny2015 gravatar image sunny2015  ( 2015-04-27 15:26:09 -0500 )edit

Question Tools

1 follower


Asked: 2015-04-24 13:18:29 -0500

Seen: 829 times

Last updated: Apr 25 '15