roscore error
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/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"/>
what would cause this error?
Asked by sunny2015 on 2015-04-24 13:18:29 UTC
Answers
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)
Asked by ahendrix on 2015-04-25 01:58:50 UTC
Comments
I have source the setup, but still have such problem
Asked by sunny2015 on 2015-04-27 15:26:09 UTC
Comments
This is the same problem as: http://answers.ros.org/question/207802/whats-the-problem/
Asked by tfoote on 2015-04-25 03:31:50 UTC
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.
Asked by sunny2015 on 2015-04-27 15:25:06 UTC