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

Import error: No module named rospkg/yaml

asked 2013-10-06 17:07:08 -0500

FuerteNewbie gravatar image

updated 2014-01-28 17:18:09 -0500

ngrennan gravatar image

Due to this error(import error: No module named rospkg)( Still not yet fixed)

http://answers.ros.org/question/86126/import-errorno-module-named-rospkg/?comment=87546#comment-87546

I've tried to uninstall my ROS and the reinstall it. Well after I reinstall I still face the same problem and there is another error coming out somehow ( I guess I have uninstall my ROS in right way ).

Error:

(python-yaml had already installed.0 upgraded, 0 newly installed, 0 to remove and 133 not upgraded.)

user@ubuntu:~/fuerte_workspace$ source ~/fuerte_workspace/setup.bash
Traceback (most recent call last):
  File "<stdin>", line 4, in <module>
ImportError: No module named yaml

$PYTHONPATH

/opt/ros/fuerte/lib/python2.7/dist-packages:/opt/ros/fuerte/lib/python2.7/dist-packages:/opt/ros/fuerte/lib/python2.7/dist-packages:/opt/ros/fuerte/lib/python2.7/dist-packages:

Error 2: No output from echo $ROS_PACKAGE_PATH, it simply blank one row and the back to prompt.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2013-10-06 19:25:32 -0500

tfoote gravatar image

Looks like you had an issue with python fixed by a reboot: http://answers.ros.org/question/86126/import-errorno-module-named-rospkg

edit flag offensive delete link more

Comments

What am I suppose to do? I can't even get through that 'source ~/fuerte_workspace/setup.bash' right now, I can't move on..

FuerteNewbie gravatar image FuerteNewbie  ( 2013-10-06 20:08:25 -0500 )edit

You posted at the link I sent that the problem importing rospkg was fixed when you rebooted. "Bad marshal data fixed after I reboot my computer." Does that not fix your yaml import issue?

tfoote gravatar image tfoote  ( 2013-10-06 20:11:54 -0500 )edit

No it doesn't. I was thinking that can I append yaml into pythonpath? Something like sys.path ( I don't remember).

FuerteNewbie gravatar image FuerteNewbie  ( 2013-10-06 20:15:07 -0500 )edit

No it doesn't. I was thinking that can I append yaml into pythonpath? Something like sys.path ( I don't remember).

FuerteNewbie gravatar image FuerteNewbie  ( 2013-10-06 20:15:08 -0500 )edit

python-yaml should install into your system path already, next to rospkg suggesting that you have a problem with your python installation in general.

tfoote gravatar image tfoote  ( 2013-10-06 20:17:54 -0500 )edit

I had tried to reinstall python for several times, it doesn't seems to have any different. Any possible mistake somewhere else?

FuerteNewbie gravatar image FuerteNewbie  ( 2013-10-06 20:38:01 -0500 )edit

It's likely there's a problem with your envionment. You could try to clear your .bashrc. (keep a backup.) Or another easy way might be to create a new user account and try from it.

tfoote gravatar image tfoote  ( 2013-10-06 21:03:46 -0500 )edit

What do you mean by creating a new user account? I thought that internally the setting will still be the same? If the problem happen in python then it will not make any difference.

FuerteNewbie gravatar image FuerteNewbie  ( 2013-10-06 21:09:27 -0500 )edit
0

answered 2013-10-07 22:29:19 -0500

FuerteNewbie gravatar image

Worst case scenario, I uninstall my Ubuntu and everything start all over again right now.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2013-10-06 17:07:08 -0500

Seen: 1,674 times

Last updated: Oct 07 '13