Catkin fails on osx 10.9, can't find '__main__' module in empy-3.1-py2.7.egg/em.pyc
After a lot of trouble to install build everything with rosdep and brew, I got this error when trying to run: ./src/catkin/bin/catkin_make_isolated --install
-- Using CATKIN_DEVEL_PREFIX: /Users/bruno/ros_catkin_ws/devel_isolated/catkin
-- Using CMAKE_PREFIX_PATH:
-- Using default Python package layout
-- Using CATKIN_ENABLE_TESTING: ON
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /Users/bruno/ros_catkin_ws/build_isolated/catkin/test_results
-- Found gtest: gtests will be built
-- catkin 0.5.77
/usr/bin/python: can't find '__main__' module in '/Library/Python/2.7/site-packages/empy-3.1-py2.7.egg/em.pyc'
CMake Error at cmake/safe_execute_process.cmake:11 (message):
execute_process(/Users/bruno/ros_catkin_ws/build_isolated/catkin/catkin_generated/env_cached.sh
"/usr/bin/python"
"/Library/Python/2.7/site-packages/empy-3.1-py2.7.egg/em.pyc"
"--raw-errors" "-F"
"/Users/bruno/ros_catkin_ws/build_isolated/catkin/catkin_generated/pkg.develspace.context.pc.py"
"-o"
"/Users/bruno/ros_catkin_ws/devel_isolated/catkin/lib/pkgconfig/catkin.pc"
"/Users/bruno/ros_catkin_ws/src/catkin/cmake/em/pkg.pc.em") returned error
code 1
Call Stack (most recent call first):
cmake/em_expand.cmake:23 (safe_execute_process)
cmake/catkin_package.cmake:358 (em_expand)
cmake/catkin_package.cmake:98 (_catkin_package)
CMakeLists.txt:11 (catkin_package)
-- Configuring incomplete, errors occurred!
See also "/Users/bruno/ros_catkin_ws/build_isolated/catkin/CMakeFiles/CMakeOutput.log".
ls -l /usr/local//lib/python2.7/site-packages/
drwxr-xr-x 7 bruno admin 238 23 Out 09:13 GDAL-1.10.1-py2.7.egg-info
drwxr-xr-x 26 bruno admin 884 13 Nov 11:26 PyQt4
drwxr-xr-x 21 bruno admin 714 13 Nov 01:31 PySide
drwxr-xr-x 7 bruno admin 238 10 Nov 09:20 VTK-5.10.1-py2.7.egg-info
lrwxr-xr-x 1 bruno admin 64 5 Nov 00:22 cv.py -> ../../../Cellar/opencv/2.4.6.1/lib/python2.7/site-packages/cv.py
lrwxr-xr-x 1 bruno admin 65 5 Nov 00:22 cv2.so -> ../../../Cellar/opencv/2.4.6.1/lib/python2.7/site-packages/cv2.so
-rw-r--r-- 1 bruno admin 236 13 Nov 22:14 easy-install.pth
-rw-r--r-- 1 root admin 114277 27 Out 2003 em.py
-rw-r--r-- 1 root admin 131548 13 Nov 22:37 em.pyc
-rw-r--r-- 1 root admin 1165 13 Nov 22:37 empy-3.1-py2.7.egg-info
lrwxr-xr-x 1 bruno admin 63 23 Out 09:13 gdal.py -> ../../../Cellar/gdal/1.10.1/lib/python2.7/site-packages/gdal.py
lrwxr-xr-x 1 bruno admin 68 23 Out 09:13 gdalconst.py -> ../../../Cellar/gdal/1.10.1/lib/python2.7/site-packages/gdalconst.py
lrwxr-xr-x 1 bruno admin 70 23 Out 09:13 gdalnumeric.py -> ../../../Cellar/gdal/1.10.1/lib/python2.7/site-packages/gdalnumeric.py
drwxr-xr-x 5 bruno admin 170 10 Nov 21:09 git_remote_helpers
lrwxr-xr-x 1 bruno admin 95 10 Nov 21:09 git_remote_helpers-0.1.0-py2.7.egg-info -> ../../../Cellar/git/1.8.4.3/lib/python2.7/site-packages/git_remote_helpers-0.1.0-py2.7.egg-info
drwxr-xr-x 40 bruno admin 1360 12 Nov 22:03 hgext
drwxr-xr-x 105 bruno admin 3570 12 Nov 22:03 mercurial
lrwxr-xr-x 1 bruno admin 86 12 Nov 22:03 mercurial-2.8-py2.7.egg-info -> ../../../Cellar/mercurial/2.8/lib/python2.7/site-packages/mercurial-2.8-py2.7.egg-info
lrwxr-xr-x 1 bruno admin 62 23 Out 09:13 ogr.py -> ../../../Cellar/gdal ...
Are you on OSX 10.8? What package is this?
Have you seen this answer? http://answers.ros.org/question/36130/osx-fuerte-rosdep-install-a-fails-on-pcl/
OSX 10.9, and I'm not installing catkin with brew, but with the command ./src/catkin/bin/catkin_make_isolated --install. I followed all steps in http://wiki.ros.org/hydro/Installation/OSX/Homebrew/Source
Hmm looks like some python dependencies problem. Try to do this command again and carefully check that there were no errors. sudo pip install -U wstool rosdep rosinstall rosinstall_generator rospkg catkin-pig Distribute
Everything reinstalled, without errors, but still same problem (I'm assuming you miss-typed catkin-pkg). It says that can't find __main__ in empty, but i just tested the package and seems all right... :(
What does `which python` say?
Make sure that you are using python 2.7.5 that you installed with homebrew and not the system python.
Can you execute `ls -l /usr/local//lib/python2.7/site-packages/`