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!