AttributeError when importing rospy
Hello there.
When trying to run a python script that imports and uses rospy, I get the following error.
Traceback (most recent call last):
File "./client_video.py", line 35, in <module>
import rospy
File "/usr/lib/python2.7/dist-packages/rospy/__init__.py", line 47, in <module>
from std_msgs.msg import Header
File "/usr/lib/python2.7/dist-packages/std_msgs/msg/__init__.py", line 1, in <module>
from ._Empty import *
File "/usr/lib/python2.7/dist-packages/std_msgs/msg/_Empty.py", line 9, in <module>
class Empty(genpy.Message):
AttributeError: 'module' object has no attribute 'Message'
I used -y when apt-get installing python-rospy so the prerequisites should be installed too.
Any help would be much appreciated.
Using ROS Kinetic and Ubuntu 16.04.