• DepthAI-v2
  • How to install depthai-viwer on Ubuntu machine?

Dear DepthAI Experts,

I have an OAK-1 camera and I would like to visualize the the capture from it. I think that depthai-viewer can help.

But following the brief instruction in the README of the relevant repository does not help :

$ python3 -m pip install depthai-viewer

Defaulting to user installation because normal site-packages is not writeable

ERROR: Could not find a version that satisfies the requirement depthai-viewer (from versions: none)

ERROR: No matching distribution found for depthai-viewer

The python3 on my Ubuntu laptop did not meet the requirement >=3.8, I then installed the python3.8 manually :

$ python3.8 -V

Python 3.8.0

But still the same error:

$ python3.8 -m pip install depthai-viewer

Collecting depthai-viewer

Cache entry deserialization failed, entry ignored

Could not find a version that satisfies the requirement depthai-viewer (from versions: )

No matching distribution found for depthai-viewer

Could someone help to solve this, please ? My Ubuntu is 18.04

Best Regards,

Khang

    Hi jakaskerl

    With python3.9, I still have the same issue :

    $ python3.9 -V

    Python 3.9.2

    $ python3.9 -m pip install depthai-viewer

    Defaulting to user installation because normal site-packages is not writeable

    ERROR: Could not find a version that satisfies the requirement depthai-viewer (from versions: none)

    ERROR: No matching distribution found for depthai-viewer

    WARNING: You are using pip version 20.2.3; however, version 23.2.1 is available.

    You should consider upgrading via the '/usr/local/bin/python3.9 -m pip install --upgrade pip' command.

      Hi l4es
      Update pip to the latest. Then it should work I believe.

      Thanks,
      Jaka

      • l4es replied to this.

        Hi jakaskerl ,

        Still error :

        $ /usr/local/bin/python3.9 -m pip install --upgrade pip

        Defaulting to user installation because normal site-packages is not writeable

        Collecting pip

        Downloading pip-23.2.1-py3-none-any.whl (2.1 MB)

        |████████████████████████████████| 2.1 MB 1.7 MB/s

        Installing collected packages: pip

        Successfully installed pip-23.2.1

        WARNING: You are using pip version 20.2.3; however, version 23.2.1 is available.

        You should consider upgrading via the '/usr/local/bin/python3.9 -m pip install --upgrade pip' command.

        $ python3.9 -m pip install depthai-viewer

        Defaulting to user installation because normal site-packages is not writeable

        ERROR: Could not find a version that satisfies the requirement depthai-viewer (from versions: none)

        ERROR: No matching distribution found for depthai-viewer

        I am inside the depthai-viewer folder cloned from your repository. However, there's no requirements.txt file.

          Hi l4es
          That's very strange. Can you ensure you are using the correct pip and python (you should be due to how you installed it, but still)? You can alternatively try to build it using python3.9 -m pip install git+https://github.com/luxonis/depthai-viewer.git@main#subdirectory=rerun_py but you will need cargo and rust installed.
          Could you please open an issue at depthai-viewer repo so we can sort this out?

          Thanks,
          Jaka

          • l4es replied to this.