I have recently purchased an OAK-D camera from Luxonis to aid in a research project that I am currently working on. The camera is plugged into my ThinkPad which is a Windows 11 operating system. The code below shows the versions of the installed packages. While going through the examples through GitHub to determine which camera setting will work best for the project, I kept encountering the error below. Does anyone know how to resolve this issue? I have gone through the necessary steps to try and understand the error, but even after trying to manually place the desired files I was still unable to get the codes to function properly. This error is also occurring in addition camera setting experiments I have been trying to experiment with. Please let me know if any additional information is necessary.
C:\Users\sale4088\AppData\Local\Programs\DepthAI\venv\Scripts\gen2-foxglove>pip install -r requrements.txt
Defaulting to user installation because normal site-packages is not writeable
Ignoring open3d: markers 'platform_machine != "armv7l" and python_version < "3.9"' don't match your environment
Requirement already satisfied: opencv-python in c:\users\sale4088\appdata\local\packages\pythonsoftwarefoundation.python.3.12_qbz5n2kfra8p0\localcache\local-packages\python312\site-packages (from -r requrements.txt (line 1)) (4.9.0.80)
Collecting depthai==2.15.0.0 (from -r requrements.txt (line 2))
Using cached depthai-2.15.0.0.tar.gz (338 kB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Collecting foxglove-websocket (from -r requrements.txt (line 3))
Using cached foxglove_websocket-0.1.2-py3-none-any.whl.metadata (4.1 kB)
Requirement already satisfied: numpy in c:\users\sale4088\appdata\local\packages\pythonsoftwarefoundation.python.3.12_qbz5n2kfra8p0\localcache\local-packages\python312\site-packages (from -r requrements.txt (line 4)) (1.26.4)
Collecting websockets (from foxglove-websocket->-r requrements.txt (line 3))
Using cached websockets-12.0-cp312-cp312-win_amd64.whl.metadata (6.8 kB)
Using cached foxglove_websocket-0.1.2-py3-none-any.whl (13 kB)
Using cached websockets-12.0-cp312-cp312-win_amd64.whl (124 kB)
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
╰─> [71 lines of output]
running bdist_wheel
running build
running build_ext
Traceback (most recent call last):
File "<string>", line 75, in run
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.752.0_x64__qbz5n2kfra8p0\Lib\subprocess.py", line 466, in check_output
return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.752.0_x64__qbz5n2kfra8p0\Lib\subprocess.py", line 548, in run
with Popen(*popenargs, **kwargs) as process:
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.752.0_x64__qbz5n2kfra8p0\Lib\subprocess.py", line 1026, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.752.0_x64__qbz5n2kfra8p0\Lib\subprocess.py", line 1538, in _execute_child
hp, ht, pid, tid = _winapi.CreateProcess(executable, args,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [WinError 2] The system cannot find the file specified
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.752.0_x64__qbz5n2kfra8p0\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 353, in <module>
main()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.752.0_x64__qbz5n2kfra8p0\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 335, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.752.0_x64__qbz5n2kfra8p0\Lib\site-packages\pip\_vendor\pyproject_hooks\_in_process\_in_process.py", line 251, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\sale4088\AppData\Local\Temp\pip-build-env-tsq1m1a3\overlay\Lib\site-packages\setuptools\build_meta.py", line 410, in build_wheel
return self._build_with_temp_dir(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\sale4088\AppData\Local\Temp\pip-build-env-tsq1m1a3\overlay\Lib\site-packages\setuptools\build_meta.py", line 395, in _build_with_temp_dir
self.run_setup()
File "C:\Users\sale4088\AppData\Local\Temp\pip-build-env-tsq1m1a3\overlay\Lib\site-packages\setuptools\build_meta.py", line 487, in run_setup
super().run_setup(setup_script=setup_script)
File "C:\Users\sale4088\AppData\Local\Temp\pip-build-env-tsq1m1a3\overlay\Lib\site-packages\setuptools\build_meta.py", line 311, in run_setup
exec(code, locals())
File "<string>", line 176, in <module>
File "C:\Users\sale4088\AppData\Local\Temp\pip-build-env-tsq1m1a3\overlay\Lib\site-packages\setuptools\init.py", line 103, in setup
return distutils.core.setup(**attrs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\sale4088\AppData\Local\Temp\pip-build-env-tsq1m1a3\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 185, in setup
return run_commands(dist)
^^^^^^^^^^^^^^^^^^
File "C:\Users\sale4088\AppData\Local\Temp\pip-build-env-tsq1m1a3\overlay\Lib\site-packages\setuptools\_distutils\core.py", line 201, in run_commands
dist.run_commands()
File "C:\Users\sale4088\AppData\Local\Temp\pip-build-env-tsq1m1a3\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 969, in run_commands
self.run_command(cmd)
File "C:\Users\sale4088\AppData\Local\Temp\pip-build-env-tsq1m1a3\overlay\Lib\site-packages\setuptools\dist.py", line 963, in run_command
super().run_command(command)
File "C:\Users\sale4088\AppData\Local\Temp\pip-build-env-tsq1m1a3\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "C:\Users\sale4088\AppData\Local\Temp\pip-build-env-tsq1m1a3\overlay\Lib\site-packages\wheel\bdist_wheel.py", line 368, in run
self.run_command("build")
File "C:\Users\sale4088\AppData\Local\Temp\pip-build-env-tsq1m1a3\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "C:\Users\sale4088\AppData\Local\Temp\pip-build-env-tsq1m1a3\overlay\Lib\site-packages\setuptools\dist.py", line 963, in run_command
super().run_command(command)
File "C:\Users\sale4088\AppData\Local\Temp\pip-build-env-tsq1m1a3\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "C:\Users\sale4088\AppData\Local\Temp\pip-build-env-tsq1m1a3\overlay\Lib\site-packages\setuptools\_distutils\command\build.py", line 131, in run
self.run_command(cmd_name)
File "C:\Users\sale4088\AppData\Local\Temp\pip-build-env-tsq1m1a3\overlay\Lib\site-packages\setuptools\_distutils\cmd.py", line 318, in run_command
self.distribution.run_command(command)
File "C:\Users\sale4088\AppData\Local\Temp\pip-build-env-tsq1m1a3\overlay\Lib\site-packages\setuptools\dist.py", line 963, in run_command
super().run_command(command)
File "C:\Users\sale4088\AppData\Local\Temp\pip-build-env-tsq1m1a3\overlay\Lib\site-packages\setuptools\_distutils\dist.py", line 988, in run_command
cmd_obj.run()
File "<string>", line 77, in run
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