Lost ROS enviroment after running Cmake in Qt Creator

asked 2014-11-13 10:24:31 -0600

srmauv gravatar image

updated 2015-08-13 17:44:30 -0600

Naman gravatar image

I tried to open my project in Qt Creator following http://wiki.ros.org/IDEs . Opened the CmakeLists.txt and ran Cmake. I get this error during the process:

CMake Error at /opt/ros/indigo/share/catkin/cmake/safe_execute_process.cmake:11 (message):
  execute_process(/usr/bin/python
  "/home/akshaya/srmauv/build/catkin_generated/generate_cached_setup.py")
  returned error code 1
Call Stack (most recent call first):
  /opt/ros/indigo/share/catkin/cmake/all.cmake:185 (safe_execute_process)
  /opt/ros/indigo/share/catkin/cmake/catkinConfig.cmake:20 (include)
  CMakeLists.txt:52 (find_package)
Traceback (most recent call last):
  File "/home/akshaya/srmauv/build/catkin_generated/generate_cached_setup.py", line 19, in <module>
    from catkin.environment_cache import generate_environment_script
ImportError: No module named catkin.environment_cache

Now I cannot use ros aliases like roscore and stuff. Did source the setup.bash from /opt/ros/indigo but and even my catkin_ws setup.bash but still the roscd commands and catkin_make does not work. Was able to run roscore though. Earlier that was not running as well.

Please let me know whats wrong. Did the CMake process in Qt mess things up? Thanks in advance

edit retag flag offensive close merge delete