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

rosinstall error: cannot import name get_vcs_client

asked 2012-12-14 03:24:17 -0600

Hi, I've found out that the rosinstall in my robot is not working, basically it says the following:

$ rosinstall
ERROR Cannot find rosinstall libraries, check your installation. One frequent cause is that rosinstall 0.5 is still installed in /usr/local/lib. Check the rosinstall wiki for solutions.
cannot import name get_vcs_client
  • I don't have any rosinstall library in /usr/local/lib
  • I've reinstalled rosinstall
  • I've done #easy_install vcstools (with no change since they were already there)
  • Computer data
    • OS: Ubuntu Server 12.04
    • ROS: Fuerte 1.8.10

I've been googleing and the only page I've found with the same problem is this one. But It couldn't help.

Any ideas?

Thanks in advance!

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
1

answered 2012-12-17 20:17:59 -0600

Oppenheim gravatar image

Hi, I had the same problem. first, I updated the packages using $ sudo apt-get update

then, I installed python-vcstools by $ sudo apt-get install python-vcstools

I don't know what happened with 'python-vcstools', but the rosinstall works well now. Hope it will work for you too! :)

Have a nice day!

edit flag offensive delete link more

Comments

Thank you, this worked! (I uninstalled everything first)

martimorta gravatar image martimorta  ( 2012-12-17 22:38:52 -0600 )edit
2

answered 2012-12-17 22:09:44 -0600

KruseT gravatar image

This also happens when python-vcstools is at an older version than python-rosinstall. Just updating both should solve this. The error message will be changed soon.

Do not mix apt-get installs with easy_install/pip stuff. Please remove all vcstools from /usr/local/lib/..., because it interferes with the apt-get install of python-vcstools.

apt-get installs rosinstall and vcstools to /usr/share/... easy_install/pip install them to /usr/local

If you install both, the binary from /usr/share will attempt to load the libraries from /usr/local, so all kinds of problems occur.

edit flag offensive delete link more

Comments

ok thanks! I'll clean my directories then

martimorta gravatar image martimorta  ( 2012-12-17 22:13:22 -0600 )edit
0

answered 2013-01-31 05:10:51 -0600

130s gravatar image

Adding a little more concrete workaround steps I had to take in addition to @KruseT's answer.

Ubuntu Quantal 64b, Groovy

sudo rm /usr/local/lib/python2.7/dist-packages/rosinstall-0.6.17-py2.7.egg/rosinstall -fR
sudo rm /usr/local/lib/python2.7/dist-packages/rosinstall-0.6.17-py2.7.egg/EGG-INFO/scripts/rosinstall 
sudo rm /usr/local/lib/python2.7/dist-packages/vcstools-0.1.18-py2.7.egg/ -fR

I never used easyinstall/pip on this machine at my office so they might have been installed by adminitrators.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2012-12-14 03:24:17 -0600

Seen: 608 times

Last updated: Jan 31 '13