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

Search for 'catkin' in workspace failed (catkin_find_pkg catkin /home/imr/catkin_ws/src): Traceback (most recent call last) [closed]

asked 2017-05-30 12:58:05 -0600

Abdu gravatar image

updated 2017-05-30 16:56:23 -0600

I get the following error with catkin_make, I was trying to install Sphinx and its dependencies, I am using ros indigo,

anyone can help me please ????

imr@IMR-PC:~/catkin_ws$ catkin_make
Base path: /home/imr/catkin_ws
Source space: /home/imr/catkin_ws/src
Build space: /home/imr/catkin_ws/build
Devel space: /home/imr/catkin_ws/devel
Install space: /home/imr/catkin_ws/install
#### Running command: "make cmake_check_build_system" in "/home/imr/catkin_ws/build"
CMake Error at CMakeLists.txt:20 (message):
  Search for 'catkin' in workspace failed (catkin_find_pkg catkin
  /home/imr/catkin_ws/src): Traceback (most recent call last):

    File "/usr/bin/catkin_find_pkg", line 5, in <module>
      from pkg_resources import load_entry_point
    File "/usr/local/lib/python2.7/dist-packages/pkg_resources/", line 70, in <module>
      import packaging.version

  ImportError: No module named packaging.version

-- Configuring incomplete, errors occurred!
See also "/home/imr/catkin_ws/build/CMakeFiles/CMakeOutput.log".
See also "/home/imr/catkin_ws/build/CMakeFiles/CMakeError.log".
make: *** [cmake_check_build_system] Error 1
Invoking "make cmake_check_build_system" failed
edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by Abdu
close date 2017-05-31 08:37:48.699228


Please use the preformatted text button (101010) when posting errors or code snippets.

jarvisschultz gravatar image jarvisschultz  ( 2017-05-30 16:57:06 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-05-30 17:00:26 -0600

Sounds like you have a version of the Python module setuptools that needs a newer version of pip. Here are a few things to try/resources:

edit flag offensive delete link more


Thank u so much for your help,

The problem was fixed using the following commands, then I installed some missing files, now catkin_make works fine

sudo apt-get purge python-pip python-setuptools

curl -O

sudo python

Abdu gravatar image Abdu  ( 2017-05-31 08:34:10 -0600 )edit

Glad that the links pointed you in the right direction! Rather than closing the question, it would likely make more sense to accept the answer.

jarvisschultz gravatar image jarvisschultz  ( 2017-05-31 10:35:03 -0600 )edit

Question Tools



Asked: 2017-05-30 12:58:05 -0600

Seen: 2,943 times

Last updated: May 30 '17