Cannot get hailo-rp5-examples to work on raspberry pie

Hello, I have a raspberry pi 5 with the 26 top hat, and for the life of me I cannot get it to recognize the Hailo library.

First I ran the command

sudo apt install hailo-all

Everything was working and I was able to run

hailortcli fw-control identify
Executing on device: 0001:01:00.0
Identifying board
Control Protocol Version: 2
Firmware Version: 4.20.0 (release,app,extended context switch buffer)
Logger Version: 0
Board Name: Hailo-8
Device Architecture: HAILO8
Serial Number: <N/A>
Part Number: <N/A>
Product Name: <N/A>
gst-inspect-1.0 hailo
Plugin Details:
  Name                     hailo
  Description              hailo gstreamer plugin
  Filename                 /usr/lib/aarch64-linux-gnu/gstreamer-1.0/libgsthailo.so
  Version                  1.0
  License                  unknown
  Source module            hailo
  Binary package           GStreamer
  Origin URL               http://gstreamer.net/

  hailodevicestats: hailodevicestats element
  hailonet: hailonet element
  synchailonet: sync hailonet element

  3 features:
  +-- 3 elements

I did notice when I ran this I got a bad response

gst-inspect-1.0 hailotools
No such element or plugin 'hailotools'

But its ok, the hailo-rpi5-examples compiled venv should take care of all the dependencies yeah?

So simply I install

./install.sh
source setup_env.sh
pip install -r requirments.txt
./download_resources.sh

But when I run the example

python basic_pipelines/detection_simple.py

I get

(venv_hailo_rpi_examples) (base) notebook:~/Documents/hailo-rpi5-examples $ python basic_pipelines/detection_simple.py --help
Traceback (most recent call last):
  File "/home/user/Documents/hailo-rpi5-examples/basic_pipelines/detection_simple.py", line 6, in <module>
    import hailo
ImportError: libgsthailometa.so.3: cannot open shared object file: No such file or directory

I have been trying everything but I don’t understand why it cant recognize the hailo library, I followed the instructions exactly and got no error.

Some extra information I am using Hailo version 4.20.0, Python 11, 26 TOP hat, and 16gb ram raspberry pi 5. I am running a headless setup so I will have to open an endpoint to stream video for actual testing but I cant even get past the dependency injection part.

Please if there is any help, I am all ears,

Thank you!

Hi @Antonin_Vychodil
Welcome to the Hailo community. While not a direct solution to your problem, I would like to suggest using DeGirum PySDK as you have everything needed to run the hardware (from what I can tell from your logs): Simplifying Edge AI Development with DeGirum PySDK and Hailo

Hello @shashi, I will take a look at it later and let you know if I have any issues trying to set it up :slight_smile:

Thank you

Hi @Antonin_Vychodil, we ran into similar issues and ended up documenting the full setup process for Hailo-8 on Raspberry Pi 5, including how to get the examples running correctly, might be helpful: https://www.ridgerun.ai/post/how-to-set-up-hailo-8-on-raspberry-pi-5-for-real-time-edge-ai-inference


Adrian Araya
Machine Learning Engineer at RidgeRun.ai
Contact us: support@ridgerun.ai

Hey @Antonin_Vychodil ,

Welcome to the Hailo Community!

This looks like an installation issue to me. I’d suggest running these commands to check what’s actually installed:

apt list --installed | grep hailo
apt list --installed | grep tappas

And then inside your virtual environment, run:

pip list | grep tappas
pip list | grep hailo

My guess is that tappas-core didn’t install properly - these commands should help us figure out what’s missing.