Cannot import custom message [closed]

asked 2013-12-07 17:23:38 -0600

Robocop87 gravatar image

updated 2014-01-28 17:05:50 -0600

ngrennan gravatar image

Hi all,

I am having a really trivial problem. I defined a .msg file under mypackage/msg and I did everything to the package.xml and the CMakeLists.txt file that the tutorial says. I rebuilt the package and then proceeded to code.

In my python code, i have

from mypackage.msg import my_msg

and i receive the error:

ImportError: No module named mypackage.msg

I checked the the PYTHONPATH environment variable, and it was looking for something under /devel/lib/python2.7/dist-packages but that directory does not exist.

Any suggestions?

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Robocop87
close date 2013-12-07 17:48:38