Hi

I am working with OAK-D CM4 PoE. I met below issue with several OAK-D CM4 PoE model we have. Could you please check about it for us?


i@luxonis:~/depthai-python/examples $ python3 install_requirements.py

pip 24.3.1 from /home/pi/.local/lib/python3.9/site-packages/pip (python 3.9)

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple

Requirement already satisfied: pip in /home/pi/.local/lib/python3.9/site-packages (24.3.1)

Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple

Requirement already satisfied: pyyaml in /home/pi/.local/lib/python3.9/site-packages (6.0)

Collecting pyyaml

Downloading https://www.piwheels.org/simple/pyyaml/PyYAML-6.0.2-cp39-cp39-linux_armv7l.whl (45 kB)

Requirement already satisfied: requests in /home/pi/.local/lib/python3.9/site-packages (2.26.0)

Collecting requests

Downloading https://www.piwheels.org/simple/requests/requests-2.32.3-py3-none-any.whl (64 kB)

Requirement already satisfied: numpy<3.0 in /home/pi/.local/lib/python3.9/site-packages (1.22.3)

Collecting numpy<3.0

Downloading https://www.piwheels.org/simple/numpy/numpy-2.0.2-cp39-cp39-linux_armv7l.whl (5.8 MB)

 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 5.8/5.8 MB 109.7 kB/s eta 0:00:00

Collecting opencv-python!=4.5.4.58

Downloading https://www.piwheels.org/simple/opencv-python/opencv_python-4.6.0.66-cp39-cp39-linux_armv7l.whl (11.3 MB)

 ━━━━━━━━━━━╸━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 3.3/11.3 MB 109.2 kB/s eta 0:01:14

ERROR: THESE PACKAGES DO NOT MATCH THE HASHES FROM THE REQUIREMENTS FILE. If you have updated the package versions, please update the hashes. Otherwise, examine the package contents carefully; someone may have tampered with them.

opencv-python!=4.5.4.58 from https://www.piwheels.org/simple/opencv-python/opencv_python-4.6.0.66-cp39-cp39-linux_armv7l.whl#sha256=c1360e46e5ebd47a92e00c1f75c7d293d6ffd00d7f9ff06666f9af05eff2094f:

    Expected sha256 c1360e46e5ebd47a92e00c1f75c7d293d6ffd00d7f9ff06666f9af05eff2094f

         Got        e0bac2b7656975184c92f22f3b2eef8f857b21b3c9dc3d981528ea2136e76202

Traceback (most recent call last):

File "/home/pi/depthai-python/examples/install_requirements.py", line 137, in <module>

subprocess.check_call(python_dependencies_cmd)

File "/usr/lib/python3.9/subprocess.py", line 373, in check_call

raise CalledProcessError(retcode, cmd)

subprocess.CalledProcessError: Command '['/usr/bin/python3', '-m', 'pip', 'install', '-U', '--prefer-binary', '--no-cache-dir', '--user', 'pyyaml', 'requests',


Best regards,

Ryan.

    RyanLee
    I'd git restore the depthai-python folder, and make sure the hashes didn't change by mistake.

    Thanks,
    Jaka

    Hi,

    I tried git restore or removing depthai-python and git clone again. But it is not solving now. Could you help me to solve this issue?

    Best regards,

    Ryan.

    Very likely a connectivity issue. As it's noting that you only have 100kB/s connection (very very slow). Also, is the internet connection stable? It works as expected for me:

    Collecting opencv-python!=4.5.4.58
      Downloading https://www.piwheels.org/simple/opencv-python/opencv_python-4.6.0.66-cp39-cp39-linux_armv7l.whl (11.3 MB)
         ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 11.3/11.3 MB 12.1 MB/s eta 0:00:00
    Requirement already satisfied: charset-normalizer<4,>=2 in /home/pi/.local/lib/python3.9/site-packages (from requests) (2.0.8)
    ```