Yes, I can confirm the same success with a Ubuntu 20.04 VM on my Mac M1 and that the scripts run fast. As described for a Linux installation, must enable the udev rule. I will look forward, though for release of a native MAC arm64 Homebrew wheel installation. I’ve also installed the depthai on a Jetson Nano B01 Ubuntu 18.04 and Raspberry Pi 4/4G Raspi OS Buster 32 bit arm7.( though the compile takes 35 mins)

  • erik replied to this.

    Hello RobotRoss , looking at piwheels, we should have 2.13.2 pre-built wheels for arm6/arm7 (python 3.7/3.9), as on the img below.

    Thanks, Erik

    7 days later

    Hi everyone!!
    Yesterday I received my flaming new OAK-D Lite, and after 30 minutes my experience is not that D-Litefull ;-). And I haven't even plugged it in 😅 . I've followed Brandon instructions and copied a Terminal app on the desktop, selected Open using Rosetta, checked that the uname -m was X84_64, and still get the following error (exactly the same I had before re-creating the "Rosetta Terminal"):

    Error: Cannot install under Rosetta 2 in ARM default prefix (/opt/homebrew)!
    To rerun under ARM use:
    arch -arm64 brew install ...
    To install under x86_64, install Homebrew into /usr/local.

    I have checked that there is a Homebrew folder in /usr/local, but I guess the code is using the native Homebrew installation. Any ideas or suggestions


    EDIT:
    I have fixed this with:
    export PATH=/usr/local/Homebrew/bin:$PATH
    in case it helps someone.

    If the Terminal is enabled for x86_64 ("Use with Rosetta" box checked" and there is NO previous Homebrew installed in the native arm64 Mac, this may work. The problem I had was that I had apreviously installed Homebrew which goes into /opt/homebrew space and sets "HOMEBREW_PREFIX: /opt/homebrew " and matching "PATH" locations. This apparently confuses the depthai installation scripts which installs another homebrew stack in "/usr/local/homebrew" space but does not completely configure the default paths . Execute "% brew config" to see your default path settings. While I have NOT yet followed these instructions, check out the #macos for posts by whab which uses a virtual environment: https://discord.com/channels/790680891252932659/924798973519216651/934391777811636294 .

    a month later

    This is not the answer.. compile the wheel for the M1 is the solution:

    whab — 01/22/2022
    For those struggling with running DepthAI natively on their M1 computers, here are step-by-step instructions to build, install and test a M1 native version of DepthAI in less than 30 minutes (tested on a new MacBookPro M1 Pro running macOS Monterey 12.1 with a OAK-D-Lite):

    # Install native M1 version of brew
    /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
    echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
    eval "$(/opt/homebrew/bin/brew shellenv)"
    
    # Install conda to create virtual environments for Python
    brew install --cask miniconda
    conda init zsh
    Close and re-open a Terminal window
    
    # Install DepthAI by building a M1 wheel (inside ~/DepthAI/)
    conda create --name DepthAIEnv39 python=3.9
    conda activate DepthAIEnv39
    python3 -m pip install -U pip
    brew update
    brew install cmake libusb
    cd ~; mkdir DepthAI; cd DepthAI
    git clone --recursive  https://github.com/luxonis/depthai-python.git
    cd depthai-python
    mkdir build && cd build
    cmake ..
    cmake --build . --parallel
    cd ..
    python3 -m pip wheel . -w wheelhouse
    pip install wheelhouse/depthai-*
    
    # Test DepthAI with a OAK plugged to your new M1 Mac
    cd examples
    nano install_requirements.py
        Remove code of block (3 lines) starting with: if thisPlatform == "arm64" and platform.system() == "Darwin":
        Remove code of block (48 lines) starting with: if not args.skip_depthai:
    python3 install_requirements.py
    python3 ColorCamera/rgb_preview.py

    Enjoy!

    7 days later

    Hi! Thanks for the code! I'm, new to my M1 mac and macOS and I'm having some problems when I run this part
    cmake ..
    I get this error
    CMake Error: CMAKE_C_COMPILER not set, after EnableLanguage
    CMake Error: CMAKE_CXX_COMPILER not set, after EnableLanguage

    I've tried these solutions from stackoverflow , but they haven't helped

    sudo xcode-select --reset
    from [1]https://stackoverflow.com/questions/41380900/cmake-error-no-cmake-c-compiler-could-be-found-using-xcode-and-glfw

    export SDKROOT=$(xcrun --sdk macosx --show-sdk-path)
    xcode-select -p
    and selecting the path that I get from there
    sudo xcode-select -s /Library/Developer/CommandLineTools
    from [2]https://stackoverflow.com/questions/65276102/compilation-errors-with-m1-macbook-pro-and-cmake

    a month later

    Thanks for writing the install steps. I ran into the following error while running the cmake ..
    The depthai-core/CMakeLists.txt and depthai-core/shared directory didn't get created.
    Can you suggest a solution? Thank you.

    CMake Error at depthai-core/shared/depthai-shared.cmake:38 (string):
    string sub-command SUBSTRING requires four arguments.
    Call Stack (most recent call first):
    depthai-core/CMakeLists.txt:150 (include)

    CMake Error at depthai-core/shared/depthai-shared.cmake:39 (if):
    if given arguments:

    "STREQUAL" "-"

    Unknown arguments specified
    Call Stack (most recent call first):
    depthai-core/CMakeLists.txt:150 (include)

    Here are the contents of the error log:

    Compiling the C compiler identification source file "CMakeCCompilerId.c" failed.
    Compiler: /Library/Developer/CommandLineTools/usr/bin/cc
    Build flags:
    Id flags:

    The output was:
    1
    ld: library not found for -lSystem
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    Compiling the CXX compiler identification source file "CMakeCXXCompilerId.cpp" failed.
    Compiler: /Library/Developer/CommandLineTools/usr/bin/c++
    Build flags:
    Id flags:

    The output was:
    1
    ld: library not found for -lc++
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    still no further progress in new M1 chips?I mean native.-_-.

    • erik replied to this.

      Hello weiYao ,
      M1 runners aren't yet supported by Github, that's why we haven't yet added support for native M1, more info here. As soon as that comes out we will also add support for M1 on depthai.
      Thank you for understanding, Erik

      2 months later

      I am trying to migrate from a working DepthAI/OAK-D on an older (X86-based) MacBook to a new (M1 Max-based) MacBook. Using the standard (and naive, in retrospect) migration approach left me with nothing working, due to several issues, including Python locations and versions, non-functional Homebrew, etc. I think I've got all issues resolved, except for the lack of M1 native DepthAI. Based on this discussion thread and the DepthAI documentation, I seem to have 3 options I can: (1) run the X86 DepthAI using Rosetta; (2) build the M1 native wheels; (3) wait for Luxonis to produce the M1 native wheels.

      My needs are currently not urgent; I'm not wild about Rosetta dependencies; from the thread it seems that with my level of system skills I'd never succeed at building M1 native wheels. That leaves waiting for Luxonis to produce the M1 native wheels. Is there an estimate of when that might happen? Thanks!

      Brandon This sounds exciting! That said, I don't fully understand. The GitHub link appears to suggest that M1-specific (not universal) wheels will get produced; that I think works for me. I'm unsure what you statement "This is not going to be automatically built" means. Does it refer to some Github restriction?

      Assuming the wheels do become available somehow, can you estimate when the relevant documentation will get updated? Thanks.

      • erik replied to this.

        Yes it means that M1 will just install w/out having any other work. Will be equivalent to x86 Mac, or x86 Linux and/or all the standard builds we have now.

        So this should be fully out this week when we do another release with this system.

        Hello gregflurry ,
        We have just implemented building these wheels today. Could you try it out as well?
        python3 -mpip install --extra-index-url https://artifacts.luxonis.com/artifactory/luxonis-python-snapshot-local/ depthai==2.16.0.0.dev0+fc472bd13f9c853148e7a35fc956f4bc0dbf49ae

        Thanks, Erik

          Thank you for bringing support to the M series processors and latest Macs. My camera is sitting beside my new iMac, hopefully the two will be on speaking terms soon.

          • erik replied to this.

            Hernia Please let us know if the above command work for you, so we can release the new M1 wheels to pypi🙂
            Thanks, Erik

              Successfully installed depthai-2.16.0.0.dev0+fc472bd13f9c853148e7a35fc956f4bc0dbf49ae

              Did receive this warning:

              × The package index page being used does not have a proper HTML doctype declaration.
              ╰─> Problematic URL: https://artifacts.luxonis.com/artifactory/luxonis-python-snapshot-local/depthai/

              note: This is an issue with the page at the URL mentioned above.
              hint: You might need to reach out to the owner of that package index, to get this fixed. See https://github.com/pypa/pip/issues/10825 for context.

              I attempted to install in what should appear to be a system with no DepthAI presence. For other reasons, I already had homebrew installed natively, and had Rosetta installed. I attempted to follow the installation instructions here using a native Terminal. I foolishly ran the command to install dependencies, and then read the paragraph after the command. During execution of the install script, I saw "Running in native arm64 mode, will prefix commands with: arch -x86_64", "Warning: Running in non-interactive mode because $CI is set.", "==> Installation successful!", " >> arch -x86_64 brew install python3 git", "Error: Cannot install under Rosetta 2 in ARM default prefix (/opt/homebrew)!"

              I'm not sure what this means and how to proceed. All I can tell for sure is that I now have two copies of homebrew, one for arm64 and one for x86_64, plus a git installation, presumably for x86_64. I was unable to extract any useful hints from the link in the installation instructions regarding having a native homebrew. I would like to be able to remove the x86_64 homebrew installation. I don't know what to do about git; I have not checked if an arm64 git exists.

              Despite my ignorance, I proceeded to attempt install depthAI using pip. That failed with the following:

              Collecting depthai
              Downloading depthai-2.16.0.0.tar.gz (360 kB)
              |████████████████████████████████| 360 kB 706 kB/s
              Installing build dependencies ... done
              Getting requirements to build wheel ... done
              Preparing wheel metadata ... done
              Building wheels for collected packages: depthai
              Building wheel for depthai (PEP 517) ... error
              ERROR: Command errored out with exit status 1:
              command: /Users/gregflurry/.pyenv/versions/3.9.5/bin/python /Users/gregflurry/.pyenv/versions/3.9.5/lib/python3.9/site-packages/pip/vendor/pep517/in_process/in_process.py build_wheel /var/folders/59/lm552gqn0nvgbmnk5lwyd1gr0000gs/T/tmp4d9j_470
              cwd: /private/var/folders/59/lm552gqn0nvgbmnk5lwyd1gr0000gs/T/pip-install-mjtvwbwy/depthai_1ea890efc84145bcbd773547823282a2
              Complete output (68 lines):
              running bdist_wheel
              running build
              running build_ext
              Traceback (most recent call last):
              File "setup.py", line 76, in run
              out = subprocess.check_output(['cmake', '--version'])
              File "/Users/gregflurry/.pyenv/versions/3.9.5/lib/python3.9/subprocess.py", line 424, in check_output
              return run(popenargs, stdout=PIPE, timeout=timeout, check=True,
              File "/Users/gregflurry/.pyenv/versions/3.9.5/lib/python3.9/subprocess.py", line 505, in run
              with Popen(
              popenargs, **kwargs) as process:
              File "/Users/gregflurry/.pyenv/versions/3.9.5/lib/python3.9/subprocess.py", line 951, in init
              self._execute_child(args, executable, preexec_fn, close_fds,
              File "/Users/gregflurry/.pyenv/versions/3.9.5/lib/python3.9/subprocess.py", line 1821, in _execute_child
              raise child_exception_type(errno_num, err_msg, err_filename)
              FileNotFoundError: [Errno 2] No such file or directory: 'cmake'


              During handling of the above exception, another exception occurred:


              Traceback (most recent call last):
              File "/Users/gregflurry/.pyenv/versions/3.9.5/lib/python3.9/site-packages/pip/vendor/pep517/in_process/in_process.py", line 280, in <module>
              main()
              File "/Users/gregflurry/.pyenv/versions/3.9.5/lib/python3.9/site-packages/pip/vendor/pep517/in_process/in_process.py", line 263, in main
              json_out['return_val'] = hook(hook_input['kwargs'])
              File "/Users/gregflurry/.pyenv/versions/3.9.5/lib/python3.9/site-packages/pip/vendor/pep517/in_process/in_process.py", line 204, in build_wheel
              return build_backend().build_wheel(wheel_directory, config_settings,
              File "/private/var/folders/59/lm552gqn0nvgbmnk5lwyd1gr0000gs/T/pip-build-env-xh4uxl49/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 244, in build_wheel
              return self.
              build_with_temp_dir(['bdist_wheel'], '.whl',
              File "/private/var/folders/59/lm552gqn0nvgbmnk5lwyd1gr0000gs/T/pip-build-env-xh4uxl49/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 229, in build_with_temp_dir
              self.run_setup()
              File "/private/var/folders/59/lm552gqn0nvgbmnk5lwyd1gr0000gs/T/pip-build-env-xh4uxl49/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 281, in run_setup
              super(
              BuildMetaLegacyBackend,
              File "/private/var/folders/59/lm552gqn0nvgbmnk5lwyd1gr0000gs/T/pip-build-env-xh4uxl49/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 174, in run_setup
              exec(compile(code, file, 'exec'), locals())
              File "setup.py", line 183, in <module>
              setup(
              File "/private/var/folders/59/lm552gqn0nvgbmnk5lwyd1gr0000gs/T/pip-build-env-xh4uxl49/overlay/lib/python3.9/site-packages/setuptools/init.py", line 87, in setup
              return distutils.core.setup(
              attrs)
              File "/private/var/folders/59/lm552gqn0nvgbmnk5lwyd1gr0000gs/T/pip-build-env-xh4uxl49/overlay/lib/python3.9/site-packages/setuptools/distutils/core.py", line 177, in setup
              return run_commands(dist)
              File "/private/var/folders/59/lm552gqn0nvgbmnk5lwyd1gr0000gs/T/pip-build-env-xh4uxl49/overlay/lib/python3.9/site-packages/setuptools/
              distutils/core.py", line 193, in run_commands
              dist.run_commands()
              File "/private/var/folders/59/lm552gqn0nvgbmnk5lwyd1gr0000gs/T/pip-build-env-xh4uxl49/overlay/lib/python3.9/site-packages/setuptools/distutils/dist.py", line 968, in run_commands
              self.run_command(cmd)
              File "/private/var/folders/59/lm552gqn0nvgbmnk5lwyd1gr0000gs/T/pip-build-env-xh4uxl49/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 1229, in run_command
              super().run_command(command)
              File "/private/var/folders/59/lm552gqn0nvgbmnk5lwyd1gr0000gs/T/pip-build-env-xh4uxl49/overlay/lib/python3.9/site-packages/setuptools/
              distutils/dist.py", line 987, in run_command
              cmd_obj.run()
              File "/private/var/folders/59/lm552gqn0nvgbmnk5lwyd1gr0000gs/T/pip-build-env-xh4uxl49/overlay/lib/python3.9/site-packages/wheel/bdist_wheel.py", line 299, in run
              self.run_command('build')
              File "/private/var/folders/59/lm552gqn0nvgbmnk5lwyd1gr0000gs/T/pip-build-env-xh4uxl49/overlay/lib/python3.9/site-packages/setuptools/distutils/cmd.py", line 317, in run_command
              self.distribution.run_command(command)
              File "/private/var/folders/59/lm552gqn0nvgbmnk5lwyd1gr0000gs/T/pip-build-env-xh4uxl49/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 1229, in run_command
              super().run_command(command)
              File "/private/var/folders/59/lm552gqn0nvgbmnk5lwyd1gr0000gs/T/pip-build-env-xh4uxl49/overlay/lib/python3.9/site-packages/setuptools/
              distutils/dist.py", line 987, in run_command
              cmd_obj.run()
              File "/private/var/folders/59/lm552gqn0nvgbmnk5lwyd1gr0000gs/T/pip-build-env-xh4uxl49/overlay/lib/python3.9/site-packages/setuptools/command/build.py", line 24, in run
              super().run()
              File "/private/var/folders/59/lm552gqn0nvgbmnk5lwyd1gr0000gs/T/pip-build-env-xh4uxl49/overlay/lib/python3.9/site-packages/setuptools/distutils/command/build.py", line 131, in run
              self.run_command(cmd_name)
              File "/private/var/folders/59/lm552gqn0nvgbmnk5lwyd1gr0000gs/T/pip-build-env-xh4uxl49/overlay/lib/python3.9/site-packages/setuptools/
              distutils/cmd.py", line 317, in run_command
              self.distribution.run_command(command)
              File "/private/var/folders/59/lm552gqn0nvgbmnk5lwyd1gr0000gs/T/pip-build-env-xh4uxl49/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 1229, in run_command
              super().run_command(command)
              File "/private/var/folders/59/lm552gqn0nvgbmnk5lwyd1gr0000gs/T/pip-build-env-xh4uxl49/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 987, in run_command
              cmd_obj.run()
              File "setup.py", line 78, in run
              raise RuntimeError("CMake must be installed to build the following extensions: " +
              RuntimeError: CMake must be installed to build the following extensions: depthai


              ERROR: Failed building wheel for depthai
              Failed to build depthai
              ERROR: Could not build wheels for depthai which use PEP 517 and cannot be installed directly
              WARNING: You are using pip version 21.1.1; however, version 22.1.2 is available.
              You should consider upgrading via the '/Users/gregflurry/.pyenv/versions/3.9.5/bin/python -m pip install --upgrade pip' command.

              I guess I need HELP!

              erik Sorry, I just realized I was supposed to run a different command to install depthai! I ran the command in your post (above), but it too failed with the following:

              Defaulting to user installation because normal site-packages is not writeable
              Looking in indexes: https://pypi.org/simple, https://artifacts.luxonis.com/artifactory/luxonis-python-snapshot-local/
              Collecting depthai==2.16.0.0.dev0+fc472bd13f9c853148e7a35fc956f4bc0dbf49ae
              Downloading https://artifacts.luxonis.com/artifactory/luxonis-python-snapshot-local/depthai/depthai-2.16.0.0.dev0%2Bfc472bd13f9c853148e7a35fc956f4bc0dbf49ae.tar.gz (361 kB)
              |████████████████████████████████| 361 kB 2.0 MB/s
              Installing build dependencies ... done
              Getting requirements to build wheel ... done
              Preparing wheel metadata ... done
              Building wheels for collected packages: depthai
              Building wheel for depthai (PEP 517) ... error
              ERROR: Command errored out with exit status 1:
              command: /Library/Developer/CommandLineTools/usr/bin/python3 /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/pip/vendor/pep517/in_process.py build_wheel /var/folders/59/lm552gqn0nvgbmnk5lwyd1gr0000gs/T/tmpymk5hhz0
              cwd: /private/var/folders/59/lm552gqn0nvgbmnk5lwyd1gr0000gs/T/pip-install-jrfwo431/depthai
              Complete output (60 lines):
              running bdist_wheel
              running build
              running build_ext
              /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/dist.py:458: UserWarning: Normalizing '2.16.0.0.dev+fc472bd13f9c853148e7a35fc956f4bc0dbf49ae' to '2.16.0.0.dev0+fc472bd13f9c853148e7a35fc956f4bc0dbf49ae'
              warnings.warn(tmpl.format(**locals()))
              Traceback (most recent call last):
              File "setup.py", line 81, in run
              out = subprocess.check_output(['cmake', '--version'])
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/subprocess.py", line 415, in check_output
              return run(popenargs, stdout=PIPE, timeout=timeout, check=True,
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/subprocess.py", line 493, in run
              with Popen(
              popenargs, **kwargs) as process:
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/subprocess.py", line 858, in init
              self._execute_child(args, executable, preexec_fn, close_fds,
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/subprocess.py", line 1704, in _execute_child
              raise child_exception_type(errno_num, err_msg, err_filename)
              FileNotFoundError: [Errno 2] No such file or directory: 'cmake'


              During handling of the above exception, another exception occurred:


              Traceback (most recent call last):
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/pip/vendor/pep517/in_process.py", line 280, in <module>
              main()
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/pip/vendor/pep517/in_process.py", line 263, in main
              json_out['return_val'] = hook(hook_input['kwargs'])
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/pip/vendor/pep517/in_process.py", line 204, in build_wheel
              return build_backend().build_wheel(wheel_directory, config_settings,
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/build_meta.py", line 211, in build_wheel
              return self.
              build_with_temp_dir(['bdist_wheel'], '.whl',
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/build_meta.py", line 197, in build_with_temp_dir
              self.run_setup()
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/build_meta.py", line 248, in run_setup
              super(
              BuildMetaLegacyBackend,
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/build_meta.py", line 142, in run_setup
              exec(compile(code, file, 'exec'), locals())
              File "setup.py", line 193, in <module>
              setup(
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/init.py", line 165, in setup
              return distutils.core.setup(
              attrs)
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/distutils/core.py", line 148, in setup
              dist.run_commands()
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/
              distutils/dist.py", line 967, in run_commands
              self.run_command(cmd)
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/distutils/dist.py", line 986, in run_command
              cmd_obj.run()
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 299, in run
              self.run_command('build')
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/
              distutils/cmd.py", line 313, in run_command
              self.distribution.run_command(command)
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/distutils/dist.py", line 986, in run_command
              cmd_obj.run()
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/
              distutils/command/build.py", line 135, in run
              self.run_command(cmd_name)
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/distutils/cmd.py", line 313, in run_command
              self.distribution.run_command(command)
              File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.8/lib/python3.8/site-packages/setuptools/
              distutils/dist.py", line 986, in run_command
              cmd_obj.run()
              File "setup.py", line 83, in run
              raise RuntimeError("CMake must be installed to build the following extensions: " +
              RuntimeError: CMake must be installed to build the following extensions: depthai


              ERROR: Failed building wheel for depthai
              Failed to build depthai
              ERROR: Could not build wheels for depthai which use PEP 517 and cannot be installed directly
              WARNING: You are using pip version 20.2.3; however, version 22.1.2 is available.
              You should consider upgrading via the '/Library/Developer/CommandLineTools/usr/bin/python3 -m pip install --upgrade pip' command.

              I can see one difference between the two different failed commands; the first was run under Python 3.9 (the 3.9.5 I installed to be compatible with my old system) and the second under 3.8 (the default for Monterey). I see one similarity; both can't find cmake. It was supposed to be installed by homebrew? I can't find it in my system using 'where' or 'type'.

              Yep, I need help.

              • erik replied to this.