Hi, I am trying to get DepthAI running on Windows 10
As far as I can tell, I have successfully cloned the latest depthAI repo, and I am on the step where I go to the examples folder and run python install_requirements.py.
I am getting what seems to be certificates errors, I'll put some code snippet below.
Any help would be greatly appreciated!
$ python install_requirements.py
C:\Users\j\repos\DepthAI_repo\depthai-python\examples\install_requirements.py:20: SyntaxWarning: invalid escape sequence '\s'
return (len(string) != len(re.sub('[\s+]', '', string)))
pip 24.2 from C:\Users\j\repos\DepthAI_repo\.venv\Lib\site-packages\pip (python 3.12)
Requirement already satisfied: pip in c:\users\j\repos\depthai_repo\.venv\lib\site-packages (24.2)
Collecting pyyaml
Using cached PyYAML-6.0.2-cp312-cp312-win_amd64.whl.metadata (2.1 kB)
Collecting requests
Using cached requests-2.32.3-py3-none-any.whl.metadata (4.6 kB)
Collecting numpy<3.0
Using cached numpy-2.1.0-cp312-cp312-win_amd64.whl.metadata (59 kB)
Collecting opencv-python<5.0
Using cached opencv_python-4.10.0.84-cp37-abi3-win_amd64.whl.metadata (20 kB)
Collecting charset-normalizer<4,>=2 (from requests)
Using cached charset_normalizer-3.3.2-cp312-cp312-win_amd64.whl.metadata (34 kB)
Collecting idna<4,>=2.5 (from requests)
Using cached idna-3.8-py3-none-any.whl.metadata (9.9 kB)
Collecting urllib3<3,>=1.21.1 (from requests)
Using cached urllib3-2.2.2-py3-none-any.whl.metadata (6.4 kB)
Collecting certifi>=2017.4.17 (from requests)
Using cached certifi-2024.7.4-py3-none-any.whl.metadata (2.2 kB)
Using cached PyYAML-6.0.2-cp312-cp312-win_amd64.whl (156 kB)
Using cached requests-2.32.3-py3-none-any.whl (64 kB)
Using cached numpy-2.1.0-cp312-cp312-win_amd64.whl (12.6 MB)
Using cached opencv_python-4.10.0.84-cp37-abi3-win_amd64.whl (38.8 MB)
Using cached certifi-2024.7.4-py3-none-any.whl (162 kB)
Using cached charset_normalizer-3.3.2-cp312-cp312-win_amd64.whl (100 kB)
Using cached idna-3.8-py3-none-any.whl (66 kB)
Using cached urllib3-2.2.2-py3-none-any.whl (121 kB)
Installing collected packages: urllib3, pyyaml, numpy, idna, charset-normalizer, certifi, requests, opencv-python
Successfully installed certifi-2024.7.4 charset-normalizer-3.3.2 idna-3.8 numpy-2.1.0 opencv-python-4.10.0.84 pyyaml-6.0.2 requests-2.32.3 urllib3-2.2.2
Collecting depthai
Using cached depthai-2.28.0.0-cp312-cp312-win_amd64.whl.metadata (8.9 kB)
Using cached depthai-2.28.0.0-cp312-cp312-win_amd64.whl (11.1 MB)
Installing collected packages: depthai
Successfully installed depthai-2.28.0.0
################ Downloading calibration-sample ################
========== Downloading C:\Users\j\repos\DepthAI_repo\depthai-python\examples\models\depthai_calib.json
Traceback (most recent call last):
File "C:\Users\j\repos\DepthAI_repo\.venv\Lib\site-packages\urllib3\connectionpool.py", line 466, in _make_request
self._validate_conn(conn)
File "C:\Users\j\repos\DepthAI_repo\.venv\Lib\site-packages\urllib3\connectionpool.py", line 1095, in _validate_conn
conn.connect()
File "C:\Users\j\repos\DepthAI_repo\.venv\Lib\site-packages\urllib3\connection.py", line 652, in connect
sock_and_verified = _ssl_wrap_socket_and_match_hostname(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\j\repos\DepthAI_repo\.venv\Lib\site-packages\urllib3\connection.py", line 805, in _ssl_wrap_socket_and_match_hostname
ssl_sock = ssl_wrap_socket(
^^^^^^^^^^^^^^^^
File "C:\Users\j\repos\DepthAI_repo\.venv\Lib\site-packages\urllib3\util\ssl_.py", line 465, in ssl_wrap_socket
ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_in_tls, server_hostname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\j\repos\DepthAI_repo\.venv\Lib\site-packages\urllib3\util\ssl_.py", line 509, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python312\Lib\ssl.py", line 455, in wrap_socket
return self.sslsocket_class._create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python312\Lib\ssl.py", line 1042, in _create
self.do_handshake()
File "C:\Python312\Lib\ssl.py", line 1320, in do_handshake
self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\j\repos\DepthAI_repo\.venv\Lib\site-packages\urllib3\connectionpool.py", line 789, in urlopen
response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "C:\Users\j\repos\DepthAI_repo\.venv\Lib\site-packages\urllib3\connectionpool.py", line 490, in _make_request
raise new_e
urllib3.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\j\repos\DepthAI_repo\.venv\Lib\site-packages\requests\adapters.py", line 667, in send
resp = conn.urlopen(
^^^^^^^^^^^^^
File "C:\Users\j\repos\DepthAI_repo\.venv\Lib\site-packages\urllib3\connectionpool.py", line 843, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File "C:\Users\j\repos\DepthAI_repo\.venv\Lib\site-packages\urllib3\util\retry.py", line 519, in increment
raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='artifacts.luxonis.com', port=443): Max retries exceeded with url: /artifactory/luxonis-depthai-data-local/misc/depthai_calib.json (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)')))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\j\repos\DepthAI_repo\depthai-python\examples/downloader/downloader.py", line 82, in try_download
chunk_iterable, continue_offset = start_download(offset=progress.size)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\j\repos\DepthAI_repo\depthai-python\examples\downloader\common.py", line 355, in start_download
response = session.get(self.url, stream=True, timeout=DOWNLOAD_TIMEOUT,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\j\repos\DepthAI_repo\.venv\Lib\site-packages\requests\sessions.py", line 602, in get
return self.request("GET", url, \*\*kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\j\repos\DepthAI_repo\.venv\Lib\site-packages\requests\sessions.py", line 589, in request
resp = self.send(prep, \*\*send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\j\repos\DepthAI_repo\.venv\Lib\site-packages\requests\sessions.py", line 703, in send
r = adapter.send(request, \*\*kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\j\repos\DepthAI_repo\.venv\Lib\site-packages\requests\adapters.py", line 698, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='artifacts.luxonis.com', port=443): Max retries exceeded with url: /artifactory/luxonis-depthai-data-local/misc/depthai_calib.json (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1000)')))
########## Error: Download failed
Will retry in 10 seconds...
Traceback (most recent call last):
File "C:\Users\j\repos\DepthAI_repo\depthai-python\examples/downloader/downloader.py", line 385, in <module>
main()
File "C:\Users\j\repos\DepthAI_repo\depthai-python\examples/downloader/downloader.py", line 368, in main
results = [download_model(reporter, args, cache, session_factory, requested_precisions, model)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\j\repos\DepthAI_repo\depthai-python\examples/downloader/downloader.py", line 257, in download_model
if not try_retrieve(model_file_reporter, destination, model_file, cache, args.num_attempts,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\j\repos\DepthAI_repo\depthai-python\examples/downloader/downloader.py", line 227, in try_retrieve
actual_hash = try_download(reporter, f, num_attempts, start_download, model_file.size)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\j\repos\DepthAI_repo\depthai-python\examples/downloader/downloader.py", line 78, in try_download
time.sleep(retry_delay)
KeyboardInterrupt
Traceback (most recent call last):
File "C:\Users\j\repos\DepthAI_repo\depthai-python\examples\install_requirements.py", line 192, in <module>
subprocess.check_call(downloader_cmd)
File "C:\Python312\Lib\subprocess.py", line 408, in check_call
retcode = call(\*popenargs, \*\*kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python312\Lib\subprocess.py", line 391, in call
return p.wait(timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python312\Lib\subprocess.py", line 1264, in wait
return self._wait(timeout=timeout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Python312\Lib\subprocess.py", line 1590, in _wait
result = _winapi.WaitForSingleObject(self._handle,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^