• DepthAI
  • Pre-configured Raspberry Pi OS - Invalid ELF Header

I've successfully downloaded the pre-configured RPi OS but when I run this example:

python depthai-python/examples/MobileNet/rgb_mobilenet.py

the following error is shown:

raceback (most recent call last):
File "/home/pi/depthai-python/examples/MobileNet/rgb_mobilenet.py", line 4, in <module>
import cv2
File "/home/pi/.local/lib/python3.9/site-packages/cv2/__init__.py", line 5, in <module>
from .cv2 import *
ImportError: /home/pi/.local/lib/python3.9/site-packages/cv2/cv2.cpython-39-arm-linux-gnueabihf.so: invalid ELF header

Any suggestions as to how to troubleshoot this would be much appreciated.
Thanks
Hjugh

  • erik replied to this.

    Hello HughN ,
    We apologize for the inconvenience. Could you also share which image (name) you used that threw this error, so we could fix this asap?
    Thanks, Erik

    Hello, Erik.

    It was v3. I have loaded v2 and all works well.

    Thanks,

    Hugh