ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

groovy fails install on OSX

asked 2012-12-23 01:33:39 -0500

jkp gravatar image

updated 2012-12-28 08:02:29 -0500

Kevin gravatar image

I am trying to install Groovy on OSX using homebrew. I follow the instructions on the installation page. When I get to the cmake step, I get the following error:

$ cmake .. -DCMAKE_INSTALL_PREFIX=/opt/ros/groovy -DSETUPTOOLS_DEV_LAYOUT=OFF
-- Using CATKIN_DEVEL_PREFIX: /Users/jkp/groovy_underlay/build/devel
-- Found gtest: gtests will be built
-- catkin 0.5.58
Traceback (most recent call last):
  File "/Users/jkp/groovy_underlay/build/catkin_generated/generate_cached_env.py", line 12, in <module>
    from catkin.environment_cache import generate_environment_script, generate_static_environment_script
ImportError: No module named environment_cache
CMake Error at catkin/cmake/safe_execute_process.cmake:11 (message):
  execute_process(/usr/local/bin/python
  /Users/jkp/groovy_underlay/build/catkin_generated/generate_cached_env.py)
  returned error code 1
Call Stack (most recent call first):
  catkin/cmake/all.cmake:187 (safe_execute_process)
  CMakeLists.txt:15 (include)


-- Configuring incomplete, errors occurred!

Is there something I have missed?

edit retag flag offensive close merge delete

Comments

It looks like the Python modules from catkin are not found. Can you please post line 11 (the one before the failing import) of the mentioned generate_cached_env.py file?

Dirk Thomas gravatar image Dirk Thomas  ( 2012-12-23 09:20:08 -0500 )edit

You can also try updating your version of catkin_pkg with sudo pip install -U catkin_pkg

WilliamWoodall gravatar image WilliamWoodall  ( 2012-12-23 10:16:45 -0500 )edit

Also I am going to be updating the instructions soon to reflect the new method of building ROS from source show here: http://www.ros.org/wiki/groovy/Installation/Source

WilliamWoodall gravatar image WilliamWoodall  ( 2012-12-23 10:17:52 -0500 )edit

Thanks for your comments. The update of catkin did not help.

jkp gravatar image jkp  ( 2012-12-25 08:27:56 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
2

answered 2013-01-01 15:01:38 -0500

kartikmohta gravatar image

This can happen if you have the fuerte environment variables set. Just comment out the line in your .bashrc which sources the setup.bash (or whatever you have depending on your shell) and try the cmake step again (after opening a new terminal).

edit flag offensive delete link more

Comments

What is a fuerte environment variable?

Kevin gravatar image Kevin  ( 2013-01-01 15:13:26 -0500 )edit

I meant to say the ROS environment variables from a fuerte install, things like ROS_ROOT etc.

kartikmohta gravatar image kartikmohta  ( 2013-01-01 17:44:40 -0500 )edit

kartikmohta is correct. Make sure you don't have a fuerte environment sourced or that you don't have catkin installed to /usr/local or somewhere else on your python path. you can test this by opening python and ensuring that import catkin fails.

WilliamWoodall gravatar image WilliamWoodall  ( 2013-01-04 08:00:15 -0500 )edit
0

answered 2012-12-25 08:33:01 -0500

jkp gravatar image

The first lines of the python file in question is:

from __future__ import print_function
import argparse
import os
import stat
import sys

try:
    from catkin.environment_cache import generate_environment_script, generate_static_environment_script
except ImportError:
    # find the import relatively to make it work before installing catkin
    sys.path.append(os.path.join('/Users/jkp/groovy_underlay/catkin/cmake', '..', 'python'))
    from catkin.environment_cache import generate_environment_script, generate_static_environment_script

As far as I can see, that ought to work...

edit flag offensive delete link more

Comments

Please edit your question with more information instead of providing an "answer" with more information.

tfoote gravatar image tfoote  ( 2012-12-25 13:53:05 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2012-12-23 01:33:39 -0500

Seen: 1,147 times

Last updated: Jan 01 '13