Error occured when importing my project to qtcreator

asked 2014-09-15 03:58:06 -0600

Qt_Yeung gravatar image

updated 2014-09-15 04:00:03 -0600

Hi,

i try to compile my ROS project with qtcreator, i followed this tutorial link text, but when i run cmake, i got the following error:

"/home/quka/dev/catkin_ws/build/catkin_generated/generate_cached_setup.py") returned error code 1 Call Stack (most recent call first): /opt/ros/hydro/share/catkin/cmake/all.cmake:187 (safe_execute_process) /opt/ros/hydro/share/catkin/cmake/catkinConfig.cmake:20 (include) CMakeLists.txt:52 (find_package)

Traceback (most recent call last): File "/home/quka/dev/catkin_ws/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

Someone knows how to fix it? I'm using hydro+ubuntu 12.04.

edit retag flag offensive close merge delete

Comments

did you start qtcreator from terminal or from script ?

bvbdort gravatar imagebvbdort ( 2014-09-15 04:14:13 -0600 )edit

i start it from terminal.

Qt_Yeung gravatar imageQt_Yeung ( 2014-09-15 04:16:36 -0600 )edit

Make sure you start it from a terminal in which you have sourced the setup.bash file in /opt/ros/hydro.

William gravatar imageWilliam ( 2014-09-16 12:44:38 -0600 )edit

You might also want to double check that you are using the latest version of the catkin_pkg package (and e.g. not outdated version installed via pip).

Dirk Thomas gravatar imageDirk Thomas ( 2014-09-17 07:14:47 -0600 )edit