"No module named catkin_pkg.package" on catkin_make w/ Hydro
Working with ROS Hydro on Lubuntu 12.04. I have previously worked with Hydro on this OS before so I am relatively sure theres no compatibility differences between it and the standard Ubuntu 12.04 release. All links below are either to wiki.ros or answers.ros.
I followed the ROS installation tutorial here, selecting the recommended options, and then proceeded to test the installation by following the first tutorial here. However, running: ~/catkin_ws$ catkin_make fails and shows the error down below.
There are several other questions here that deal with similar problems such as here and here, but following the solutions provided did not solve the issue. Here, the possibility of not using the system version of python is brought up. This is possibly the issue but I'm unsure how to confirm or remedy this. If this is the case, I'd have to add the catkin_pkg to the PYTHONPATH, but without confirmation that I am not using the system version of python I'm unsure how and where to do this.
Base path: /home/khitrir/catkin_ws
Source space: /home/khitrir/catkin_ws/src
Build space: /home/khitrir/catkin_ws/build
Devel space: /home/khitrir/catkin_ws/devel
Install space: /home/khitrir/catkin_ws/install
####
#### Running command: "cmake /home/khitrir/catkin_ws/src -DCATKIN_DEVEL_PREFIX=/home/khitrir/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/home/khitrir/catkin_ws/install" in "/home/khitrir/catkin_ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/khitrir/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/hydro
-- This workspace overlays: /opt/ros/hydro
-- Using PYTHON_EXECUTABLE: /usr/local/bin/python
-- Python version: 2.7
-- Using Debian Python package layout
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/khitrir/catkin_ws/build/test_results
-- Found gtest sources under '/usr/src/gtest': gtests will be built
ImportError: "from catkin_pkg.package import parse_package" failed: No module named catkin_pkg.package
Make sure that you have installed "catkin_pkg", it is up to date and on the PYTHONPATH.
CMake Error at /opt/ros/hydro/share/catkin/cmake/safe_execute_process.cmake:11 (message):
execute_process(/usr/local/bin/python
"/opt/ros/hydro/share/catkin/cmake/parse_package_xml.py"
"/opt/ros/hydro/share/catkin/cmake/../package.xml"
"/home/khitrir/catkin_ws/build/catkin/catkin_generated/version/package.cmake")
returned error code 1
Call Stack (most recent call first):
/opt/ros/hydro/share/catkin/cmake/catkin_package_xml.cmake:63 (safe_execute_process)
/opt/ros/hydro/share/catkin/cmake/all.cmake:152 (_catkin_package_xml)
/opt/ros/hydro/share/catkin/cmake/catkinConfig.cmake:20 (include)
CMakeLists.txt:52 (find_package)
-- Configuring incomplete, errors occurred!
Invoking "cmake" failed