python conflicts with homebrew-based install on osx [closed]

asked 2013-02-27 06:45:13 -0500

updated 2014-01-28 17:15:27 -0500

ngrennan gravatar image

I've been trying to install groovy on my mac running osx 10.8 and and am coming up against the following error during rosmake:

ImportError: cannot import name urandom
[rospack] Error: could not find python module 'rosdep2.rospack'. is rosdep up-to-date (at least 0.10.4)?

According to this question, the error has something to do with using homebrew's version of python instead of the system version. The problem is that installing pip, and many other python tools with homebrew requires installing homebrew's version of python first (pip is actually included in the python formula itself). I suppose it would be possible to install pip from source, but it will still be difficult to prevent homebrew from installing python when trying to satisfy rosdeps. Has anyone figured out a way around this? Is there a way to make homebrew's python play nice with ROS?

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2015-10-30 18:03:20.491076

Comments

@Dan Lazewatsky: Hey again! I'm still trying to resolve this issue too. Any luck yet?

Noldorin gravatar imageNoldorin ( 2013-02-28 12:39:02 -0500 )edit

Seems it's an issue introduced by a change in python 2.7.3. <https://github.com/klen/python-mode/issues/87>. Temporarily unlinking brew's python (so it falls back to OSX's python 2.7.2) gets around the issue. Now I'm just getting lots of nasty boost errors...

Noldorin gravatar imageNoldorin ( 2013-02-28 12:43:39 -0500 )edit

In case you're curious, they're of the form ld: library not found for -l:/usr/local/lib/libboost_signals-mt.dylib. The following posts may be relevant: <http://answers.ros.org/question/54503/install-on-osx-fails-with-missing-libboost_signals-mtdylib/> and ...

Noldorin gravatar imageNoldorin ( 2013-02-28 12:48:02 -0500 )edit

Yeah, that works. Now various nasty C++ errors: <http://answers.ros.org/question/56673/rosmake-fails-with-cclang-errors/>. Almost there, I feel! Once finished, one of us should really write a new complete guide to building ROS on OS X, at least in note-form. :)

Noldorin gravatar imageNoldorin ( 2013-02-28 13:17:53 -0500 )edit
1

Open a new question, the last three comments are not related to this question.

William gravatar imageWilliam ( 2013-02-28 13:19:50 -0500 )edit

@William: Calm it, I'm just attempting to be nice and update Dan or where I am given we're going through the same process. (Who are you to tell me this anyway?)

Noldorin gravatar imageNoldorin ( 2013-02-28 13:21:43 -0500 )edit

@Noldorin, sorry didn't mean to come off short, I simply want others to find your question so that they don't reproduce your work. Comments are harder to sift through. And if you found away around this problem, please post it as an answer.

William gravatar imageWilliam ( 2013-02-28 14:01:37 -0500 )edit