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

Installing ROS Indigo on NAO: problem with yaml

asked 2014-11-06 09:10:23 -0600

Schwartzmuller gravatar image


I'm trying to install ROS Indigo on a NAO V4 with OpenNao 1.14.5.

Following the tutorial "Installation of ROS on the Nao robot " ( ) I had an issue starting ROS on NAO:

roslaunch nao_bringup nao.launch gives me the following output:

Traceback (most recent call last):
  File "/opt/openrobots/bin/roslaunch", line 34, in <module>
    import roslaunch
  File "/var/persistent/opt/openrobots/lib/python2.7/site-packages/roslaunch/", line 51, in <module>
    from . import param_dump as roslaunch_param_dump
  File "/var/persistent/opt/openrobots/lib/python2.7/site-packages/roslaunch/", line 40, in <module>
    import roslaunch.config
  File "/var/persistent/opt/openrobots/lib/python2.7/site-packages/roslaunch/", line 45, in <module>
    import rospkg.distro
  File "/var/persistent/opt/openrobots/lib/python2.7/site-packages/rospkg/", line 44, in <module>
    import yaml
ImportError: No module named yaml

I tried to re-install yaml (sudo emerge pyyaml) and got this error as a result:

ERROR: app-admin/eselect-python-20100321 failed (setup phase):
 *   GCC >=3.4 is required
 * Call stack:
 *, line  75:  Called pkg_setup
 *   environment, line 636:  Called die
 * The specific snippet of code:
 *           die "GCC >=3.4 is required";

Therefore has anyone an idea of how to correctly install pyyaml on NAO?

Thank You very much :)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-12-04 04:14:21 -0600

marguedas gravatar image


I don't know if you fixed your problem yet but to install pyyaml on your virtual nao you need to use sudo easy_install pyyaml

If you want a complete tutorial to setup ROS on your NAO is available here : I didn't validated it on 1.14 because I'm using ROS Indigo which is not compatible with NAOqi < 2.0. But this should work.

Hope this helps,


edit flag offensive delete link more

Question Tools

1 follower


Asked: 2014-11-06 09:10:23 -0600

Seen: 352 times

Last updated: Dec 04 '14