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

NAO error: No module named yaml

asked 2012-02-02 02:42:52 -0600

dougnets22 gravatar image

updated 2012-02-02 02:46:25 -0600

So, I am trying to make ROS run on the NAO. I have followed the wiki for Nao-Cross-Compiling, and I get everything to show up on the robot as stated in the wiki. However, when I go to run roscore, just to see if it will work, I get the following error message:

Traceback (most recent call last):
File "/media/external/ros/electric/ros/bin/roscore", line 34, in <module> from ros import roslaunch File "/media/external/ros/electric/ros/core/roslib/src/ros/__init__.py", line 57, in __getattr__ return __import__(name) File "/media/external/ros/electric/ros_comm/tools/roslaunch/src/roslaunch/__init__.py", line 43, in <module> import roslaunch.param_dump File "/media/external/ros/electric/ros_comm/tools/roslaunch/src/roslaunch/param_dump.py", line 43, in <module> import yaml ImportError: No module named yaml

The PYTHONPATH for my setup.sh file looks like this:

PYTHONPATH=/media/external/python:/media/external/ros/electric/ros/core/roslib/src:$PYTHONPATH

The /media/external/python folder contains the yaml folder.

Any suggestions are greatly appreciated.

[edit] OS is Ubuntu 10.04 and nao sdk and toolchain are 1.10.44

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2012-02-02 15:56:47 -0600

tfoote gravatar image

You're likely missing the python-yaml package on your system. It's a core system dependency when installing from source instructions

edit flag offensive delete link more

Comments

Whenever I run the setup: sudo apt-get install build-essential python-yaml cmake subversion wget python-setuptools mercurial git-core, it tells me that pyton-yamal is already the newest version
dougnets22 gravatar image dougnets22  ( 2012-02-05 09:38:59 -0600 )edit

Question Tools

Stats

Asked: 2012-02-02 02:42:52 -0600

Seen: 1,676 times

Last updated: Feb 02 '12