ImportError: No module named msg

asked 2014-12-24 06:05:16 -0600

cros gravatar image

updated 2014-12-24 06:34:59 -0600

gvdhoorn gravatar image

when I function a program,I got this errot

Traceback (most recent call last):
  File "/home/cc/catkin_ws/src/rbx1/rbx1_nav/nodes/move_base_square.py", line 28, in <module>
    from move_base_msgs.msg import MoveBaseAction, MoveBaseGoal
ImportError: No module named msg
edit retag flag offensive close merge delete

Comments

Judging from your other questions, I'm guessing you've only just started using ROS. Have you completed (and understood) all the ROS tutorials on the wiki? If not, I'd highly recommend you do those, as they will help you understand what is going on.

gvdhoorn gravatar imagegvdhoorn ( 2014-12-24 06:36:04 -0600 )edit

Please provide enough information to reproduce your problem so we can help you.

tfoote gravatar imagetfoote ( 2014-12-24 10:59:32 -0600 )edit

Type echo $PYTHONPATH To get an idea of what paths are linked.

Also don't do what I did and waste a day running a script from the folder it is in, i.e : ./script.py, run from the previous folder, i.e ./scripts/script.py

cdrwolfe gravatar imagecdrwolfe ( 2015-01-15 14:34:31 -0600 )edit