[ros-users] Error installing ROS in Debian

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
Delete this message
Reply to this message
Author: Gorka Azcune
Date:  
To: ros-users
Subject: [ros-users] Error installing ROS in Debian
Hi all,



We are trying to install ROS in a Debian distro from svn following the
Ubuntu/Linux instructions provided in the web-site. We have a
squeeze/sid version of Debian, which can be seen in /etc/debian_version.
However, we get a weird error:



[ rosmake ] rosdep install failed: Could not detect OS, tried
['uninitialized from ROS_OS_OVERRIDE=name:version', 'rosdep_test_os',
'debian', 'ubuntu', 'ubuntu', 'fedora', 'rhel', 'arch', 'macports',
'gentoo', 'cygwin']

Traceback (most recent call last):

File "./rosinstall", line 326, in <module>

    sys.exit(rosinstall_main(sys.argv) or 0)


File "./rosinstall", line 319, in rosinstall_main

    subprocess.check_call("source %s && rosmake rostest
--rosdep-install" % (os.path.join(options.path, 'setup.sh')),
shell=True, executable='/bin/bash')


File "/usr/lib/python2.5/subprocess.py", line 462, in check_call

    raise CalledProcessError(retcode, cmd)


subprocess.CalledProcessError: Command 'source
/home/treaccio/tmp/ros/setup.sh && rosmake rostest --rosdep-install'
returned non-zero exit status 255



Looking at the error we also tried to assign
ROS_OS_OVERRIDE=debian:squeeze/sid manually, using the export command,
before running rosinstall. But this also output an error:



Using environment variable ROS_OS_OVERRIDE=name:version

[ rosmake ] Detected rosout not built, adding it to the build

[ rosmake ] Packages requested are: ['rostest', 'rosout']

[ rosmake ] Logging to directory

[ rosmake ] /home/treaccio/.ros/rosmake/rosmake_output-20100528-094544

[ rosmake ] Expanded args ['rostest', 'rosout'] to:

['rostest', 'rosout']

[ rosmake ] Generating Install Script using rosdep then executing. This
may take a minute, you will be prompted for permissions. . .

Using environment variable ROS_OS_OVERRIDE=name:version

Traceback (most recent call last):

File "/home/treaccio/tmp/ros/ros/bin/rosmake", line 59, in <module>

    if not rma.main():


File
"/home/treaccio/tmp/ros/ros/tools/rosmake/src/rosmake/rosmake.py", line
649, in main

    self.rosdep_install_result =
self.install_rosdeps(buildable_packages, options.rosdep_yes)


File
"/home/treaccio/tmp/ros/ros/tools/rosmake/src/rosmake/rosmake.py", line
125, in install_rosdeps

    r.install(include_duplicates=False, default_yes=default_yes);


File "/home/treaccio/tmp/ros/ros/tools/rosdep/src/rosdep/core.py",
line 366, in install

    script = self.generate_script(include_duplicates, default_yes)


File "/home/treaccio/tmp/ros/ros/tools/rosdep/src/rosdep/core.py",
line 331, in generate_script

    self.osi.get_os().strip_detected_packages(native_packages)


AttributeError: Override instance has no attribute
'strip_detected_packages'

Traceback (most recent call last):

File "./rosinstall", line 326, in <module>

    sys.exit(rosinstall_main(sys.argv) or 0)


File "./rosinstall", line 319, in rosinstall_main

    subprocess.check_call("source %s && rosmake rostest
--rosdep-install" % (os.path.join(options.path, 'setup.sh')),
shell=True, executable='/bin/bash')


File "/usr/lib/python2.5/subprocess.py", line 462, in check_call

    raise CalledProcessError(retcode, cmd)


subprocess.CalledProcessError: Command 'source
/home/treaccio/tmp/ros/setup.sh && rosmake rostest --rosdep-install'
returned non-zero exit status 1



We realized that ROS uses its own tools for Python to detect the
underlying OS. For some reasons, that tool doesn't work for us. Are we
missing anything? Is there any special issue we need to take into
account for Debian installation?



Thanks in advance!



______________________________

Gorka Azkune Galparsoro

Kontrol eta IKT Saila

Departamento de Control y TIC

Control and ICT Department



FATRONIK
Mikeletegi Pasealekua, 7 - . Teknologi Parkea
E-20.009 Donostia (Gipuzkoa)-Spain

Telf: (+34) 943 005500
Fax: (+34) 943 005511
e-mail :
web : www.fatronik.com