Error in running examples

I tried to ran examples script on rpi5 with hailo ai+ hat . the rpi is installed with ubuntu 24.04

 python3 basic_pipelines/detection_simple.py --arch hailo8
Loading environment variables from /home/tiburon/Desktop/sandbox_f/hailo-rpi5-examples/.env...
⚠️ Missing environment variables: %s hailo_arch
Using HEF path: None
Using post-process shared object: None
filesrc location="None" name=source ! queue name=source_queue_decode leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0  ! decodebin name=source_decodebin !  queue name=source_scale_q leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0  ! videoscale name=source_videoscale n-threads=2 ! queue name=source_convert_q leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0  ! videoconvert n-threads=3 name=source_convert qos=false ! video/x-raw, pixel-aspect-ratio=1/1, format=RGB, width=640, height=640 ! videorate name=source_videorate ! capsfilter name=source_fps_caps caps="video/x-raw, framerate=30/1"  ! queue name=inference_scale_q leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0  ! videoscale name=inference_videoscale n-threads=2 qos=false ! queue name=inference_convert_q leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0  ! video/x-raw, pixel-aspect-ratio=1/1 ! videoconvert name=inference_videoconvert n-threads=2 ! queue name=inference_hailonet_q leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0  ! hailonet name=inference_hailonet hef-path=None batch-size=2  vdevice-group-id=1 nms-score-threshold=0.3 nms-iou-threshold=0.45 output-format-type=HAILO_FORMAT_TYPE_FLOAT32 force-writable=true  ! queue name=inference_output_q leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0   ! queue name=identity_callback_q leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0  ! identity name=identity_callback  ! queue name=hailo_display_overlay_q leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0  ! hailooverlay name=hailo_display_overlay  ! queue name=hailo_display_videoconvert_q leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0  ! videoconvert name=hailo_display_videoconvert n-threads=2 qos=false ! queue name=hailo_display_q leaky=no max-size-buffers=3 max-size-bytes=0 max-size-time=0  ! fpsdisplaysink name=hailo_display video-sink=autovideosink sync=true text-overlay=False signal-fps-measurements=true 
[HailoRT] [error] CHECK failed - Failed open /sys/class/hailo_chardev/hailo0/accelerator_type
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_DRIVER_INVALID_RESPONSE(85)
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_DRIVER_INVALID_RESPONSE(85) - Failed parsing device info for hailo0
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_DRIVER_INVALID_RESPONSE(85)
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_DRIVER_INVALID_RESPONSE(85)
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_DRIVER_INVALID_RESPONSE(85)
[HailoRT] [error] CHECK_SUCCESS failed with status=HAILO_DRIVER_INVALID_RESPONSE(85)
CHECK_EXPECTED failed with status=85
Error: gst-resource-error-quark: Resource not found. (3), ../plugins/elements/gstfilesrc.c(553): gst_file_src_start (): /GstPipeline:pipeline0/GstFileSrc:source:
No such file "None"
Shutting down... Hit Ctrl-C again to force quit.


uname -r
6.8.0-1040-raspi

what could be the reason?
i followed the tutorial:
hackers-guide-to-the-raspberry-pi-ai-kit-on-ubuntu

Hey @User_dna5!

Let’s figure out what’s going on. Can you run these commands and share the output?

Check your Hailo hardware:

hailortcli fw-control identify
hailortcli scan

Check installed packages:

# System-wide
apt list | grep hailo
pip list | grep hailo

# In your venv (make sure it's activated first!)
pip list | grep hailo

I also noticed in your log that both the HEF path and post-process shared object are showing as “None” - this usually means the application isn’t configured to find your HEF file or the config options aren’t being passed correctly.

Once you share those outputs, we can dig into the configuration!

these are the outputs .

#inside the virtual env
 hailortcli fw-control identify
hailortcli scan
Executing on device: 0000: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>

Hailo Devices:
[-] Device: 0000:01:00.0

#outside of virtual environment
apt list | grep hailo
pip list | grep hailo

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

golang-github-hailocab-go-hostpool-dev/noble 0.0~git20160125.0.e80d13c-1.1 all
hailo-tappas-core-3.28.2/now 3.28.2 arm64 [residual-config]
hailo-tappas-core/now 3.31.0-1 arm64 [installed,local]
hailort-pcie-driver/now 4.20.0 all [installed,local]
hailort/now 4.20.0-1 arm64 [installed,local]

#inside virtual env
pip list | grep hailo
hailo-apps                           25.7.0
hailort                              4.20.0

can you help? what could be wrong?

Hey @User_dna5,

Looks like you don’t have the tappas python bindings installed! Can you check if it’s the same issue outside the venv? If so, you’ll need to install the python hailo-tappas-core package using the hailo-all command.

pip list | grep tappas
tappas-core-python-binding           3.31.0


sudo apt install hailo-all

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
E: Unable to locate package hailo-all

somehow the detection_simple.py script is running
but not the others such as detection.py or depth.py .

in other scripts
this is the error :
what(): OpenCV(4.6.0) ./modules/core/src/alloc.cpp:73: error: (-4:Insufficient memory) Failed to allocate 272084798888640 bytes in function ‘OutOfMemoryError’

Aborted (core dumped)

what could be the reason for bounding box to be not showing in the window?Could you help further?

Hey @User_dna5 ,

I’ve identified the issue. Could you please reinstall hailo-rpi5-examples and ensure the post-installation script completes successfully? It appears the post-processing components and HEF file aren’t being detected by the RPi examples.

Can you provide the installation log if the error returns !

Also could you try running : GitHub - hailo-ai/hailo-apps-infra