Ask Your Question
0

OS X installation problem rosmake: command not found

asked 2012-09-18 13:27:34 -0500

TonyGon gravatar image

updated 2012-09-18 15:25:15 -0500

Kevin gravatar image

I tried to install ROS with the set of instructions. But I got this error.

[robot_model_tutorials] Updating /Users/Tony/ros/robot_model_tutorials
[robot_model_tutorials] Done.
(Over-)Writing setup.sh, setup.bash, and setup.zsh in /Users/Tony/ros
Bootstrapping ROS build
Detected ros_comm bootstrapping it too.
<stdin>:15: Warning: 'with' will become a reserved keyword in Python 2.6
File "<stdin>", line 15
with open(filename, "r") as f:
^
SyntaxError: invalid syntax
/bin/sh: rosmake: command not found
Traceback (most recent call last):
File "/usr/local/bin/rosinstall", line 16, in <module>
sys.exit(not rosinstall_main(sys.argv))
File "/Library/Python/2.6/site-packages/rosinstall/rosinstall_cli.py", line 228, in rosinstall_main options.catkinpp)
File "/Library/Python/2.6/site-packages/rosinstall/rosinstall_cmd.py", line 100, in cmd_generate_ros_files
subprocess.check_call("source %s && rosmake ros%s --rosdep-install%s" % (os.path.join(path, 'setup.sh'), ros_comm_insert, rosdep_yes_insert), shell=True, executable='/bin/bash')
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/subprocess.py", line 462, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'source /Users/Tony/ros/setup.sh && rosmake ros ros_comm --rosdep-install' returned non-zero exit status 127

Moved the Macports /opt/local folder as recommended.
Everything else was installed smoothly. Got no idea what to do next.
Anything related to flags exporting?
Please help me. Thank you a lot!!

OS X: 10.6.8 Xcode: 4.2 (for Snow Leopard).

edit retag flag offensive close merge delete

Comments

Sorry ... you followed these instructions? Also, which part of these install process did you get to when this failed? Did you get as far as 1.4 Environment Setup? If so, make sure you are calling setup.bash.

Kevin gravatar image Kevin  ( 2012-09-18 15:24:16 -0500 )edit

No, as by tag, I tried to install Electric, because is suppossed to be more stable than Fuerte in OSX. The instructions I followed are these ones <a href="http://www.ros.org/wiki/electric/Installation">Electric installation</a> using Homebrew,not Macports. Got till 1.6.Rosinstall Desktop-full fails.

TonyGon gravatar image TonyGon  ( 2012-09-18 21:52:35 -0500 )edit

@Jakub. Nope 2.7.3 it is.<br>localhost:~ Tony$ python<br> Python 2.7.3 (v2.7.3:70274d53c1dd, Apr 9 2012, 20:52:43) <br> [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin<br> Type "help", "copyright", "credits" or "license" for more information.<br> >>> Btw I installed python27 with macports.

TonyGon gravatar image TonyGon  ( 2012-09-18 22:10:04 -0500 )edit

@tony. From error log above that your ROS installation is at Python 2.6 source tree: File "/Library/Python/2.6/site-packages/rosinstall/rosinstall_cmd.py". If you have already python2.7 try to remove and reinstall ROS to put it in 2.7 tree.

Jakub gravatar image Jakub  ( 2012-09-18 22:20:51 -0500 )edit

Try to install again and now the directory of 2.6 doesn't exists. sudo easy_install pip requests that directory. I created a new one at the same place /Library/Python/2.7/site-packages/. But how do you exactly use the -d option? I've tried sudo easy_install pip -d /Library/Python/2.7/site-packages/

TonyGon gravatar image TonyGon  ( 2012-09-19 05:19:54 -0500 )edit

If dir 2.6 does not exists any more it should not be needed. Try to upgrade easy_installl to the new version.

Jakub gravatar image Jakub  ( 2012-09-19 06:00:03 -0500 )edit

@Jakub Did it, the result is described in the update below.

TonyGon gravatar image TonyGon  ( 2012-09-19 08:07:09 -0500 )edit
1

@TonyGon Check the update of my answer

Jakub gravatar image Jakub  ( 2012-09-19 08:45:43 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
0

answered 2012-09-18 23:08:22 -0500

TonyGon gravatar image

updated 2012-09-19 12:53:35 -0500

Update.
Well, we're getting somewhere. Updated pip, installed everything. No errors. Then point 1.6 Rosinstall came along.
Got the "no gtest Formula" error, but created one as in here.
I installed vcstools, and when I ran desktop-full rosinstall I got 2 built errors. Then didn't change anything, ran the install again, and got 1 error, then again 2, strange.
This is from the log output file.

[ rosmake ] Output from build of package roslib written to:
[ rosmake ] /Users/Tony/.ros/rosmake/rosmake_output-20120920-024140/roslib/build_output.log [rosmake-0] Finished <<< roslib [FAIL] [ 2.54 seconds ]
[ rosmake ] Halting due to failure in package roslib. [ rosmake ] Waiting for other threads to complete. [rosmake-1] Finished <<< roscpp_traits [PASS] [ 1.23 seconds ]
[ rosmake ] Results:
[ rosmake ] Built 7 packages with 1 failures.
[ rosmake ] Summary output to directory
[ rosmake ] /Users/Tony/.ros/rosmake/rosmake_output-20120920-024140 Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/2.7/bin/rosinstall",
line 16, in <module>
sys.exit(not rosinstall_main(sys.argv)) File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/rosinstall/rosinstall_cli.py",
line 228, in rosinstall_main
options.catkinpp) File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/rosinstall/rosinstall_cmd.py",
line 100, in cmd_generate_ros_files
subprocess.check_call("source %s && rosmake ros%s --rosdep-install%s" %
(os.path.join(path, 'setup.sh'),
ros_comm_insert, rosdep_yes_insert),
shell=True, executable='/bin/bash')
File
"/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py",
line 511, in check_call
raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError:
Command 'source
/Users/Tony/ros/setup.sh && rosmake
ros ros_comm --rosdep-install'
returned non-zero exit status 1

Getting closer every time...
rosemacs, rospack, rosbuild, roslang, cpp_common, roscpp_traits were [Built].
roslib [Build Fail] .
and the rest reads as [Not Built]

What are your thoughts on this one?, Thanks.

edit flag offensive delete link more

Comments

What he said ^^^.

WilliamWoodall gravatar image WilliamWoodall  ( 2012-09-19 07:16:45 -0500 )edit

@WilliamWoodall Yes, my bad, I tried it but it didn't work, so I deleted everything and installed again, but the error about python 2.6 is still coming up.

TonyGon gravatar image TonyGon  ( 2012-09-19 07:40:28 -0500 )edit

Wait so what are you doing here? Trying to install pip?

WilliamWoodall gravatar image WilliamWoodall  ( 2012-09-19 08:13:16 -0500 )edit

Well now I am, yes. After deleting everything and starting from scratch. And I got only till the pip installation. Will try Jakub's updated advise, and let you know guys.

TonyGon gravatar image TonyGon  ( 2012-09-19 09:08:19 -0500 )edit
1

That doesn't really tell me anything, the above error occurs because rosmake ros ros_comm --rosdep-install failed. rosmake failed because roslib failed to build. You can look at the log file it output, or you can run roscd roslib and then make to get the raw output.

WilliamWoodall gravatar image WilliamWoodall  ( 2012-09-19 13:46:26 -0500 )edit

Also, you can just call rosmake ros ros_comm in the future rather than calling rosinstall each time.

WilliamWoodall gravatar image WilliamWoodall  ( 2012-09-19 13:46:55 -0500 )edit

Well, then where can I find more information about the error so you can help me out? The command rosmake is not found, and roscd doesn't work cuz ther's no roslib package, it failed. =S

TonyGon gravatar image TonyGon  ( 2012-09-19 20:57:37 -0500 )edit

@Jakub & @WilliamWoodall. Thank you guys for your help. I just installed Ubuntu 11.04 in Parallels and got it over with. Browsing the tutorials now. Too bad I couldn't install it in OSX.

TonyGon gravatar image TonyGon  ( 2012-09-20 03:49:44 -0500 )edit
1

answered 2012-09-18 19:13:31 -0500

Jakub gravatar image

updated 2012-09-19 08:59:02 -0500

It seems you use python2.6. Try to upgrade python to version 2.7. Should do the trick.


The problem is the easy_install in itself. As you can see in the error log: "/usr/bin/easy_install-2.6".

You have to upgrade first the setuptools package that contains easy_install. Check the http://pypi.python.org/pypi/setuptools how to install.

You should have setuptools in version 0.6c11 to be compatible with python2.7

edit flag offensive delete link more

Comments

1

Or find where that is getting called and add from __future__ import with_statement

WilliamWoodall gravatar image WilliamWoodall  ( 2012-09-18 19:15:09 -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

1 follower

Stats

Asked: 2012-09-18 13:27:34 -0500

Seen: 1,319 times

Last updated: Sep 19 '12