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

          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.

            erik And more flailing .... I realized that I made yet another mistake; I did not execute the proper command from a new Terminal; sigh. When I opened a new terminal and ran the command with Python 3.9, the command succeeded. In the folder /Users/gregflurry/.pyenv/versions/3.9.5/lib/python3.9/site-packages, the command produced the following:

            drwxr-xr-x 5 gregflurry staff 160 Jun 16 15:21 depthai
            drwxr-xr-x 9 gregflurry staff 288 Jun 16 15:21 depthai-2.16.0.0.dev0+fc472bd13f9c853148e7a35fc956f4bc0dbf49ae.dist-info
            -rwxr-xr-x 1 gregflurry staff 12795200 Jun 16 15:21 depthai.cpython-39-darwin.so
            drwxr-xr-x 3 gregflurry staff 96 Jun 16 15:21 depthai.dylibs

            So, I think the native wheel(s) did get loaded. I'm now off to clone the repository. Then I'll test in a manual virtual environment, and then in PyCharm.

            gregflurry Sorry I should have mentioned that these wheels are (AFAIK) only for Python version 3.9 and 3.10 - so the second time it used 3.9 and wheels got downloaded correctly. Let us know if it works as expected, thanks!
            Erik

            erik Here is the latest:

            (venv) gregflurry@Gregorys-MBP examples % python install_requirements.py
            pip 21.1.1 from /Users/gregflurry/depthai-python/venv/lib/python3.9/site-packages/pip (python 3.9)
            Traceback (most recent call last):
            File "/Users/gregflurry/depthai-python/examples/install_requirements.py", line 88, in <module>
            raise RuntimeError(err_str)
            RuntimeError: There are no prebuilt wheels for M1 processors. Please open the following link for a solution - https://discuss.luxonis.com/d/69-running-depthai-on-apple-m1-based-macs

            I was running in a native Terminal, the same one where I ran the installation of the wheel(s). I seem to be missing something. I am certainly confused!

            @gregflurry instead of calling install_requirements, please try the command below. And just try running python examples/ColorCamera/rgb_preview.py after installing the wheel.

            python -mpip install --extra-index-url https://artifacts.luxonis.com/artifactory/luxonis-python-snapshot-local/ depthai==2.16.0.0.dev0+fc472bd13f9c853148e7a35fc956f4bc0dbf49ae

              erik Progress. Running rgb_preview does not complain about wheels now. However, now I have much more mundane problems; I'm missing the OpenCV and numpy libraries.

              I think I successfully installed numpy the virtual environment. However, I don't know how to install OpenCV. Everything I read suggests I must build it, and, per earlier posts, I don't have cmake. Not sure how to proceed. And let me apologize up front for being such a pain.

              • erik replied to this.

                Hi gregflurry ,
                I think opencv has wheels for M1 as well. Could you try git checkout to latest commit on mac_arm64_wheels branch and calling python examples/install_requirements.py (this will install opencv/depthai M1 wheels) and then python examples/ColorCamera/rgb_preview.py?
                THanks, Erik

                  erik This time, I'll apologize up front. I know very little about git, pip, etc. I've done some searching, including Luxonis documentation, but I cannot determine the proper parameters for the 'git checkout' command.

                  I looked at the install_requirements on my system, and I can see that simply assumes the M1 wheels don't exist. So, I believe that the checkout downloads new code that does not make that assumption. That said, due to my lack of skills, I'm not sure where git will put the new code and what I do with the old code.

                  I've reached a point of guilt about taking up too much of your time on this. After today, it will be more than a week before I can do anything on this (vacation). I wonder if it might be better for me to wait until the entire arm64 native install has been defined, tested, and documented. That way you don't waste valuable time guiding clueless me through the process one step at a time. That said, I'm still willing to continue the "one step at a time" until I have to quit.

                  @gregflurry Could you try the following:

                  1. Open a terminal, navigate to depthai-python folder
                  2. Execute git checkout mac_arm64_wheels
                  3. Execute python examples/install_requirements.py
                  4. Execute python examples/ColorCamera/rgb_preview.py

                    erik Step 2 failed. I started with a new native Terminal. There must be something I'm not doing properly. Here is what I get:

                    gregflurry@Gregorys-MBP ~ % cd depthai-python
                    gregflurry@Gregorys-MBP depthai-python % git checkout mac_arm64_wheels
                    Branch 'mac_arm64_wheels' set up to track remote branch 'mac_arm64_wheels' from 'origin'.
                    Switched to a new branch 'mac_arm64_wheels'
                    gregflurry@Gregorys-MBP depthai-python % python examples/install_requirements.py
                    pip 22.1.2 from /Users/gregflurry/.pyenv/versions/3.9.5/lib/python3.9/site-packages/pip (python 3.9)
                    Traceback (most recent call last):
                    File "/Users/gregflurry/depthai-python/examples/install_requirements.py", line 88, in <module>
                    raise RuntimeError(err_str)
                    RuntimeError: There are no prebuilt wheels for M1 processors. Please open the following link for a solution - https://discuss.luxonis.com/d/69-running-depthai-on-apple-m1-based-macs

                    Step 2 seems to continue to run the old code that simply asserts M1 wheels don't exist.

                    • erik replied to this.

                      gregflurry Sorry about that! We forgot to remove this check (I just fixed it now). Could you manually remove line 86-88 (see selected lines here) in the examples/install_requirements.py file?
                      Thanks, Erik

                        erik More progress, but still fails. Clearly missing cmake; there are likely other problems. Here is the full result:

                        gregflurry@Gregorys-MBP depthai-python % python examples/install_requirements.py
                        pip 22.1.2 from /Users/gregflurry/.pyenv/versions/3.9.5/lib/python3.9/site-packages/pip (python 3.9)
                        Requirement already satisfied: pip in /Users/gregflurry/.pyenv/versions/3.9.5/lib/python3.9/site-packages (22.1.2)
                        Collecting pyyaml
                        Downloading PyYAML-6.0-cp39-cp39-macosx_11_0_arm64.whl (173 kB)
                        ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 174.0/174.0 kB 3.2 MB/s eta 0:00:00
                        Collecting requests
                        Downloading requests-2.28.0-py3-none-any.whl (62 kB)
                        ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 62.8/62.8 kB 2.3 MB/s eta 0:00:00
                        Requirement already satisfied: numpy in /Users/gregflurry/.pyenv/versions/3.9.5/lib/python3.9/site-packages (1.22.4)
                        Collecting opencv-python!=4.5.4.58
                        Downloading opencv_python-4.6.0.66-cp37-abi3-macosx_11_0_arm64.whl (30.0 MB)
                        ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 30.0/30.0 MB 34.5 MB/s eta 0:00:00
                        Collecting certifi>=2017.4.17
                        Downloading certifi-2022.6.15-py3-none-any.whl (160 kB)
                        ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 160.2/160.2 kB 6.0 MB/s eta 0:00:00
                        Collecting idna<4,>=2.5
                        Downloading idna-3.3-py3-none-any.whl (61 kB)
                        ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 61.2/61.2 kB 2.2 MB/s eta 0:00:00
                        Collecting charset-normalizer=2.0.0
                        Downloading charset_normalizer-2.0.12-py3-none-any.whl (39 kB)
                        Collecting urllib3<1.27,>=1.21.1
                        Downloading urllib3-1.26.9-py2.py3-none-any.whl (138 kB)
                        ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 139.0/139.0 kB 5.7 MB/s eta 0:00:00
                        Installing collected packages: urllib3, pyyaml, opencv-python, idna, charset-normalizer, certifi, requests
                        WARNING: The script normalizer is installed in '/Users/gregflurry/.local/bin' which is not on PATH.
                        Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
                        Successfully installed certifi-2022.6.15 charset-normalizer-2.0.12 idna-3.3 opencv-python-4.6.0.66 pyyaml-6.0 requests-2.28.0 urllib3-1.26.9
                        Submodule 'depthai-core' (https://github.com/luxonis/depthai-core.git) registered for path 'depthai-core'
                        Cloning into '/Users/gregflurry/depthai-python/depthai-core'...
                        Submodule 'shared/depthai-bootloader-shared' (https://github.com/luxonis/depthai-bootloader-shared.git) registered for path 'depthai-core/shared/depthai-bootloader-shared'
                        Submodule 'shared/depthai-shared' (https://github.com/luxonis/depthai-shared.git) registered for path 'depthai-core/shared/depthai-shared'
                        Cloning into '/Users/gregflurry/depthai-python/depthai-core/shared/depthai-bootloader-shared'...
                        Cloning into '/Users/gregflurry/depthai-python/depthai-core/shared/depthai-shared'...
                        Looking in indexes: https://pypi.org/simple, https://artifacts.luxonis.com/artifactory/luxonis-python-snapshot-local
                        Collecting depthai==2.16.0.0.dev+cad9184c4b7d86487d1978397d83a0a6b92cd7e4
                        Downloading https://artifacts.luxonis.com/artifactory/luxonis-python-snapshot-local/depthai/depthai-2.16.0.0.dev0%2Bcad9184c4b7d86487d1978397d83a0a6b92cd7e4.tar.gz (361 kB)
                        ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 361.5/361.5 kB 4.5 MB/s eta 0:00:00
                        Installing build dependencies ... done
                        Getting requirements to build wheel ... done
                        Preparing metadata (pyproject.toml) ... done
                        Building wheels for collected packages: depthai
                        Building wheel for depthai (pyproject.toml) ... error
                        error: subprocess-exited-with-error


                        × Building wheel for depthai (pyproject.toml) did not run successfully.
                        │ exit code: 1
                        ╰─> [70 lines of output]
                        /private/var/folders/59/lm552gqn0nvgbmnk5lwyd1gr0000gs/T/pip-build-env-gdr1uix/overlay/lib/python3.9/site-packages/setuptools/dist.py:531: UserWarning: Normalizing '2.16.0.0.dev+cad9184c4b7d86487d1978397d83a0a6b92cd7e4' to '2.16.0.0.dev0+cad9184c4b7d86487d1978397d83a0a6b92cd7e4'
                        warnings.warn(tmpl.format(**locals()))
                        running bdist_wheel
                        running build
                        running build_ext
                        Traceback (most recent call last):
                        File "setup.py", line 81, 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 363, 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 345, 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 261, in build_wheel
                              return _build_backend().build_wheel(wheel_directory, config_settings,
                            File "/private/var/folders/59/lm552gqn0nvgbmnk5lwyd1gr0000gs/T/pip-build-env-_gdr1uix/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-_gdr1uix/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-_gdr1uix/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-_gdr1uix/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 193, in <module>
                              setup(
                            File "/private/var/folders/59/lm552gqn0nvgbmnk5lwyd1gr0000gs/T/pip-build-env-_gdr1uix/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-_gdr1uix/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-_gdr1uix/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-_gdr1uix/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-_gdr1uix/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-_gdr1uix/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-_gdr1uix/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-_gdr1uix/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-_gdr1uix/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-_gdr1uix/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-_gdr1uix/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-_gdr1uix/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-_gdr1uix/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-_gdr1uix/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-_gdr1uix/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 987, 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
                          [end of output]

                        note: This error originates from a subprocess, and is likely not a problem with pip.
                        ERROR: Failed building wheel for depthai
                        Failed to build depthai
                        ERROR: Could not build wheels for depthai, which is required to install pyproject.toml-based projects
                        Processing /Users/gregflurry/depthai-python
                        Installing build dependencies ... done
                        Getting requirements to build wheel ... done
                        Preparing metadata (pyproject.toml) ... done
                        Building wheels for collected packages: depthai
                        Building wheel for depthai (pyproject.toml) ... error
                        error: subprocess-exited-with-error


                        × Building wheel for depthai (pyproject.toml) did not run successfully.
                        │ exit code: 1
                        ╰─> [70 lines of output]
                        /private/var/folders/59/lm552gqn0nvgbmnk5lwyd1gr0000gs/T/pip-build-env-6qptcznw/overlay/lib/python3.9/site-packages/setuptools/dist.py:531: UserWarning: Normalizing '2.16.0.0.dev+cad9184c4b7d86487d1978397d83a0a6b92cd7e4' to '2.16.0.0.dev0+cad9184c4b7d86487d1978397d83a0a6b92cd7e4'
                        warnings.warn(tmpl.format(**locals()))
                        running bdist_wheel
                        running build
                        running build_ext
                        Traceback (most recent call last):
                        File "setup.py", line 81, 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 363, 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 345, 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 261, in build_wheel
                              return _build_backend().build_wheel(wheel_directory, config_settings,
                            File "/private/var/folders/59/lm552gqn0nvgbmnk5lwyd1gr0000gs/T/pip-build-env-6qptcznw/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-6qptcznw/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-6qptcznw/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-6qptcznw/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 193, in <module>
                              setup(
                            File "/private/var/folders/59/lm552gqn0nvgbmnk5lwyd1gr0000gs/T/pip-build-env-6qptcznw/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-6qptcznw/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-6qptcznw/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-6qptcznw/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-6qptcznw/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-6qptcznw/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-6qptcznw/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-6qptcznw/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-6qptcznw/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-6qptcznw/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-6qptcznw/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-6qptcznw/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-6qptcznw/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-6qptcznw/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-6qptcznw/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 987, 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
                          [end of output]

                        note: This error originates from a subprocess, and is likely not a problem with pip.
                        ERROR: Failed building wheel for depthai
                        Failed to build depthai
                        ERROR: Could not build wheels for depthai, which is required to install pyproject.toml-based projects
                        Couldn't install dependencies as wheels and trying to compile from sources failed
                        Check https://github.com/luxonis/depthai-python#dependencies on retrieving dependencies for compiling from sources
                        ################|| Downloading calibration-sample ||################

                        ========== Downloading /Users/gregflurry/depthai-python/examples/models/depthai_calib.json
                        ... 100%, 7 KB, 25356 KB/s, 0 seconds passed

                        ========== Downloading /Users/gregflurry/depthai-python/examples/models/depthai_v5.calib
                        ... 100%, 0 KB, 933 KB/s, 0 seconds passed

                        ========== Downloading /Users/gregflurry/depthai-python/examples/models/BW1098OBC.json
                        ... 100%, 0 KB, 871 KB/s, 0 seconds passed

                        ################|| Downloading concat-model ||################

                        ========== Downloading /Users/gregflurry/depthai-python/examples/models/concat_openvino_2021.4_6shave.blob
                        ... 100%, 1 KB, 4786 KB/s, 0 seconds passed

                        ################|| Downloading mobilenet-ssd ||################

                        ========== Downloading /Users/gregflurry/depthai-python/examples/models/mobilenet-ssd_openvino_2021.4_6shave.blob
                        ... 100%, 14159 KB, 26569 KB/s, 0 seconds passed

                        ========== Downloading /Users/gregflurry/depthai-python/examples/models/mobilenet-ssd_openvino_2021.4_5shave.blob
                        ... 100%, 14177 KB, 38385 KB/s, 0 seconds passed

                        ========== Downloading /Users/gregflurry/depthai-python/examples/models/mobilenet-ssd_openvino_2021.4_8shave.blob
                        ... 100%, 14154 KB, 45080 KB/s, 0 seconds passed

                        ################|| Downloading normalization-model ||################

                        ========== Downloading /Users/gregflurry/depthai-python/examples/models/normalize_openvino_2021.4_4shave.blob
                        ... 100%, 1 KB, 4282 KB/s, 0 seconds passed

                        ################|| Downloading person-detection-retail-0013 ||################

                        ========== Downloading /Users/gregflurry/depthai-python/examples/models/person-detection-retail-0013_openvino_2021.4_7shave.blob
                        ... 100%, 2199 KB, 33858 KB/s, 0 seconds passed

                        ################|| Downloading stereo-dataset ||################

                        ========== Downloading /Users/gregflurry/depthai-python/examples/models/dataset.zip
                        ... 100%, 2306 KB, 15851 KB/s, 0 seconds passed

                        ========== Unpacking /Users/gregflurry/depthai-python/examples/models/dataset.zip

                        ################|| Downloading tiny-yolo ||################

                        ========== Downloading /Users/gregflurry/depthai-python/examples/models/yolo-v3-tiny-tf_openvino_2021.4_6shave.blob
                        ... 100%, 17334 KB, 14119 KB/s, 1 seconds passed

                        ========== Downloading /Users/gregflurry/depthai-python/examples/models/yolo-v4-tiny-tf_openvino_2021.4_6shave.blob
                        ... 100%, 11882 KB, 41187 KB/s, 0 seconds passed

                        ################|| Downloading video-resources ||################

                        ========== Downloading /Users/gregflurry/depthai-python/examples/models/construction_vest.mp4
                        ... 100%, 5296 KB, 17845 KB/s, 0 seconds passed