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

An error of "ERROR PYTHONPATH"

asked 2011-02-20 23:27:12 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hi,

I want to make my ROS system clean by not having this one error. The error as I pasted below after invoking the command "roswtf". How should I go about this?

Output:

Loaded plugin tf.tfwtf
No package or stack in context
================================================================================
Static checks summary:

Found 1 error(s).

ERROR PYTHONPATH [/opt/ros/diamondback/ros/core/roslib/src:/opt/ros/unstable/ros/core/roslib/src:/opt/ros/diamondback/ros/core/roslib/src:] 
is invalid: Multiple roslib directories in PYTHONPATH (there should only be one)
================================================================================

ROS Master does not appear to be running.
Online graph checks will not be run.
ROS_MASTER_URI is [http://localhost:11311]

Thanks in advance..

edit retag flag offensive close merge delete

Comments

Please don't put [SOLVED] in the title. Also, don't mark every question as a community wiki, there is no reason for that.
mjcarroll gravatar image mjcarroll  ( 2011-02-21 02:25:03 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
1

answered 2011-02-21 00:59:30 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Your ROS_PACKAGE_PATH is not set correctly. It should never mix multiple distributions.

When you follow the environment setup instructions, make sure you only source one version of setup.bash in your ~/.bashrc.

edit flag offensive delete link more

Comments

In my ~/.bashrc file, they are correct I think as the related lines are like this: #source /opt/ros/cturtle/setup.sh #source /opt/ros/diamondback/setup.bash source /home/shah/ni/setup.bash source /opt/ros/diamondback/setup.bash
alfa_80 gravatar image alfa_80  ( 2011-02-21 01:03:04 -0500 )edit
The first 2 lines are commented, no effect at all.
alfa_80 gravatar image alfa_80  ( 2011-02-21 01:03:34 -0500 )edit
0

answered 2011-02-21 02:11:40 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I resolved it by reinstalling the diamondback following the instructions in the ROS wiki..

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-02-20 23:27:12 -0500

Seen: 388 times

Last updated: Feb 21 '11