ROS Resources: Documentation | Support | Discussion Forum | Service Status | Q&A answers.ros.org
Ask Your Question
3

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 "http://packages.ros.org/cgi-bin/gen_rosinstall.py?rosdistro=electric&variant=desktop-full&overlay=no"

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/pkg_resources.py", 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/pkg_resources.py", 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/vcs_abstraction.py", line 51, in __init__
  File "build/bdist.macosx-10.7-intel/egg/vcstools/svn.py", 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'

Thanks!

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
3

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
2

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:

https://github.com/mxcl/homebrew/pull/10570

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

Comments

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

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

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

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

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

Comments

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: https://github.com/mxcl/homebrew/issues/10541. Overall I'm not 100% sure what I'm trying to do. I just want to get ROS working!

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

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

4 followers

Stats

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

Seen: 1,005 times

Last updated: Mar 10 '12