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