jakaskerl
I did fix the --help following the above steps. These steps did not fix the calibrate.py to run a calibration. So, I am starting over and only installing the required prerequisites found below. I expecting these prerequisites to install everything I need to run calibrate.py. Can you Help?
Prerequisites to run calibrate.py:
https://docs.luxonis.com/hardware/platform/depth/calibration/#Depth%20Calibration-Prerequisites
git clone https://github.com/luxonis/depthai.git
cd depthai
git submodule update --init --recursive
python3 install_requirements.py
Below shows exactly what I did. This shows the errors from the prerequisites install and errors running calibrate.py
(venv) C:\python\CamCal>python --version
Python 3.13.1
(venv) C:\python\CamCal>pip --version
pip 25.0 from C:\python\CamCal\venv\Lib\site-packages\pip (python 3.13)
(venv) C:\python\CamCal>git clone https://github.com/luxonis/depthai.git
Cloning into 'depthai'...
remote: Enumerating objects: 21982, done.
remote: Counting objects: 100% (68/68), done.
remote: Compressing objects: 100% (63/63), done.
remote: Total 21982 (delta 25), reused 19 (delta 5), pack-reused 21914 (from 3)
Receiving objects: 100% (21982/21982), 248.53 MiB | 14.01 MiB/s, done.
Resolving deltas: 100% (14533/14533), done.
Updating files: 100% (501/501), done.
(venv) C:\python\CamCal>cd depthai
(venv) C:\python\CamCal\depthai>git submodule update --init --recursive
Submodule 'depthai_calibration' (https://github.com/luxonis/depthai-calibration) registered for path 'depthai_calibration'
Submodule 'resources/depthai_boards' (https://github.com/luxonis/depthai-boards) registered for path 'resources/depthai_boards'
Cloning into 'C:/python/CamCal/depthai/depthai_calibration'...
Cloning into 'C:/python/CamCal/depthai/resources/depthai_boards'...
Submodule path 'depthai_calibration': checked out '524952bc0de2f1b9d9bb19327f6fdfa1ace7a8a2'
Submodule path 'resources/depthai_boards': checked out 'cce87acb84dcc77cc2ef4ba504adbad77a236b6d'
(venv) C:\python\CamCal\depthai>python install_requirements.py
pip 25.0 from C:\python\CamCal\venv\Lib\site-packages\pip (python 3.13)
Requirement already satisfied: pip in c:\python\camcal\venv\lib\site-packages (25.0)
WARNING: Skipping opencv-python as it is not installed.
WARNING: Skipping opencv-contrib-python as it is not installed.
WARNING: Skipping depthai as it is not installed.
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple, https://artifacts.luxonis.com/artifactory/luxonis-depthai-data-local/wheels/, https://artifacts.luxonis.com/artifactory/luxonis-python-snapshot-local/
Collecting requests==2.26.0 (from -r requirements.txt (line 1))
Using cached https://www.piwheels.org/simple/requests/requests-2.26.0-py2.py3-none-any.whl (62 kB)
Collecting numpy<2.0.0,>=1.21.4 (from -r requirements.txt (line 3))
Using cached numpy-1.26.4.tar.gz (15.8 MB)
Installing build dependencies ... done
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing metadata (pyproject.toml) ... error
error: subprocess-exited-with-error
× Preparing metadata (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [21 lines of output]
+ C:\python\CamCal\venv\Scripts\python.exe C:\Users\shawn\AppData\Local\Temp\pip-install-wqmx4q7u\numpy_e8e8e712b64e4d4680459048c98327b5\vendored-meson\meson\meson.py setup C:\Users\shawn\AppData\Local\Temp\pip-install-wqmx4q7u\numpy_e8e8e712b64e4d4680459048c98327b5 C:\Users\shawn\AppData\Local\Temp\pip-install-wqmx4q7u\numpy_e8e8e712b64e4d4680459048c98327b5\.mesonpy-3x_bmisp -Dbuildtype=release -Db_ndebug=if-release -Db_vscrt=md --native-file=C:\Users\shawn\AppData\Local\Temp\pip-install-wqmx4q7u\numpy_e8e8e712b64e4d4680459048c98327b5\.mesonpy-3x_bmisp\meson-python-native-file.ini
The Meson build system
Version: 1.2.99
Source dir: C:\Users\shawn\AppData\Local\Temp\pip-install-wqmx4q7u\numpy_e8e8e712b64e4d4680459048c98327b5
Build dir: C:\Users\shawn\AppData\Local\Temp\pip-install-wqmx4q7u\numpy_e8e8e712b64e4d4680459048c98327b5\.mesonpy-3x_bmisp
Build type: native build
Project name: NumPy
Project version: 1.26.4
WARNING: Failed to activate VS environment: Could not find C:\Program Files (x86)\Microsoft Visual Studio\Installer\vswhere.exe
..\meson.build:1:0: ERROR: Unknown compiler(s): [['icl'], ['cl'], ['cc'], ['gcc'], ['clang'], ['clang-cl'], ['pgcc']]
The following exception(s) were encountered:
Running `icl ""` gave "[WinError 2] The system cannot find the file specified"
Running `cl /?` gave "[WinError 2] The system cannot find the file specified"
Running `cc --version` gave "[WinError 2] The system cannot find the file specified"
Running `gcc --version` gave "[WinError 2] The system cannot find the file specified"
Running `clang --version` gave "[WinError 2] The system cannot find the file specified"
Running `clang-cl /?` gave "[WinError 2] The system cannot find the file specified"
Running `pgcc --version` gave "[WinError 2] The system cannot find the file specified"
A full log can be found at C:\Users\shawn\AppData\Local\Temp\pip-install-wqmx4q7u\numpy_e8e8e712b64e4d4680459048c98327b5\.mesonpy-3x_bmisp\meson-logs\meson-log.txt
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed
× Encountered error while generating package metadata.
╰─> See above for output.
note: This is an issue with the package mentioned above, not pip.
hint: See above for details.
Traceback (most recent call last):
File "C:\python\CamCal\depthai\install_requirements.py", line 44, in <module>
subprocess.check_call(pip_package_install + ["-r", "requirements.txt"], cwd=script_directory)
~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\shawn\AppData\Local\Programs\Python\Python313\Lib\subprocess.py", line 419, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['C:\\python\\CamCal\\venv\\Scripts\\python.exe', '-m', 'pip', 'install', '-U', '--prefer-binary', '-r', 'requirements.txt']' returned non-zero exit status 1.
(venv) C:\python\CamCal\depthai>python install_requirements.py
(venv) C:\python\CamCal\depthai>python calibrate.py --help
Traceback (most recent call last):
File "C:\python\CamCal\depthai\calibrate.py", line 12, in <module>
from scipy.spatial.transform import Rotation
ModuleNotFoundError: No module named 'scipy'
(venv) C:\python\CamCal\depthai>python calibrate.py -db -s 4.1256 -ms 3.0942 -nx 40 -ny 22 -brd OAK-FFC-3P-CAM_C-OV9282
Traceback (most recent call last):
File "C:\python\CamCal\depthai\calibrate.py", line 12, in <module>
from scipy.spatial.transform import Rotation
ModuleNotFoundError: No module named 'scipy'
(venv) C:\python\CamCal\depthai>