ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

rosinstall on OSX 10.7/Xcode4.2.1 fails at rosmake ros_comm

asked 2012-04-16 17:19:47 -0500

RobotRoss gravatar image

updated 2014-04-20 14:09:27 -0500

ngrennan gravatar image

Following procedure http://www.ros.org/wiki/electric/Installation/OSX/Homebrew 1.6 rosinstall failed at "rosmake ros ros_comm --rosdep-install":

[ rosmake ] Generating Install Script using rosdep then executing. This may take a minute, you will be prompted for permissions. . . Traceback (most recent call last): File "/Users/Ross/ros/ros/tools/rosdep/src/rosdep/installers.py", line 427, in __init__ pop = subprocess.Popen(['port'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)

File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 672, in __init__ errread, errwrite)

File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1202, in _execute_child raise child_exception OSError: [Errno 2] No such file or directory There was an error running macports, make sure it is installed properly.

Traceback (most recent call last):

File "/usr/local/bin/rosinstall", line 5, in <module> pkg_resources.run_script('rosinstall==0.6.13', '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.6.13-py2.7.egg/EGG-INFO/scripts/rosinstall", line 11, in <module>

File "build/bdist.macosx-10.7-intel/egg/rosinstall/rosinstall_cli.py", line 213, in rosinstall_main

File "build/bdist.macosx-10.7-intel/egg/rosinstall/rosinstall_cmd.py", line 88, in cmd_generate_ros_files

File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 504, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command 'source /Users/Ross/ros/setup.sh && rosmake ros ros_comm --rosdep-install' returned non-zero exit status 255

Kepler-3:~ Ross$

Any assistance is appreciated

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
1

answered 2012-04-17 10:13:41 -0500

William gravatar image

This looks like it is trying to use macports, Make sure you added:

export ROS_OS_OVERRIDE=osxbrew:lion

To your ~/.bashrc and that you made it take affect by running source ~/.bashrc or by closing and opening the terminal.

The above line is important because it indicates to rosdep that you want to use Homebrew on Lion rather than Macports to resolve your dependencies.

edit flag offensive delete link more
0

answered 2012-04-23 20:05:24 -0500

RobotRoss gravatar image

I corrected that, deleted (Trash) macports, uninstalled Xcode 4.2.1, installed a clean Xcode 4.3 and Command Line Tools, and still fails as follows:

[ rosmake ] Generating Install Script using rosdep then executing. This may take a minute, you will be prompted for permissions. . . Traceback (most recent call last):

File "/Users/Ross/ros/ros/tools/rosdep/src/rosdep/installers.py", line 427, in __init__ pop = subprocess.Popen(['port'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)

File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 672, in __init__ errread, errwrite)

File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 1202, in _execute_child raise child_exception

OSError: [Errno 2] No such file or directory There was an error running macports, make sure it is installed properly. 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.7/site-packages/rosinstall/rosinstall_cli.py", line 213, in rosinstall_main options.catkinpp)

File "/Library/Python/2.7/site-packages/rosinstall/rosinstall_cmd.py", line 96, 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.7/lib/python2.7/subprocess.py", line 504, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command 'source /Users/Ross/ros/setup.sh && rosmake ros ros_comm --rosdep-install' returned non-zero exit status 255

Appreciate you further assistance.

edit flag offensive delete link more

Comments

1

The line ... .Popen(['port'], stdout=subprocess.PIPE, stderr=subprocess.PIPE) ... is still the crucial line, that tells me that rosdep is trying to run the port command and failing. It only does this when the ROS_OS_OVERRIDE env variable is not set correctly.

William gravatar image William  ( 2012-04-23 20:17:59 -0500 )edit
1

An easy way to check what it is set to would be to run the 'export' command in the terminal and look for the ROS_OS_OVERRIDE. If it does not say osxbrew:lion or it doesn't exists, then your ~/.bashrc file is still not taking affect or is setup wrong...

William gravatar image William  ( 2012-04-23 20:19:23 -0500 )edit
0

answered 2012-04-17 14:21:24 -0500

RobotRoss gravatar image

B4 I started, I moved the Macports inside by home directory per instructions. Should I delete the folder completely? Also I upgraded to Xcode 4.3.2 where xcode.app is the only version inside the Developer/Applications folder which executes ver 4.3.2 and no other Xcode in the Applications folder, but the install keeps demanding to upgrade from 4.2. Does that really matter?

my ~/.bashrc did have this line,

export ROS_NO_SUDO_PIP=True export CPLUS_INCLUDE_PATH="/usr/local/include:$CPLUS_INCLUDE_PATH" export PYTHONPATH="/usr/local/lib/python2.7/site-packages:/usr/local/lib/python:$PYTHONPATH" export ROS_OS_OVERRIDE=osxbrew:lion source ~/ros/setup.bash

but executing "source" command seemed to make the install run further, but still stopped at the same place, but with a different error code 1:

[ rosmake ] /Users/Ross/.ros/rosmake/rosmake_output-20120417-165746
Traceback (most recent call last): File "/usr/local/bin/rosinstall", line 5, in <module> pkg_resources.run_script('rosinstall==0.6.13', '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.6.13-py2.7.egg/EGG-INFO/scripts/rosinstall", line 11, in <module>

File "build/bdist.macosx-10.7-intel/egg/rosinstall/rosinstall_cli.py", line 213, in rosinstall_main

File "build/bdist.macosx-10.7-intel/egg/rosinstall/rosinstall_cmd.py", line 88, in cmd_generate_ros_files

File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py", line 504, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command 'source /Users/Ross/ros/setup.sh && rosmake ros ros_comm --rosdep-install' returned non-zero exit status 1

Appreciate further something else to try.

edit flag offensive delete link more

Comments

1

So the last line of your ~/.bashrc (ROS_OS_OVERRIDE=osxbrew:lion source ~/ros/setup.bash) is wrong. It should be ROS_OS_OVERRIDE=osxbrew:lion. Make sure you correct this, and try again.

William gravatar image William  ( 2012-04-19 09:47:16 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2012-04-16 17:19:47 -0500

Seen: 869 times

Last updated: Apr 23 '12