Hi Hailo Team,
I’m working on a project using Raspberry Pi 5 (aarch64) with a Hailo-8 M.2 accelerator. I’ve followed the official installation instructions and have successfully installed:
HailoRT 4.20.0
Python 3.11
hailort Python wheel for aarch64 (hailort-4.20.0-cp311-cp311-linux_aarch64.whl)
Everything seems installed correctly:
hailortcli scan detects my Hailo-8 device.
dpkg -l | grep hailo shows all related packages including python3-hailort.
The wheel installation completes without errors.
However, when I try to import hailort in Python, I always get:
ModuleNotFoundError: No module named ‘hailort’
Even though:
pip show hailort confirms it’s installed.
Python sys.path includes /usr/lib/python3/dist-packages where hailort seems to live.
ldconfig -p | grep hailort shows shared libs are present (libhailort.so etc).
$PYTHONPATH is set correctly.
I tried everything:
Installing via .deb and .whl
Setting PYTHONPATH
Rebuilding the virtual environment
Testing both inside and outside the virtual environment
Reinstalling all Hailo packages
Still no success. I suspect it may be related to how hailort is structured inside the wheel or how it is referenced (hailo_platform.drivers.hailort.pyhailort instead of hailort?).
My Questions:
What is the correct way to import and use hailort in Python 3.11 on aarch64?
Is there an __init__.py or symbolic import missing in the package?
Should I avoid virtual environments with HailoRT?
Is there a working example of using the .whl file on Raspberry Pi OS 64-bit with Python 3.11?