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

Revision history [back]

click to hide/show revision 1
initial version

This would appear to be the classic problem where you're attempting to use a Python interpreter which doesn't have the ROS Python packages installed.

Note this part of the Catkin/CMake output:

-- Found PythonInterp: /usr/bin/python3 (found suitable version "3.5.2", minimum required is "2") 
-- Using PYTHON_EXECUTABLE: /usr/bin/python3
...
-- Found PythonInterp: /usr/bin/python3 (found version "3.5.2")

ROS Kinetic officially only supports Python 2.x, which means that the official ROS Kinetic Python packages will only be installed for the system default Python interpreter on your OS.

Assuming you are running Ubuntu Xenial, this would be Python 2.7.12.

Assuming you have installed ROS Kinetic using apt, the ROS Python packages would have been installed for that version of Python.

I'm not sure why CMake decides to use Python 3.x on your system, but that is the problem, as this Python interpreter will not be able to find the catkin_pkg package, leading to the error you show.

There is a Python 3 version of catkin_pkg, but if you have no absolute necessity to use Python 3.x with your Kinetic installation, I would probably recommend overriding the version of Python for CMake and set it to 2.x instead.