Hi all,
I have been cracking my head over this one. Recently I installed Anaconda Python for a different project. Today I tried installing ROS indigo on my 14.04 Ubuntu. When I do a catkin_make, it cannot find catkin_pkg:
-- Using PYTHON_EXECUTABLE: /home/ruud/anaconda/bin/python
-- Using Debian Python package layout
-- 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):
But it is installed under the python distribution that came with ubuntu:
ruud@computer:~$ dpkg -L python-catkin-pkg
/usr/lib/python2.7/dist-packages/catkin_pkg
When I check which version of pyhon is being used I get:
ruud@computer:~$ python --version
Python 2.7.10 :: Anaconda 2.3.0 (64-bit)
And when I turn off Anaconda python in the .bashrc I get:
ruud@computer:~/sweeper/trunk$ python --version
Python 2.7.6
But running catkin_make in that case results in the same error above. Catkin keeps using:
-- Using PYTHON_EXECUTABLE: /home/ruud/anaconda/bin/python
Please help!
Ruud
Originally posted by Ruud on ROS Answers with karma: 212 on 2015-11-06
Post score: 9
Original comments
Comment by Ahmed Abdalla on 2016-06-08:
Hi :)
Did you manage to crack this one?
Comment by Kailegh on 2017-03-13:
where you able to solve this?