OS X installation problem rosmake: command not found
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).
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.
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.
@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.
@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.
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/
If dir 2.6 does not exists any more it should not be needed. Try to upgrade easy_installl to the new version.
@Jakub Did it, the result is described in the update below.
@TonyGon Check the update of my answer