• DepthAI-v2
  • opencv-python depthai dependency conflict

Hello,

After installing the depthai-python tools, when subsequently trying to install opencv-python, I get the following dependency error:

depthai-gui 2.0.6 requires depthai==2.13.3.0, but you have depthai 2.20.2.0 which is incompatible.

I would have guessed that 2.20 would do everything as 2.13. How does one get pip install to ignore this?

The full transaction if it helps:

~/dev/depthai$ pip install opencv-python

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

Collecting opencv-python

Using cached opencv_python-4.9.0.80-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.metadata (20 kB)

Requirement already satisfied: numpy>=1.21.2 in /home/[me]/.local/lib/python3.10/site-packages (from opencv-python) (1.26.4)

Using cached opencv_python-4.9.0.80-cp37-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (62.2 MB)

Installing collected packages: opencv-python

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-gui 2.0.6 requires depthai==2.13.3.0, but you have depthai 2.20.2.0 which is incompatible.

Successfully installed opencv-python-4.9.0.80

Hi @spnsingh
Not sure if we even use the depthai-gui anymore.
Install the latest version of depthai, all examples and cam_test should work fine.

Thanks,
Jaka

    BTW, I just saw the update command from another forum: pip install depthai -U

    Now on currently on depthai-2.24. Is this the version you would recommend I use for all the demos / cam_test operations?

    Hi @spnsingh
    DepthAI repo is for depthai_sdk and calibration.
    DepthAI-python repo is for depthai library, cam test, examples and other utilities.

    I recommend using the latest version of depthai since it's less buggy and supports more nodes.

    Thanks,
    Jaka