Robotics StackExchange | Archived questions

Error occured when importing my project to qtcreator

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/catkinws/build/catkingenerated/generatecachedsetup.py") returned error code 1 Call Stack (most recent call first): /opt/ros/hydro/share/catkin/cmake/all.cmake:187 (safeexecuteprocess) /opt/ros/hydro/share/catkin/cmake/catkinConfig.cmake:20 (include) CMakeLists.txt:52 (find_package)

Traceback (most recent call last): File "/home/quka/dev/catkinws/build/catkingenerated/generatecachedsetup.py", line 19, in from catkin.environmentcache import generateenvironmentscript ImportError: No module named catkin.environmentcache

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

Asked by Qt_Yeung on 2014-09-15 03:58:06 UTC

Comments

did you start qtcreator from terminal or from script ?

Asked by bvbdort on 2014-09-15 04:14:13 UTC

i start it from terminal.

Asked by Qt_Yeung on 2014-09-15 04:16:36 UTC

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

Asked by William on 2014-09-16 12:44:38 UTC

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).

Asked by Dirk Thomas on 2014-09-17 07:14:47 UTC

Answers