[ros-users] ROS installation error on archlinux

Lionel Ott white.magic at gmx.de
Mon Nov 15 00:08:09 UTC 2010


On Sun, Nov 14, 2010 at 05:42:06PM -0500, Eric Perko wrote:
>    On Sun, Nov 14, 2010 at 5:32 PM, Soo-Hyun Yoo <[1]yoos117 at gmail.com>
>    wrote:
> 
>      I'm slightly confused.. How does OS X pertain to this?
> 
>    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.
> 
>    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.
> 
>    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.
>    - Eric

No Arch doesn't have any tools per se to switch between different
versions of programs. One obviously could change the sumlink to point to
the python2 executable, though this might break other python packages
that expect python to link to python3 then.

Some days ago I opened a ticket
(https://code.ros.org/trac/ros/ticket/3136) on that same problem but the
fact that OSX does not install a python2 symlink, only the versioned
ones means that the solution is not that easy.

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

> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users




More information about the ros-users mailing list