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