ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

ImportError: No module named msg

asked 2017-06-06 00:49:09 -0500

ADIROSGAZ gravatar image

updated 2017-06-07 06:08:28 -0500

While i am launching roslaunch my_dynamixel_tutorial controller_manager.launch i am getting this error. It works fine till yesterday & i controlled dynamixel motors with my algorithm. But all of sudden it appears today after i run catkin_make

F File "/home/adirosgaz/catkin_ws/src/dynamixel_motor/dynamixel_controllers/nodes/controller_manager.py", line 52, in <module> from dynamixel_driver.dynamixel_serial_proxy import SerialProxy File "/home/adirosgaz/catkin_ws/src/dynamixel_motor/dynamixel_driver/src/dynamixel_driver/dynamixel_serial_proxy.py", line 63, in <module> from dynamixel_msgs.msg import MotorState ImportError: No module named msg

Thanks for all, for your valuable suggestions & support.

i am working with ros & dynamixel motors for past 10 months. few days back i observed dynamixel_sdk & dynamixel_workbench packages & i installed it to see what extra features in it. As a process of installing, i cloned some files form git hub, in that files some consists of same package. while i am running my code it is calling that file instead of the original file. After a long detailed observation i found this.

I resolved my issue now.

Once again thanks for all.

edit retag flag offensive close merge delete

Comments

Hi, add the following lines to the .bashrc file as well as update the current bash shell with it so that we don't get any build errors. #Update ROS path to ROS environment export ROS_PACKAGE_PATH=$ROS_PACKAGE_PATH:~/<path_to_work_space_of_ros>

and then $ source ~/.bashrc

Akhilesh gravatar image Akhilesh  ( 2017-06-06 04:04:27 -0500 )edit

i did that but there is no change in that error

ADIROSGAZ gravatar image ADIROSGAZ  ( 2017-06-06 05:26:33 -0500 )edit

Can you run the command printenv | grep ROS && printenv | grep PY in a terminal and edit the question with the results please? Also, what changed between it working and not working? Was it just a catkin_make? Why did you catkin_make it, what was changed code-wise?

ufr3c_tjc gravatar image ufr3c_tjc  ( 2017-06-06 18:03:32 -0500 )edit
1

@Akhilesh: please don't advise people to change ROS_PACKAGE_PATH by hand. It should not be necessary (setup.(ba)sh does this for you) and can actually make problems harder to diagnose.

gvdhoorn gravatar image gvdhoorn  ( 2017-06-07 00:55:22 -0500 )edit

@gvdhoorn: Actually, I have faced somewhat same problem that I fixed with the same as I mentioned above. If you think it's not at all correct way to solve this, then how to solve. And what should I call it, an error or an issue in ROS. Or am I making any mistake while installation.

Akhilesh gravatar image Akhilesh  ( 2017-06-07 01:51:40 -0500 )edit
1

Without more information I can't say anything about your problem or why changing ROS_PACKAGE_PATH worked in that case.

With Catkin -- and any ROS version more recent than Hydro -- changing that variable manually should only be needed in very few cases.

In almost all other cases, modules ..

gvdhoorn gravatar image gvdhoorn  ( 2017-06-07 02:12:25 -0500 )edit

.. or packages not being found is caused by a workspace not having been setup correctly, missing dependency declarations in pkg manifests and / or CMakeLists.txt, manual editing of environment variables, incorrect workspace overlaying, forgetting to source the proper setup.bash, etc, etc. ..

gvdhoorn gravatar image gvdhoorn  ( 2017-06-07 02:13:29 -0500 )edit

.. All of those are fixable without manually changing ROS_PACKAGE_PATH.

gvdhoorn gravatar image gvdhoorn  ( 2017-06-07 02:14:18 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-06-08 00:41:48 -0500

ADIROSGAZ gravatar image

Thanks for all, for your valuable suggestions & support.

i am working with ros & dynamixel motors for past 10 months. few days back i observed dynamixel_sdk & dynamixel_workbench packages & i installed it to see what extra features in it. As a process of installing, i cloned some files form git hub, in that files some consists of same package. while i am running my code it is calling that file instead of the original file. After a long detailed observation i found this.

I resolved my issue now.

Once again thanks for all.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-06-06 00:49:09 -0500

Seen: 1,051 times

Last updated: Jun 08 '17