On Sun, Nov 14, 2010 at 5:32 PM, Soo-Hyun Yoo <span dir="ltr"><<a href="mailto:yoos117@gmail.com">yoos117@gmail.com</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I'm slightly confused.. How does OS X pertain to this?</blockquote><div><br></div><div>If OS X doesn't support a python2 vs. python3 executable, switching all ROS scripts to use '#! /usr/bin/env python2' will definitely break ROS's OS X support, so it is currently not a viable option for forcing ROS Python code to use python2.x on all platforms.</div>
<div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><br></div><div>Just to put it out there, Arch does support python2 vs python3 as an explicit executable. It's just that "python" by default points to python3.</div>
</blockquote><div><br></div><div>Does Arch have any tools that can update all the proper symlinks and variables for you? For example, Gentoo systems have the eselect tool to help manage which Python is set to the be the default interpreter, list all installed Python versions, etc.</div>
<div><br></div><div>- Eric</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div><br></div><div><font color="#888888">Soo-Hyun Yoo</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">On Sun, Nov 14, 2010 at 9:37 AM, Ken Conley <span dir="ltr"><<a href="mailto:kwc@willowgarage.com" target="_blank">kwc@willowgarage.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

You can read this ticket for a summary of the issues and workarounds:<br>
<br>
<a href="https://code.ros.org/trac/ros/ticket/3136" target="_blank">https://code.ros.org/trac/ros/ticket/3136</a><br>
<br>
The gist is that, while Debian systems support "python2" vs. "python3"<br>
as an explicit executable, OS X does not. In my opinion, arch made a<br>
bad choice. Even <a href="http://docs.python.org" target="_blank">docs.python.org</a> uses Python 2.x as the default<br>
documentation set. For Python users, it makes more sense to migrate to<br>
"python3" than to back-migrate everything to "python2".<br>
<font color="#888888"><br>
 - Ken<br>
</font><div><div></div><div><br>
On Sun, Nov 14, 2010 at 12:57 AM, Soo-Hyun Yoo <<a href="mailto:yoos117@gmail.com" target="_blank">yoos117@gmail.com</a>> wrote:<br>
> I received the same errors today: <a href="http://pastebin.com/b70kSndj" target="_blank">http://pastebin.com/b70kSndj</a><br>
> This is due to the recent change that points /usr/bin/python to python-3.x.<br>
> The only workaround I could think of was to remove the symlink and point it<br>
> instead to /usr/bin/python2.7, after which ROS successfully installed and<br>
> compiled.<br>
> Does anyone know if there is an "official" fix?<br>
> Soo-Hyun Yoo<br>
><br>
> On Fri, Oct 22, 2010 at 5:00 PM, Morgan Quigley <<a href="mailto:mquigley@cs.stanford.edu" target="_blank">mquigley@cs.stanford.edu</a>><br>
> wrote:<br>
>><br>
>> I haven't used Arch in a while now, since I finally converted to<br>
>> Ubuntu last year. I'm not sure if there is anybody else using ROS<br>
>> actively on Arch, but if so they will hopefully chime in.<br>
>><br>
>> To get that error, did you download the rosinstall script and just run<br>
>> it, or did you try to build rospack manually?<br>
>><br>
>> -Morgan<br>
>><br>
>><br>
>> On Fri, Oct 22, 2010 at 2:49 AM, Tadele Shiferaw <<a href="mailto:metitad@gmail.com" target="_blank">metitad@gmail.com</a>><br>
>> wrote:<br>
>> >  I am trying to install ROS on archlinux and I get the following error<br>
>> > when trying to use rosinstall...<br>
>> ><br>
>> > print "Rospack failed to build"<br>
>> >                                  ^<br>
>> > SyntaxError: invalid syntax<br>
>> > Traceback (most recent call last):<br>
>> >  File "/usr/bin/rosinstall", line 5, in <module><br>
>> >    pkg_resources.run_script('rosinstall==0.5.8', 'rosinstall')<br>
>> >  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 489, in<br>
>> > run_script<br>
>> >    self.require(requires)[0].run_script(script_name, ns)<br>
>> >  File "/usr/lib/python2.7/site-packages/pkg_resources.py", line 1214, in<br>
>> > run_script<br>
>> >    exec script_code in namespace, namespace<br>
>> >  File<br>
>> > "/usr/lib/python2.7/site-packages/rosinstall-0.5.8-py2.7.egg/EGG-INFO/scripts/rosinstall",<br>
>> > line 501, in <module><br>
>> ><br>
>> >  File<br>
>> > "/usr/lib/python2.7/site-packages/rosinstall-0.5.8-py2.7.egg/EGG-INFO/scripts/rosinstall",<br>
>> > line 492, in rosinstall_main<br>
>> ><br>
>> >  File "/usr/lib/python2.7/subprocess.py", line 504, in check_call<br>
>> >    raise CalledProcessError(retcode, cmd)<br>
>> > subprocess.CalledProcessError: Command 'source /home/user1/ros/setup.sh<br>
>> > && rosmake rostest --rosdep-install' returned non-zero exit status 1<br>
>> ><br>
>> ><br>
>> > Any help is appreciated<br>
>> > _______________________________________________<br>
>> > ros-users mailing list<br>
>> > <a href="mailto:ros-users@code.ros.org" target="_blank">ros-users@code.ros.org</a><br>
>> > <a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
>> ><br>
>> _______________________________________________<br>
>> ros-users mailing list<br>
>> <a href="mailto:ros-users@code.ros.org" target="_blank">ros-users@code.ros.org</a><br>
>> <a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
><br>
><br>
> _______________________________________________<br>
> ros-users mailing list<br>
> <a href="mailto:ros-users@code.ros.org" target="_blank">ros-users@code.ros.org</a><br>
> <a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
><br>
><br>
_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org" target="_blank">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
</div></div></blockquote></div><br></div></div></div>
<br>_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
<br></blockquote></div><br>