ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

ImportError: No module named msg - standard ROS message

asked 2019-06-10 04:48:22 -0500

Hypomania gravatar image


I am trying to use geodesypackage

I have installed the stack using apt-get.

I can include the messages in .cpp files however in Python I get this:

import rospy
import geodesy.utm


Results in:

Traceback (most recent call last):
  File "", line 2, in <module>
    import geodesy.utm
  File "/opt/ros/kinetic/lib/python2.7/dist-packages/geodesy/", line 54, in <module>
    from geographic_msgs.msg import GeoPoint
ImportError: No module named msg

I don't see in geodesy package, could it be possible that the Python environment is not set up right? Can this package be used as a standard package or do I have to clone it into my catkin_ws?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-06-10 05:09:53 -0500

Hypomania gravatar image

Solved by adding rospy in package.xml and CMakeLists.txt.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2019-06-10 04:48:22 -0500

Seen: 1,508 times

Last updated: Jun 10 '19