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

Problems with rosinstall on MAC OSX 10.5

asked 2011-07-19 01:13:42 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Hello, When I try to install ros by following the wiki, I get this error :

$ rosinstall ~/ros "http://packages.ros.org/cgi-bin/gen_rosinstall.py?rosdistro=cturtle&variant=base&overlay=no"

/Library/Python/2.5/site-packages/rosinstall-0.5.16-py2.5.egg/rosinstall/vcs/svn.py:49: Warning: 'with' will become a reserved keyword in Python 2.6
Traceback (most recent call last):
  File "/usr/local/bin/rosinstall", line 5, in <module>
    pkg_resources.run_script('rosinstall==0.5.16', 'rosinstall')
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/pkg_resources.py", line 442, in run_script
    self.require(requires)[0].run_script(script_name, ns)
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/pkg_resources.py", line 1167, in run_script
    exec script_code in namespace, namespace
  File "/usr/local/bin/rosinstall", line 28, in <module>

  File "/Library/Python/2.5/site-packages/rosinstall-0.5.16-py2.5.egg/rosinstall/vcs/svn.py", line 49
    with open(os.devnull, 'w') as fnull:
            ^
SyntaxError: invalid syntax

I have python 2.5:

$ ls -l `which python`
lrwxr-xr-x  1 root  wheel  72 11 sep  2010 /usr/bin/python -> ../../System/Library/Frameworks/Python.framework/Versions/2.5/bin/python

I found the same problem happend on debian - link

How can I solve the problem?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2011-07-25 15:03:23 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

To get this to work on python 2.5 you need to add

from __future__ import with_statement

at the top of the rosinstall script.

edit flag offensive delete link more
0

answered 2011-07-19 07:24:36 -0600

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

Two questions:

  1. Why OS 10.5? It's ancient!
  2. Why cturtle? Diamondback is better. (See the Diamondback OS X install instructions)

Installing diamondback on OS X is, itself, a tricky process, but it does work. See this howto for extensive documentation on getting everything working.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-07-19 01:13:42 -0600

Seen: 390 times

Last updated: Jul 25 '11