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

"No module named catkin_pkg.package" error during Catkin make

asked 2016-12-17 00:15:38 -0500

BhanuKiran.Chaluvadi gravatar image

updated 2016-12-17 09:29:57 -0500

130s gravatar image

I am following the tutorial in http://wiki.ros.org/ROS/Tutorials/Ins...

After installing ROS-indigo..I tried

$ mkdir -p ~/catkin_ws/src
$ cd ~/catkin_ws/src
$ catkin_init_workspace
$ cd ~/catkin_ws/
$ catkin_make

But cmake command failed !!

chaluvad@nth:~/catkin_ws$ catkin_make
Base path: /home/chaluvad/catkin_ws
Source space: /home/chaluvad/catkin_ws/src
Build space: /home/chaluvad/catkin_ws/build
Devel space: /home/chaluvad/catkin_ws/devel
Install space: /home/chaluvad/catkin_ws/install
####
#### Running command: "cmake /home/chaluvad/catkin_ws/src -DCATKIN_DEVEL_PREFIX=/home/chaluvad/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/home/chaluvad/catkin_ws/install -G Unix Makefiles" in "/home/chaluvad/catkin_ws/build"
####
-- Using CATKIN_DEVEL_PREFIX: /home/chaluvad/catkin_ws/devel
-- Using CMAKE_PREFIX_PATH: /opt/ros/indigo
-- This workspace overlays: /opt/ros/indigo
-- Using PYTHON_EXECUTABLE: /usr/local/bin/python
-- Using Debian Python package layout
-- Using empy: /usr/bin/empy
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /home/chaluvad/catkin_ws/build/test_results
-- Found gtest sources under '/usr/src/gtest': gtests will be built
-- Using Python nosetests: /usr/bin/nosetests-2.7
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/indigo/share/catkin/cmake/safe_execute_process.cmake:11 (message):
  execute_process(/usr/local/bin/python
  "/opt/ros/indigo/share/catkin/cmake/parse_package_xml.py"
  "/opt/ros/indigo/share/catkin/cmake/../package.xml"
  "/home/chaluvad/catkin_ws/build/catkin/catkin_generated/version/package.cmake")
  returned error code 1
Call Stack (most recent call first):
  /opt/ros/indigo/share/catkin/cmake/catkin_package_xml.cmake:63 (safe_execute_process)
  /opt/ros/indigo/share/catkin/cmake/all.cmake:151 (_catkin_package_xml)
  /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake:20 (include)
  CMakeLists.txt:52 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/chaluvad/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/chaluvad/catkin_ws/build/CMakeFiles/CMakeError.log".
Invoking "cmake" failed
chaluvad@nth:~/catkin_ws$
edit retag flag offensive close merge delete

Comments

1

Please tell us how you installed ROS. Any tutorials you followed? catkin_pkg is a base package and should have been installed for you.

Using PYTHON_EXECUTABLE:/usr/local/bin/python

are you using some custom version of Python? Built from source?

gvdhoorn gravatar image gvdhoorn  ( 2016-12-17 09:11:22 -0500 )edit

Hi, I just followed instructions from http://wiki.ros.org/indigo/Installati...

BhanuKiran.Chaluvadi gravatar image BhanuKiran.Chaluvadi  ( 2016-12-17 14:16:07 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2016-12-17 23:42:23 -0500

ahendrix gravatar image

Your version of python is in /usr/local/bin/python ; this means that at some point you've installed a custom version of python, and you're not using the system's version.

Your custom version of python probably isn't finding the system-installed python libraries. The general options here are to either remove the custom version of python, or install the required python packages where it can find them. Which option is better depends on why you installed a custom version, and whether you're still using it.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2016-12-17 00:15:38 -0500

Seen: 3,674 times

Last updated: Dec 17 '16