HailoRT 4.18, RPI5 and rpi5 examples

After following all the proper guide on installing HailoRT 4.18 on a clean setup, and installed pyhailort, activated tappas_env, I tried to download rpi5 examples, installed the requirements but running pipeline doesn’t work?

(hailo_platform_venv) kone@raspberrypi:~/Downloads/hailo-rpi5-examples $ pip install -r requirements.txt
Looking in indexes: Simple index, piwheels - Simple index
Collecting setproctitle
Downloading setproctitle-1.3.3-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (31 kB)
Collecting opencv-python
Downloading opencv_python-4.10.0.84-cp37-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (41.7 MB)
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 41.7/41.7 MB 5.7 MB/s eta 0:00:00
Requirement already satisfied: numpy>=1.21.2 in /home/kone/Downloads/HailoRT4.18/hailo_platform_venv/lib/python3.11/site-packages (from opencv-python->-r requirements.txt (line 2)) (1.23.3)
Collecting numpy>=1.21.2
Downloading numpy-2.1.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (14.0 MB)

Installing collected packages: setproctitle, numpy, opencv-python
Attempting uninstall: numpy
Found existing installation: numpy 1.23.3
Uninstalling numpy-1.23.3:
Successfully uninstalled numpy-1.23.3
ERROR: pip’s dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
hailort 4.18.0 requires numpy==1.23.3, but you have numpy 2.1.0 which is incompatible.
Successfully installed numpy-2.1.0 opencv-python-4.10.0.84 setproctitle-1.3.3

(hailo_platform_venv) kone@raspberrypi:~/Downloads/hailo-rpi5-examples $ python basic_pipelines/detection.py --input resources/detection0.mp4
Traceback (most recent call last):
File “/home/kone/Downloads/hailo-rpi5-examples/basic_pipelines/detection.py”, line 1, in
import gi
ModuleNotFoundError: No module named ‘gi’
(hailo_platform_venv) kone@raspberrypi:~/Downloads/hailo-rpi5-examples $ pip list
Package Version


argcomplete 3.5.0
contextlib2 21.6.0
future 1.0.0
hailort 4.18.0
netaddr 1.3.0
netifaces 0.11.0
numpy 2.1.0
opencv-python 4.10.0.84
pip 23.0.1
setproctitle 1.3.3
setuptools 66.1.1
verboselogs 1.7

Hi Dario,

Please wait for the upcoming release, which will include an environment with all the necessary modules.

It’s important to note that the version of NumPy should be below 2.0. Additionally, there are some missing modules causing the following error: ModuleNotFoundError: No module named 'gi'

Best regards,
Ronit

Does the below resolve this?

pip install PyGObject

Please advise on how long until the release is done. We bought this product to get work done.

Hi, it will be released in the next 1-2 weeks.
I appreciate your enthusiasm and thank you for your patience.

4 Likes

Hi @giladn

Do you perhaps have a clearer idea of when exactly the Rasberry Pi runtime release will be available for those not wanting to do the manual update to 4.18? Will the release be announced on the Community Forum?

We are working on it now. It will be announced in the forum.

1 Like

hi, is the new runtime 4.18 available as a package for RPI5?

Yes , you can check out New Release: Raspberry Pi AI Kit Now with Hailo Python API Support, CLIP Zero-Shot Classification, and picamera2 Examples! - #9 by jiahao.li

1 Like