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

ImportError: No module named genpy

asked 2016-06-04 06:38:24 -0500

Ghadeer gravatar image

I am very new to ROS as I just started installing it on my Ubuntu 16.4 (I am fully aware that there hasn't been a version of ROS released for Ubuntu 16.4.) but so far all my installation went smoothly except when I tried to run the 'rostopic' line it gives me:

"Traceback (most recent call last):

File "/usr/bin/rostopic", line 34, in <module> import rostopic

File "/usr/lib/python2.7/dist-packages/rostopic/__init__.py", line 59, in <module> import genpy

ImportError: No module named genpy"

Anyone can tell me how to fix it? Thanks in advance.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-08-15 09:28:46 -0500

I had the same problem, but only because I did not complete installation instructions. Setting up environment correctly ( $ source /opt/ros/kinetic/setup.bash ) fixed this.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-06-04 06:38:24 -0500

Seen: 2,134 times

Last updated: Jun 04 '16