Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

ImportError: No module named msg - standard ROS message

Hi,

I am trying to use geodesy package https://github.com/ros-geographic-info/geographic_info

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

rospy.init_node('gd_test')

Results in:

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

I don't see setup.py 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?