Ask Your Question
0

I am trying to install ROS using CMake, as shown in the tutorials. I am getting some strange errors in the process. I also checked that catkin was installed correctly and the python path was also correct. Can anybody please help me?

asked 2017-06-15 06:39:13 -0500

rid7 gravatar image

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/kinetic/share/catkin/cmake/safe_execute_process.cmake:11 (message): execute_process(/usr/local/bin/python "/opt/ros/kinetic/share/catkin/cmake/parse_package_xml.py" "/opt/ros/kinetic/share/catkin/cmake/../package.xml" "/home/riddhi/catkin_ws/build/catkin/catkin_generated/version/package.cmake") returned error code 1 Call Stack (most recent call first): /opt/ros/kinetic/share/catkin/cmake/catkin_package_xml.cmake:63 (safe_execute_process) /opt/ros/kinetic/share/catkin/cmake/all.cmake:151 (_catkin_package_xml) /opt/ros/kinetic/share/catkin/cmake/catkinConfig.cmake:20 (include) CMakeLists.txt:52 (find_package)

-- Configuring incomplete, errors occurred! See also "/home/riddhi/catkin_ws/build/CMakeFiles/CMakeOutput.log". See also "/home/riddhi/catkin_ws/build/CMakeFiles/CMakeError.log". Invoking "cmake" failed

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2017-06-15 09:16:23 -0500

angeltop gravatar image

I had the same problem after some deep learning package installation which messed up my pythonpath catkin_pkg in my installation was in /usr/lib/python2.7/dist-packages which was missing from pythonpath. So, this fixed it "export PYTHONPATH=$PYTHONPATH:/usr/lib/python2.7/dist-packages"

edit flag offensive delete link more

Comments

Thanx a lot angeltop! It solved the problem.

rid7 gravatar image rid7  ( 2017-06-15 09:58:31 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2017-06-15 06:38:36 -0500

Seen: 158 times

Last updated: Jun 15 '17