Hello everyone. I migrate an installation from one computer to another, switching from Ubuntu 12.04 to 16.04 and from indigo ros to kinetic When I run my installation that has about 30 packages most of the things seem to start well except for a package that fails to make an import I specify that I do not have this error on the computer of the previous configuration, or everything is identical in my programs, except the denomination of indigo and kinetic The error is as follows:
From my_folder_msgs.msg import my_file as My_fileMsg
ImportError : No module named my_folder_msgs.msg
Of course, my_folder_msgs.msg exists and appears when I call: rosmsg list.
Would anyone have an idea?
Originally posted by pibauer on ROS Answers with karma: 21 on 2017-09-27
Post score: 2
Original comments
Comment by Nico__ on 2017-09-27:
Hi,
Make sure you got the "#!/usr/bin/env python" line at top of your python file, also make sure that youre customs messages are built. You can check with rosmsgs list | grep your_custom_msgs
Nicolas
Comment by pibauer on 2017-09-29:
Thank you for your message.
everything was as you advised
Comment by [email protected] on 2020-06-10:
https://www.theconstructsim.com/solve-error-importerror-no-module-named-xxxx-msg-2/