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

rosmake doesn't work with rosdep on arch linux

asked 2011-09-28 16:31:01 -0500

Bruno Normande gravatar image

updated 2014-01-28 17:10:20 -0500

ngrennan gravatar image

I'm trying to install ros on may arch linux but, whenever i use rosmake without the --no-rosdep flag i get the following error:

AttributeError: Arch instance has no attribute 'installers'

Here is one example:

$ rosmake ros ros_comm --rosdep-install
[ rosmake ] Packages requested are: ['ros', 'ros_comm']                                                                                              
[ rosmake ] Logging to directory/home/bruno/.ros/rosmake/rosmake_output-20110929-012256                                                              
[ rosmake ] Expanded args ['ros', 'ros_comm'] to:
['rosclean', 'rosmake', 'rospack', 'rosunit', 'rosdep', 'rosbash', 'roscreate', 'rosboost_cfg', 'rosemacs', 'test_rosmake', 'test_rospack', 'test_roslib', 'test_roscreate', 'test_rosdep', 'mk', 'roslib', 'rosbuild', 'roslang', 'rosmaster', 'topic_tools', 'rosconsole', 'rosservice', 'rosgraph', 'rosparam', 'rosnode', 'rosout', 'rosbag', 'roslaunch', 'rostest', 'rosmsg', 'rostopic', 'rosbagmigration', 'perf_roscpp', 'test_roscpp_serialization', 'test_rosnode', 'test_roscpp', 'test_roslaunch', 'test_rostime', 'test_ros', 'test_rosgraph', 'test_rostopic', 'test_topic_tools', 'test_rosparam', 'test_roswtf', 'test_roscpp_serialization_perf', 'test_roslib_comm', 'test_rosservice', 'test_rospy', 'test_rosmsg', 'test_rostest', 'test_crosspackage', 'test_rosmaster', 'test_rosbag', 'roscpp', 'roscpp_traits', 'roscpp_serialization', 'roslisp', 'rospy', 'std_msgs', 'rosgraph_msgs', 'std_srvs', 'rostime', 'roswtf', 'cpp_common', 'message_filters', 'xmlrpcpp', 'roscore_migration_rules']
[ 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 "/home/bruno/ros/ros/bin/rosmake", line 65, in <module>
    if rma.main():
  File "/home/bruno/ros/ros/tools/rosmake/src/rosmake/engine.py", line 855, in main
    self.rosdep_install_result = self.install_rosdeps(buildable_packages, options.rosdep_yes)
  File "/home/bruno/ros/ros/tools/rosmake/src/rosmake/engine.py", line 311, in install_rosdeps
    r = rosdep.core.Rosdep(packages, robust=True)
  File "/home/bruno/ros/ros/tools/rosdep/src/rosdep/core.py", line 343, in __init__
    self.yc = YamlCache(self.osi.get_name(), self.osi.get_version(), self.osi.get_os().installers)
AttributeError: Arch instance has no attribute 'installers'
Traceback (most recent call last):
  File "/home/bruno/ros/ros/bin/rosmake", line 65, in <module>
    if rma.main():
  File "/home/bruno/ros/ros/tools/rosmake/src/rosmake/engine.py", line 855, in main
    self.rosdep_install_result = self.install_rosdeps(buildable_packages, options.rosdep_yes)
  File "/home/bruno/ros/ros/tools/rosmake/src/rosmake/engine.py", line 311, in install_rosdeps
    r = rosdep.core.Rosdep(packages, robust=True)
  File "/home/bruno/ros/ros/tools/rosdep/src/rosdep/core.py", line 343, in __init__
    self.yc = YamlCache(self.osi.get_name(), self.osi.get_version(), self.osi.get_os().installers)
AttributeError: Arch instance has no attribute 'installers'`

when i used the --no-rosdep flag it just worked fine... so, what do i do? i'd like to install the desktop-full with rosinstall bu it just doesn't work because of this.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
3

answered 2011-10-09 22:13:21 -0500

gleechinese gravatar image

Here's a couple patches that got it working for me:

http://pastebin.com/yrNRShkU

http://pastebin.com/JqRpwWiV

edit flag offensive delete link more

Comments

Thanks for the patches, I've opened a ticket to get them merged in https://code.ros.org/trac/ros/ticket/3700
tfoote gravatar image tfoote  ( 2011-10-10 08:53:14 -0500 )edit
Oops, the installer command should be "pacman -S" not "pacman -Su". Corrected in pastebin.
gleechinese gravatar image gleechinese  ( 2011-10-10 18:33:08 -0500 )edit
Please update the ticket in the future, it was just luck that I caught your comment and added it to the ticket. You'll need a code.ros.org account to update it, and it may take 15 minutes for the account to propogate into the trac instance.
tfoote gravatar image tfoote  ( 2011-10-10 19:08:57 -0500 )edit
1

answered 2011-09-28 19:36:12 -0500

tfoote gravatar image

updated 2011-09-28 19:36:29 -0500

We have recently updated rosdep's structure to support REP 111 and REP 112, however the support for Arch has not been patched accordingly. Patches to add support would be appreciated.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2011-09-28 16:31:01 -0500

Seen: 811 times

Last updated: Mar 27 '12