Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

ImportError: No module named msg

I have to msg files in a msg folder. Added both msg to the CMakeList.txt and followed the instructions in the file, so the package.xml has the right dependencies. I also followed these answers on this similar questions: https://answers.ros.org/question/105711/rospy-custom-message-importerror-no-module-named-msg/ and https://answers.ros.org/question/271620/importerror-no-module-named-xxxxmsg/

But i still get the following error:

Traceback (most recent call last):
  File "/home/ubuntu/catkin_ws/src/pozyx_ros_examples/src/pozyx_node.py", line 7, in <module>
    from pozyx_ros_examples.msg import DeviceRange, EulerAngles
ImportError: No module named msg

My package.xml and CMakeLists.txt are in gist: https://gist.github.com/kwint/09ab135968f83d06fae7f0af0fe835a2

I'm running lubuntu 16.04 on a raspberry pi

ImportError: No module named msg

I have to msg files in a msg folder. Added both msg to the CMakeList.txt and followed the instructions in the file, so the package.xml has the right dependencies. I also followed these answers on this similar questions: https://answers.ros.org/question/105711/rospy-custom-message-importerror-no-module-named-msg/ and https://answers.ros.org/question/271620/importerror-no-module-named-xxxxmsg/

But i still get the following error:

Traceback (most recent call last):
  File "/home/ubuntu/catkin_ws/src/pozyx_ros_examples/src/pozyx_node.py", line 7, in <module>
    from pozyx_ros_examples.msg import DeviceRange, EulerAngles
ImportError: No module named msg

My package.xml and CMakeLists.txt are in gist: https://gist.github.com/kwint/09ab135968f83d06fae7f0af0fe835a2

I'm running lubuntu 16.04 on a raspberry pipi.

.
├── CMakeLists.txt
├── __init__.py
├── msg
│   ├── DeviceRange.msg
│   ├── EulerAngles.msg
│   └── __init__.py
├── package.xml
└── src
    ├── pozyx_node.py
    └── setup_nodes
        └── pozyx_configuration.py

ImportError: No module named msg

I have to msg files in a msg folder. Added both msg to the CMakeList.txt and followed the instructions in the file, so the package.xml has the right dependencies. I also followed these answers on this similar questions: https://answers.ros.org/question/105711/rospy-custom-message-importerror-no-module-named-msg/ and https://answers.ros.org/question/271620/importerror-no-module-named-xxxxmsg/

But i still get the following error:

Traceback (most recent call last):
  File "/home/ubuntu/catkin_ws/src/pozyx_ros_examples/src/pozyx_node.py", line 7, in <module>
    from pozyx_ros_examples.msg import DeviceRange, EulerAngles
ImportError: No module named msg

My package.xml and CMakeLists.txt are in gist: https://gist.github.com/kwint/09ab135968f83d06fae7f0af0fe835a2

I'm running lubuntu 16.04 on a raspberry pi.

.
├── CMakeLists.txt
├── __init__.py
├── msg
│   ├── DeviceRange.msg
│   ├── EulerAngles.msg
│   └── __init__.py
├── package.xml
└── src
    ├── pozyx_node.py
    └── setup_nodes
        └── pozyx_configuration.py

The weird thing is that when I run this package on my local computer it works perfectly (which runs ubuntu 16.04)