• DepthAI-v2
  • SSL errors during requirements installation, unable to use cnn models

Hi. While trying to install the requirements in requirements.txt, I have a lot of SSL Errors (see example text below). I'm able to use the basic features such as viewing the depth, mobilessnet-ssd in "depthai_demo.py" on the OAK-D PRO, but unable to use other models such as the deeplabv3p_version CNN model (please refer to attached figure).

I've tried the installation on a different computer; the same errors were displayed.

Kindly assist me with this. Thank you.

Could not fetch URL https://artifacts.luxonis.com/artifactory/luxonis-depthai-data-local/wheels/wrapt/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='artifacts.luxonis.com', port=443): Max retries exceeded with url: /artifactory/luxonis-depthai-data-local/wheels/wrapt/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (ssl.c:1129)'))) - skipping
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (
ssl.c:1129)'))': /artifactory/luxonis-python-snapshot-local/wrapt/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (ssl.c:1129)'))': /artifactory/luxonis-python-snapshot-local/wrapt/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (
ssl.c:1129)'))': /artifactory/luxonis-python-snapshot-local/wrapt/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (ssl.c:1129)'))': /artifactory/luxonis-python-snapshot-local/wrapt/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (
ssl.c:1129)'))': /artifactory/luxonis-python-snapshot-local/wrapt/
Could not fetch URL https://artifacts.luxonis.com/artifactory/luxonis-python-snapshot-local/wrapt/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host='artifacts.luxonis.com', port=443): Max retries exceeded with url: /artifactory/luxonis-python-snapshot-local/wrapt/ (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:1129)'))) - skipping

  • erik replied to this.

    Hello glitchyordis ,
    Are you using the latest commit of depthai repo, latest depthai-sdk and latest blobconverter? I believe this issue was solved a few months ago - but it might have been something similar.
    Thanks, Erik

      erik, yes. the repo was cloned 02/06 and I ran an installation for those in requirements.txt.

      Requirement already satisfied: blobconverter==1.3.0

      Requirement already satisfied: boto3

      Requirement already satisfied: PyYAML
      Requirement already satisfied: requests

      Requirement already satisfied: jmespath<2.0.0,>=0.7.1

      Requirement already satisfied: s3transfer<0.7.0,>=0.6.0

      Requirement already satisfied: botocore<1.28.0,>=1.27.1
      Requirement already satisfied: idna<4,>=2.5

      Requirement already satisfied: certifi>=2017.4.17

      Requirement already satisfied: urllib3<1.27,>=1.21.1

      Requirement already satisfied: charset-normalizer=2.0.0

      Requirement already satisfied: python-dateutil<3.0.0,>=2.1

      Requirement already satisfied: six>=1.5

      • erik replied to this.
        2 years later

        erik Hi Erik, I have also an SSL error on the blobconverter, I can access the blob converter page you provided without any issue.

        I'm on ubuntu 22, python 3.10 and I ran the installation script sudo wget -qO- https://docs.luxonis.com/install_depthai.sh | bash.

        The application depthai_launcher launches but gets stuck when a new window opens with the following error message:
        File "$HOME/libs/depthai/depthai_demo.py", line 657, in run
        self.instance.run_all(self.conf)
        File "$HOME/libs/depthai/depthai_demo.py", line 132, in run_all
        self.setup(conf)
        File "$HOME/libs/depthai/depthai_demo.py", line 264, in setup
        blobPath=self._blobManager.getBlob(shaves=self._conf.shaves, openvinoVersion=self._nnManager.openvinoVersion),
        File "$HOME/libs/venv/lib/python3.10/site-packages/depthai_sdk/managers/blob_manager.py", line 93, in getBlob
        self._blobPath = blobconverter.from_zoo(
        File "$HOME/libs/venv/lib/python3.10/site-packages/blobconverter/__init__.py", line 337, in from_zoo
        response = requests.get("http://artifacts.luxonis.com/artifactory/blobconverter-backup/blobs/{}".format(blob_name.name))
        File "$HOME/libs/venv/lib/python3.10/site-packages/requests/api.py", line 75, in get
        return request('get', url, params=params, **kwargs)
        File "$HOME/libs/venv/lib/python3.10/site-packages/requests/api.py", line 61, in request
        return session.request(method=method, url=url, **kwargs)
        File "$HOME/libs/venv/lib/python3.10/site-packages/requests/sessions.py", line 542, in request
        resp = self.send(prep, **send_kwargs)
        File "$HOME/libs/venv/lib/python3.10/site-packages/requests/sessions.py", line 677, in send
        history = [resp for resp in gen]
        File "$HOME/libs/venv/lib/python3.10/site-packages/requests/sessions.py", line 677, in <listcomp>
        history = [resp for resp in gen]
        File "$HOME/libs/venv/lib/python3.10/site-packages/requests/sessions.py", line 237, in resolve_redirects
        resp = self.send(
        File "$HOME/libs/venv/lib/python3.10/site-packages/requests/sessions.py", line 655, in send
        r = adapter.send(request, **kwargs)
        File "$HOME/libs/venv/lib/python3.10/site-packages/requests/adapters.py", line 514, in send
        raise SSLError(e, request=request)
        SSLError: HTTPSConnectionPool(host='artifacts.luxonis.com', port=443): Max retries exceeded with url: /artifactory/blobconverter-backup/blobs/mobilenet-ssd_openvino_2021.4_6shave.blob (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self signed certificate in certificate chain (_ssl.c:997)')))

        Is this related to me being behind my institute's firewall? Though being behind a firewall has some inconveniences, it shouldn't prevent me from using Luxonis / OAK for work... : or is the depthai application unable to function behind a firewall?

        I'm back home (no firewall here), trying to launch depthai-viewer in the virtual environment (from within which I've installed depthai and depthai-viewer) throws:
        $ depthai-viewer
        ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
        depthai-sdk 1.13.1.dev0+b0340e0c4ad869711d7d5fff48e41c46fe41f475 requires depthai==2.22.0, but you have depthai 2.24.0.0.dev0+c014e27e224f7ef3f6407be6b3f05be6c2fffd13 which is incompatible.

        I will write about it in a new post as this has nothing to do with SSL.

        @technigluon could you try updating both depthai-sdk / depthai to latest version?

        @erik well it seems the error above got fixed by depthai-viewer itself: I let the viewer pursue the installation of its dependencies and the log (shown in an extra window of depthai-viewer) ended with:
        Installing collected packages: wrapt, websockets, typing-extensions, pyarrow, depthai, pydantic, deprecated
        Attempting uninstall: depthai
        Found existing installation: depthai 2.22.0.0
        Uninstalling depthai-2.22.0.0:
        Successfully uninstalled depthai-2.22.0.0
        Successfully installed deprecated-1.2.14 depthai-2.24.0.0.dev0+c014e27e224f7ef3f6407be6b3f05be6c2fffd13 pyarrow-10.0.1 pydantic-1.9.0 typing-extensions-4.10.0 websockets-12.0 wrapt-1.16.0
        Creating virtual environment...
        Status Dump: {"venv_site_packages": "$HOME/.virtualenvs/depthai/lib/python3.10/site-packages/depthai_viewer/venv-0.1.8/lib/python3.10/site-packages"}

        After which I could use my OAK-D pro all right. So indeed it may have to do with the version of depthai.