Ask Your Question
3

OS X Installation Error

asked Feb 21

Dave Coleman gravatar image Dave Coleman flag of United States
31 3 7
http://davetcoleman.com/

updated Feb 29

mjcarroll gravatar image mjcarroll flag of United States
2863 21 41 63
http://mjcarroll.net/

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!

delete close flag offensive retag edit

3 Answers

Sort by ยป oldest newest most voted
2

answered Mar 11

KruseT gravatar image KruseT
174 2 8

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.

link delete flag offensive edit
2

answered Feb 28

William gravatar image William
674 10 28
http://williamjwoodall.co...

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.

link delete flag offensive edit

Comments

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

Dave Coleman (Feb 29)edit

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

mjcarroll (Feb 29)edit
0

answered Feb 22

tfoote gravatar image tfoote flag of United States
11130 27 85 172
http://www.ros.org/

updated Feb 22

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

link delete flag offensive edit

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 (Feb 27)edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
[hide preview]

Question tools

Follow
4 followers

subscribe to rss feed

Stats

Asked: Feb 21

Seen: 398 times

Last updated: Mar 11