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

problem with rosws merge

asked 2012-12-05 23:31:43 -0500

alessandrayoko gravatar image

updated 2012-12-05 23:45:03 -0500

KruseT gravatar image

when I run "roslocate info ROSARIA | rosws merge -" in order to install ROSARIA, happens an error:

basilio@lcarobo:~/fuerte_workspace$ roslocate info ROSARIA | rosws merge -
Traceback (most recent call last):
  File "/usr/local/bin/rosws", line 64, in <module>
  File "/usr/local/lib/python2.7/dist-packages/rosinstall/", line 440, in rosws_main
   return ws_commands[command](workspace, args)
File "/usr/local/lib/python2.7/dist-packages/rosinstall/", line 277, in cmd_merge
    pipedata = "".join(sys.stdin.readlines())
NameError: global name 'sys' is not defined
close failed in file object destructor:
sys.excepthook is missing
lost sys.stderr

how can I fix it? is there any package missing?

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted

answered 2012-12-05 23:44:19 -0500

KruseT gravatar image

This was a bug in rosws: a patch has been released today with rosinstall 0.6.22. update, and it should work.

edit flag offensive delete link more

answered 2013-02-26 09:35:40 -0500

this post is marked as community wiki

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

1 - Creating workspace - Criando o workspace:

Choose your ROS version - Dependendo da versão do ROS(a ou b), pode-se fazer em diretórios separados:

a) ROS Fuerte:

rosws init ~/ros-fuerte /opt/ros/fuerte

b) ROS Groovy

rosws init ~/ros-groovy /opt/ros/groovy

3 - Bring ROSAria into workspace - Liberando o workspace criado para o ROSAria

cd ~/ros-<distro>
rosws set --hg amor-ros-pkg
rosws update

4 - Setting up the new workspace - Para configurar o workspace novo, precisamos rodar o script setup.bash

cd ~/ros-<distro>
source ./setup.bash

5 - Checking if download was correctly - Para confirmar que o download foi feito:

rospack profile

6 - Checking if ROS recognize the package - Checando se o ROS reconhece o pacote:

rospack find ROSARIA

7 - Building the package - Compilando o pacote:

sudo rosdep init
rosdep update
rosdep install ROSARIA
rosmake ROSARIA
edit flag offensive delete link more


I fixed some details. I see the roslocate command from the question currently fails. Have you considered using the "rosws set amor-ros-pkg --hg" command?

KruseT gravatar image KruseT  ( 2013-02-27 01:02:54 -0500 )edit

Question Tools


Asked: 2012-12-05 23:31:43 -0500

Seen: 642 times

Last updated: Feb 27 '13