I've been working on this all day. I've tried everything I can think of even clean Pi OS installs.
Im down to what should be the simpliest thing by just running the installer found here,
sudo wget -qO- https://docs.luxonis.com/install_depthai.sh | bash

After, it attempted to auto load the test view which came up saying it need an update. First time I didnt take the update. That didnt work so I did it again and this time took the update. It updated and now its back to giving me the same type of errors I've been seeing all day.
This time it says:
A module that was compiled using NumPy 1.x cannot be run in
NumPy 2.0.2 as it may crash. To support both 1.x and 2.x
versions of NumPy, modules must be compiled with NumPy 2.0.

Then it shows a bunch of lines simialr to this
Traceback (most recent call last): File "/home/pi/depthai-python/examples/ColorCamera/rgb_preview.py", line 3, in <module> import cv2 File "/home/pi/.local/lib/python3.9/site-packages/cv2/init.py", line 181, in <module> bootstrap() File "/home/pi/.local/lib/python3.9/site-packages/cv2/init.py", line 153, in bootstrap native_module = importlib.import_module("cv2")

Then I end up in an endless loop of trying to make it work.
I dont know what I could be doing wrong

  • jwalter007
    In finally got it. There were a bunch of mismatched versions. I tackled each one by one thanks to direction of chatGpt

As a follow up to this, I just downloaded and installed one of the images that should be preloaded and I'm still seeing an issue when attempting to run the demo. I successfully installed KSRPiOSFullV2
It does load up with all the DepthAi logos.
When I run the demo I get this error:

%Run depthai_demo.py
RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd
Traceback (most recent call last):
File "/home/pi/depthai/depthai_demo.py", line 12, in <module>
import cv2
File "/home/pi/.local/lib/python3.9/site-packages/cv2/init.py", line 5, in <module>
from .cv2 import *
ImportError: numpy.core.multiarray failed to import

    jakaskerl

    jakaskerl I attempted to both of your recommendations. First I downgraded numpy and got errors. Then I upgraded it, depthai and opencv. First 2 worked opencv continues to give me problems anytime I try to upgrade it. Ill include the error.But isnt the point of the OS image that it contains everything needed to work together? If the one I downloaded isnt like that, is there another that does have it all set.

    error: subprocess-exited-with-error


    �� Building wheel for opencv-python (pyproject.toml) did not run successfully.

    ��� exit code: 1

    ������> [11 lines of output]

      patching file opencv/3rdparty/openexr/IlmImf/ImfSystemSpecific.cpp
    
      /tmp/pip-build-env-csgohggy/overlay/lib/python3.9/site-packages/cmake/data/bin/cmake: error while loading shared libraries: libssl.so.3: cannot open shared object file: No such file or directory
    
      Traceback (most recent call last):
    
        File "/tmp/pip-build-env-csgohggy/overlay/lib/python3.9/site-packages/skbuild/setuptools_wrap.py", line 639, in setup
    
          cmkr = cmaker.CMaker(cmake_executable)
    
        File "/tmp/pip-build-env-csgohggy/overlay/lib/python3.9/site-packages/skbuild/cmaker.py", line 145, in __init__
    
          self.cmake_version = get_cmake_version(self.cmake_executable)
    
        File "/tmp/pip-build-env-csgohggy/overlay/lib/python3.9/site-packages/skbuild/cmaker.py", line 102, in get_cmake_version
    
          raise SKBuildError(msg) from err
    
      
    
      Problem with the CMake installation, aborting build. CMake executable is /tmp/pip-build-env-csgohggy/overlay/lib/python3.9/site-packages/cmake/data/bin/cmake
    
      [end of output]

    note: This error originates from a subprocess, and is likely not a problem with pip.

    ERROR: Failed building wheel for opencv-python

    Failed to build opencv-python

    ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (opencv-python)

      jwalter007
      I've been using chatGPT to help me analyze the errors and provide the commands to get the correct files but I keep seeming to be in a loop of having incompatible files.

        jwalter007
        In finally got it. There were a bunch of mismatched versions. I tackled each one by one thanks to direction of chatGpt