Hailo Application code(object detection) install issue

Hello :grinning_face:,

I tried [Hailo-Application-Code-Examples/runtime/python/object_detection at main · hailo-ai/Hailo-Application-Code-Examples · GitHub] for detection model test

but, in Usage 0 step, i met some error to install hailort

i follow step
(1) Downloads hailoRT 2 files(.deb, whl) [https://hailo.ai/developer-zone/software-downloads/]

  • my setting : aarch64/linux/python3.11

(2) In RaspberryPi5, i made venv and install object_detection requirements.txt

(3) when run command “./object_detection.py”, the error occur

Traceback (most recent call last):
  File "/home/interx/Hailo-Application-Code-Examples/runtime/python/object_detection/./object_detection.py", line 17, in <module>
    from utils import HailoAsyncInference, load_images_opencv, validate_images, divide_list_to_batches
  File "/home/interx/Hailo-Application-Code-Examples/runtime/python/utils.py", line 7, in <module>
    from hailo_platform import (HEF, VDevice,
  File "/home/interx/myenv/lib/python3.11/site-packages/hailo_platform/__init__.py", line 17, in <module>
    import hailo_platform.pyhailort._pyhailort as _pyhailort
ImportError: libhailort.so.4.21.0: cannot open shared object file: No such file or directory

(4) I checked pkg files, they already installed

>> dpkg -l | grep hailort   

ii  hailort                               4.20.0-1                            arm64        HailoRT
ii  hailort-pcie-driver                   4.21.0                              all          Hailo PCIe driver and firmware
ii  python3-hailort                       4.20.0-1                            arm64        HailoRT Python API, which wraps the runtime library

What should i do :melting_face:?

Hey @JBK ,

For RPI you should install the hailo driver and hailort using the hailo-all package , to do so please follow this guide : https://www.raspberrypi.com/documentation/computers/ai.html#getting-started

You should first remove all of the current hailo packages and then run the installation above , to clean all hailo packages please run these commands :

dpkg -l | grep hailo
sudo apt-get remove --purge -y hailo* libhailo*
sudo apt-get autoremove --purge -y
sudo apt-get clean

Thank you for your help

I remove exist package and re-install 4.20, it worked