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

The problem is most likely this:

-- Using PYTHON_EXECUTABLE: /usr/bin/python3

ROS Python packages are only installed for the default system-provided Python interpreter, which would be Python 2 on Ubuntu Xenial.

As Catkin (or really: CMake) detects Python 3 as the default interpreter, and catkin_pkg is not installed for that version, you get the error message you show.

You'll need to either install catkin_pkg for Python 3 (sudo apt install python3-catkin-pkg) or make the default system-interpreter Python 2 again or override which version of Python Catkin/CMake uses by setting -DPYTHON_VERSION=3.5 when invoking catkin_make.

If you require further information or assistance, I'd recommend searching this forum for Python 3 related problems with Catkin (or any of the ROS 1 packages) as there have been quite a nr of posts about that (use Google: no module named site:answers.ros.org).

The problem is most likely this:

-- Using PYTHON_EXECUTABLE: /usr/bin/python3

ROS Python packages (or really: Debian/Ubuntu Python packages) are only installed for the default system-provided Python interpreter, which would be Python 2 on Ubuntu Xenial.

As Catkin (or really: CMake) detects Python 3 as the default interpreter, and catkin_pkg is not installed for that version, you get the error message you show.

You'll need to either install catkin_pkg for Python 3 (sudo apt install python3-catkin-pkg) or make the default system-interpreter Python 2 again or override which version of Python Catkin/CMake uses by setting -DPYTHON_VERSION=3.5 when invoking catkin_make.

If you require further information or assistance, I'd recommend searching this forum for Python 3 related problems with Catkin (or any of the ROS 1 packages) as there have been quite a nr of posts about that (use Google: no module named site:answers.ros.org).