I am novice to ROS and I followed the ROS installation tutorial to install ROS kinetic. After installing, I open python to import rospy, roslib and rosbag, but it throws the following error:>
import roslib
Traceback (most recent call last):
File "", line 1, in
File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslib/__init__.py", line 54, in
import roslib.stacks
File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslib/stacks.py", line 46, in
import roslib.packages
File "/opt/ros/kinetic/lib/python2.7/dist-packages/roslib/packages.py", line 49, in
from catkin.find_in_workspaces import find_in_workspaces as catkin_find
File "/opt/ros/kinetic/lib/python2.7/dist-packages/catkin/find_in_workspaces.py", line 36, in
from catkin_pkg.packages import find_packages
ImportError: No module named catkin_pkg.packages
I again installed catkin_pkg using the following command but nothing happened:
sudo apt-get install --reinstall python-catkin-pkg
Can anyone suggest me where I am going wrong?
↧