I am trying to use the depthai viewer with oak-d sr camera, it installs the approiopate the modules. But it throws a list of errors once creating the virtual environment. See the attached errors below:
Successfully installed deprecated-1.2.14 depthai-2.26.0.0 numpy-1.26.4 pyarrow-16.0.0 pydantic-1.9.0 typing-extensions-4.12.2 websockets-12.0 wrapt-1.16.0
Creating virtual environment...
stderr
urllib3.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\deg6fni\AppData\Local\anaconda3\envs\depth_ai\Lib\site-packages\depthai_viewer\venv-0.2.4\Lib\site-packages\requests\adapters.py", line 667, in send
resp = conn.urlopen(
^^^^^^^^^^^^^
File "C:\Users\deg6fni\AppData\Local\anaconda3\envs\depth_ai\Lib\site-packages\depthai_viewer\venv-0.2.4\Lib\site-packages\urllib3\connectionpool.py", line 843, in urlopen
retries = retries.increment(
^^^^^^^^^^^^^^^^^^
File "C:\Users\deg6fni\AppData\Local\anaconda3\envs\depth_ai\Lib\site-packages\depthai_viewer\venv-0.2.4\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='blobconverter.s3.amazonaws.com', port=443): Max retries exceeded with url: /7c076c5be9bb2ceebac46bd7f0b4ad0904b9bc1e11483f94ed9efe16d0d8413d.blob (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)')))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\deg6fni\AppData\Local\anaconda3\envs\depth_ai\Lib\site-packages\depthai_viewer\venv-0.2.4\Lib\site-packages\blobconverter\init.py", line 325, in from_zoo
return compile_blob(name, req_data=body, \*\*kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\deg6fni\AppData\Local\anaconda3\envs\depth_ai\Lib\site-packages\depthai_viewer\venv-0.2.4\Lib\site-packages\blobconverter\init.py", line 287, in compile_blob
__download_from_s3_bucket("{}.blob".format(req_hash), blob_path)
File "C:\Users\deg6fni\AppData\Local\anaconda3\envs\depth_ai\Lib\site-packages\depthai_viewer\venv-0.2.4\Lib\site-packages\blobconverter\init.py", line 187, in __download_from_s3_bucket
__download_file_from_url(url, str(fpath))
File "C:\Users\deg6fni\AppData\Local\anaconda3\envs\depth_ai\Lib\site-packages\depthai_viewer\venv-0.2.4\Lib\site-packages\blobconverter\init.py", line 176, in __download_file_from_url
response = requests.get(file_url)
^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\deg6fni\AppData\Local\anaconda3\envs\depth_ai\Lib\site-packages\depthai_viewer\venv-0.2.4\Lib\site-packages\requests\api.py", line 73, in get
return request("get", url, params=params, \*\*kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\deg6fni\AppData\Local\anaconda3\envs\depth_ai\Lib\site-packages\depthai_viewer\venv-0.2.4\Lib\site-packages\requests\api.py", line 59, in request
return session.request(method=method, url=url, \*\*kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\deg6fni\AppData\Local\anaconda3\envs\depth_ai\Lib\site-packages\depthai_viewer\venv-0.2.4\Lib\site-packages\requests\sessions.py", line 589, in request
resp = self.send(prep, \*\*send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\deg6fni\AppData\Local\anaconda3\envs\depth_ai\Lib\site-packages\depthai_viewer\venv-0.2.4\Lib\site-packages\requests\sessions.py", line 703, in send
r = adapter.send(request, \*\*kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\deg6fni\AppData\Local\anaconda3\envs\depth_ai\Lib\site-packages\depthai_viewer\venv-0.2.4\Lib\site-packages\requests\adapters.py", line 698, in send
raise SSLError(e, request=request)
requests.exceptions.SSLError: HTTPSConnectionPool(host='blobconverter.s3.amazonaws.com', port=443): Max retries exceeded with url: /7c076c5be9bb2ceebac46bd7f0b4ad0904b9bc1e11483f94ed9efe16d0d8413d.blob (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)')))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "C:\Users\deg6fni\AppData\Local\anaconda3\envs\depth_ai\Lib\site-packages\depthai_viewer\install_requirements.py", line 60, in download_blobs
blobconverter.from_zoo(
File "C:\Users\deg6fni\AppData\Local\anaconda3\envs\depth_ai\Lib\site-packages\depthai_viewer\venv-0.2.4\Lib\site-packages\blobconverter\init.py", line 338, in from_zoo
response.raise_for_status()
File "C:\Users\deg6fni\AppData\Local\anaconda3\envs\depth_ai\Lib\site-packages\depthai_viewer\venv-0.2.4\Lib\site-packages\requests\models.py", line 1024, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: 404 for url: https://artifacts.luxonis.com/artifactory/blobconverter-backup/blobs/yolov8n_coco_640x352_openvino_2022.1_6shave.blob
stdout
Downloading C:\Users\deg6fni\.cache\blobconverter\yolov8n_coco_640x352_openvino_2022.1_6shave.blob...
Conversion failed due to HTTPSConnectionPool(host='blobconverter.s3.amazonaws.com', port=443): Max retries exceeded with url: /7c076c5be9bb2ceebac46bd7f0b4ad0904b9bc1e11483f94ed9efe16d0d8413d.blob (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)')))
Trying to find backup... (model="yolov8n_coco_640x352", shaves="6", version="2022.1")
Unable to fetch model from backup server due to: 404 Client Error: 404 for url: https://artifacts.luxonis.com/artifactory/blobconverter-backup/blobs/yolov8n_coco_640x352_openvino_2022.1_6shave.blob
output
Downloading C:\Users\deg6fni\.cache\blobconverter\yolov8n_coco_640x352_openvino_2022.1_6shave.blob...
Conversion failed due to HTTPSConnectionPool(host='blobconverter.s3.amazonaws.com', port=443): Max retries exceeded with url: /7c076c5be9bb2ceebac46bd7f0b4ad0904b9bc1e11483f94ed9efe16d0d8413d.blob (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1006)')))
Trying to find backup... (model="yolov8n_coco_640x352", shaves="6", version="2022.1")
Unable to fetch model from backup server due to: 404 Client Error: 404 for url: https://artifacts.luxonis.com/artifactory/blobconverter-backup/blobs/yolov8n_coco_640x352_openvino_2022.1_6shave.blob
Error occurred during dependency installation: Command '['C:\\Users\\deg6fni\\AppData\\Local\\anaconda3\\envs\\depth_ai\\python.exe', '-c', 'from depthai_viewer.install_requirements import download_blobs; download_blobs()']' returned non-zero exit status 1.
Traceback (most recent call last):
File "C:\Users\deg6fni\AppData\Local\anaconda3\envs\depth_ai\Lib\site-packages\depthai_viewer\install_requirements.py", line 139, in create_venv_and_install_dependencies
raise e
File "C:\Users\deg6fni\AppData\Local\anaconda3\envs\depth_ai\Lib\site-packages\depthai_viewer\install_requirements.py", line 121, in create_venv_and_install_dependencies
subprocess.run(
File "C:\Users\deg6fni\AppData\Local\anaconda3\envs\depth_ai\Lib\subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['C:\\Users\\deg6fni\\AppData\\Local\\anaconda3\\envs\\depth_ai\\python.exe', '-c', 'from depthai_viewer.install_requirements import download_blobs; download_blobs()']' returned non-zero exit status 1.
Deleting partially created virtual environment: C:\Users\deg6fni\AppData\Local\anaconda3\envs\depth_ai\Lib\site-packages\depthai_viewer\venv-0.2.4