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

CMake error when invoking catkin_make_isolated (Mac OS High Sierra)

asked 2020-08-04 17:37:26 -0500

jacobe90 gravatar image

updated 2020-08-05 08:06:22 -0500

Hello everyone,

Ros newbie here, I am following the tutorial on Ros Wiki for installation of Ros Melodic for Mac OS X, and am encountering an issue when attempting to invoke catkin_make_isolated to build catkin packages. I'm running OS X 10.13 on a MacBook Air.

    $./src/catkin/bin/catkin_make_isolated --install -DCMAKE_BUILD_TYPE=Release -DCMAKE_MACOSX_RPATH=ON -DCMAKE_INSTALL_RPATH=$HOME/ros_catkin_ws/install_isolated/lib

Here is what happens when I run the above command:

Base path: /$HOME/ros_catkin_ws
Source space: /$HOME/ros_catkin_ws/src
Build space: /$HOME/ros_catkin_ws/build_isolated
Devel space: /$HOME/ros_catkin_ws/devel_isolated
Install space: /$HOME/ros_catkin_ws/install_isolated
Additional CMake Arguments: -DCMAKE_BUILD_TYPE=Release -DCMAKE_MACOSX_RPATH=ON 

-- Using CATKIN_DEVEL_PREFIX: /$HOME/ros_catkin_ws/devel_isolated/catkin
-- Using PYTHON_EXECUTABLE: /usr/bin/python
-- Using default Python package layout
-- Using empy: /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/
-- Call enable_testing()
-- Using CATKIN_TEST_RESULTS_DIR: /$HOME/ros_catkin_ws/build_isolated/catkin/test_results
-- Found gtest: gtests will be built
-- Using Python nosetests: /Library/Frameworks/Python.framework/Versions/3.6/bin/nosetests
-- catkin 0.7.28
Traceback (most recent call last):
  File "/$HOME/ros_catkin_ws/src/catkin/cmake/", line 46, in <module>
    import setuptools
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/", line 21, in <module>
    import setuptools.version
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/setuptools/", line 1, in <module>
    import pkg_resources
  File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/pkg_resources/", line 1380
    raise SyntaxError(e) from e
SyntaxError: invalid syntax
CMake Error at cmake/safe_execute_process.cmake:11 (message):

  "catkin" "/$HOME/ros_catkin_ws/src/catkin/"
  returned error code 1
Call Stack (most recent call first):
  cmake/catkin_python_setup.cmake:46 (safe_execute_process)
  CMakeLists.txt:23 (catkin_python_setup)

-- Configuring incomplete, errors occurred!

I am pretty sure something is going wrong when interrogates, but I do not know why this is. Any help would be much appreciated!

For reference, here is my file:

from catkin_pkg.python_setup import generate_distutils_setup
from setuptools import setup
import os

catkin_scripts = [

if == 'nt':
    import sys
    import shutil
    if sys.version_info.major == 2:
        # On Windows\Python2, Python scripts making use of multiprocessing
        # have to meet several requirements to work.
        # (catkin_pkg makes use of it to do parallel package parser.)
        # One is that the scripts have to be ended with .py extension;
        # Otherwise, it will manifest as ImportError.
        if not os.path.isdir('build/bin'):
        for script in catkin_scripts:
            shutil.copyfile(script, 'build/' % script)
        catkin_scripts = ['build/' % script for script in catkin_scripts]

d = generate_distutils_setup(
    package_dir={'': 'python'},


It is unfortunately impossible for me to share my catkin build output at this ... (more)

edit retag flag offensive close merge delete


can you share your

Also is it possible for you to share catkin build output?

Tahir M. gravatar image Tahir M.  ( 2020-08-05 04:40:45 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2020-08-09 17:32:47 -0500

jacobe90 gravatar image

updated 2020-08-09 17:52:35 -0500

I ended up organizing my python by downloading Anaconda, and successfully started the catkin_make_isolated process in an Anaconda environment with python 2.7.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2020-08-04 17:37:26 -0500

Seen: 326 times

Last updated: Aug 09 '20