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

Revision history [back]

It looks like you still have an old, pip based installation of rosws on your system. I guess which rosws shows /usr/local/bin/rosws instead of /usr/bin/rosws. Get rid of the old installation and try again:

sudo pip uninstall rosinstall vcstools rospkg

It looks like you still have an old, pip based installation of rosws on your system. I guess which rosws shows /usr/local/bin/rosws instead of /usr/bin/rosws. Get rid of the old installation and try again:

sudo pip uninstall rosinstall vcstools rospkg

Edit: You are right, you are not supposed to use pip on Ubuntu anymore. But apparently, you installed rosinstall using either pip or easy_install a while ago. Now you need to get rid of it again. Unfortunately, easy_install does not provide an uninstall option, but pip does. I don't know why pip uninstall does not work for you (unfortunately you forgot to tell us the error, see the support guidelines). Have a look at this thread for more information on the deprecation of pip.

Alternatively, you can get rid of the python packages rosinstall, vcstools and rospkg manually. They were installed in /usr/local, binaries in the subdirectory bin and python stuff somewhere under lib/dist-packages or lib/site-packages.

It looks like you still have an old, pip based installation of rosws on your system. I guess which rosws shows /usr/local/bin/rosws instead of /usr/bin/rosws. Get rid of the old installation and try again:

sudo pip uninstall rosinstall vcstools rospkg

Edit: You are right, you are not supposed to use pip on Ubuntu anymore. But apparently, you installed rosinstall using either pip or easy_install a while ago. Now you need to get rid of it again. Unfortunately, easy_install does not provide an uninstall option, but pip does. I don't know why pip uninstall does not work for you (unfortunately you forgot to tell us the error, see the support guidelines). Have a look at this thread for more information on the deprecation of pip.

Alternatively, you can get rid of the python packages rosinstall, vcstools and rospkg manually. They were installed in /usr/local, binaries in the subdirectory bin and python stuff somewhere under lib/dist-packages or lib/site-packages.

Edit 2 Fact is, the path of the binary in the exception you posted in your question points to rosws in /usr/local/bin. Fact is that installing rosws with the debian package python-rosinstall will put the binary in /usr/bin (you can double-check if you don't believe me with dpkg -L python-rosinstall). That means you can uninstall python-rosinstall if you want (sudo apt-get remove python-rosinstall), it will just not help and probably uninstall your complete ros installation.

Apparently you have a conflicting version of rosws, rosinstall, vcstools etc. that might be causing the exception you get. I don't know where this installation is coming from on your system, but most commonly these files were relicts from easy_install/pip based installations, that's why I guessed that you might have used it.

To get rid of it, you could try installing pip and executing the command I posted above to uninstall it. Using it for uninstalling something is fine, I'm just not sure if it will work. If it does not work, you need to delete the rosinstall binaries and python files manually as I said in my previous edit.