Robotics StackExchange | Archived questions

python conflicts with homebrew-based install on osx

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?

Asked by Dan Lazewatsky on 2013-02-27 07:45:13 UTC

Comments

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

Asked by Noldorin on 2013-02-28 13:39:02 UTC

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...

Asked by Noldorin on 2013-02-28 13:43:39 UTC

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 ...

Asked by Noldorin on 2013-02-28 13:48:02 UTC

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. :)

Asked by Noldorin on 2013-02-28 14:17:53 UTC

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

Asked by William on 2013-02-28 14:19:50 UTC

@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?)

Asked by Noldorin on 2013-02-28 14:21:43 UTC

@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.

Asked by William on 2013-02-28 15:01:37 UTC

Also, if you guys want to have a conversation, please use the ros on os x sig mailing list: https://groups.google.com/forum/?fromgroups#!forum/ros-sig-osx

Asked by William on 2013-02-28 15:02:08 UTC

@William: It's okay, no offence taken. I've actually posted the full descriptions of the problems I'm facing in other questions now (if they don't already exist); I'm just linking from here. :)

Asked by Noldorin on 2013-02-28 15:51:14 UTC

Answers