T
technigluon

  • 5 Jun
  • Joined Mar 27, 2024
  • 0 best answers
  • @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.

  • 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.

  • 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?