ImportError: No module named 'rospkg' on hydro <SOLVED>
Hi poeple,
In installed ros-hydro on ubuntu 13.04.
I am trying to get the "morse-simulation": http://www.openrobots.org/wiki/morse/ to work with ros hydro. but I always get an error message when starting my simulation (for example the "tutorial-1-ros.py"):
[helpers.loading] Module not found: Could not import some ROS modules. Check your ROS configuration is ok. Details:
No module named 'rospkg'
[helpers.loading] Could not load the class RosRequestManager in morse.middleware.ros_request_manager
[helpers.loading] Could not create an instance of morse.middleware.ros_request_manager.RosRequestManager
when running "import ros" in python3 i get:
>>> import ros
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/ros/hydro/lib/python2.7/dist-packages/ros/__init__.py", line 41, in <module>
import roslib
File "/opt/ros/hydro/lib/python2.7/dist-packages/roslib/__init__.py", line 50, in <module>
from roslib.launcher import load_manifest
File "/opt/ros/hydro/lib/python2.7/dist-packages/roslib/launcher.py", line 42, in <module>
import rospkg
ImportError: No module named 'rospkg'
any idea for a solution of this problem?
What if I do not use catkin? Because all along I am using rosbuild. Sorry if making any inconvenient I am a new programmer.