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

OS X Installation Error

asked 2012-02-21 17:23:49 -0500

Dave Coleman gravatar image

updated 2014-01-28 17:11:26 -0500

ngrennan gravatar image

I am attempting to install ROS on OS X Lion. I've used ROS a lot in Linux but would like to be able to run ros distributed onto a Mac. I am getting stuck on step 1.6 with a "python-svn could not be imported" error. I have already attempted to install python-svn using pip, homebrew as well as an independent package I found online. Not sure what to do.

rosinstall ~/ros ""

Traceback (most recent call last):
  File "/usr/local/bin/rosinstall", line 5, in <module>
    pkg_resources.run_script('rosinstall==0.5.30', 'rosinstall')
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/", line 489, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/", line 1214, in run_script
    exec script_code in namespace, namespace
  File "/Library/Python/2.7/site-packages/rosinstall-0.5.30-py2.7.egg/EGG-INFO/scripts/rosinstall", line 781, in <module>

  File "/Library/Python/2.7/site-packages/rosinstall-0.5.30-py2.7.egg/EGG-INFO/scripts/rosinstall", line 703, in rosinstall_main

  File "/Library/Python/2.7/site-packages/rosinstall-0.5.30-py2.7.egg/EGG-INFO/scripts/rosinstall", line 234, in __init__

  File "/Library/Python/2.7/site-packages/rosinstall-0.5.30-py2.7.egg/EGG-INFO/scripts/rosinstall", line 283, in load_yaml

  File "/Library/Python/2.7/site-packages/rosinstall-0.5.30-py2.7.egg/EGG-INFO/scripts/rosinstall", line 223, in __init__

  File "build/bdist.macosx-10.7-intel/egg/vcstools/", line 51, in __init__
  File "build/bdist.macosx-10.7-intel/egg/vcstools/", line 66, in __init__
vcstools.vcs_base.VcsError: 'python-svn could not be imported. Please install python-svn. On debian systems sudo apt-get install python-svn'


edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted

answered 2012-03-10 21:24:49 -0500

KruseT gravatar image

Actually we moved back from pysvn as the dependencies seem to cause problems and due to licensing issues. So after an update of rosinstall and vcstools, this should be fine again. Note that easy_install does not update vcstools if you just tell it to update rosinstall. use pip or tell easy_install to also update vcstools.

edit flag offensive delete link more

answered 2012-02-28 16:16:04 -0500

William gravatar image

vcstools now requires pysvn, and it is not in pypi yet. I made a Homebrew formula for it here:

I would recommend not using Homebrew's Python, but just use Apple's.

You can use my formula in the mean time, while it is getting put into Homebrew, by running these commands:

brew pull 10570
brew install pysvn

Hope this helps.

edit flag offensive delete link more


Thanks again, but that isn't working either. Comment on

Dave Coleman gravatar image Dave Coleman  ( 2012-02-28 19:48:03 -0500 )edit

I can confirm this works against the system Python using the pull request.

mjcarroll gravatar image mjcarroll  ( 2012-02-29 04:06:50 -0500 )edit

answered 2012-02-21 18:32:15 -0500

tfoote gravatar image

updated 2012-02-21 18:36:53 -0500

At the moment vcstools relies on python-svn which is not available from pypi. We're working on getting python-svn into pypi, but for the moment users have reported installing python-svn from source on OSX works. Ticketed here

edit flag offensive delete link more


Thanks for the answer. I tried installing pysvn from source just now but am having issues with dependencies and homebrew. Maybe you could help? I posted the issue here: Overall I'm not 100% sure what I'm trying to do. I just want to get ROS working!

Dave Coleman gravatar image Dave Coleman  ( 2012-02-27 09:25:01 -0500 )edit

Question Tools



Asked: 2012-02-21 17:23:49 -0500

Seen: 1,197 times

Last updated: Mar 10 '12