Robotics StackExchange | Archived questions

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

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/__init__.py", 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

Asked by Abdu on 2017-05-30 12:58:05 UTC

Comments

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

Asked by jarvisschultz on 2017-05-30 16:57:06 UTC

Answers

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:

Asked by jarvisschultz on 2017-05-30 17:00:26 UTC

Comments

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 https://bootstrap.pypa.io/get-pip.py

sudo python get-pip.py

Asked by Abdu on 2017-05-31 08:34:10 UTC

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.

Asked by jarvisschultz on 2017-05-31 10:35:03 UTC