Cannot import `hailort` in Python 3.11 (Raspberry Pi 5, Hailo 8, 4.20.0)

Hello everyone,

I’m working with Raspberry Pi 5 (64-bit OS) and Hailo-8 module over PCIe. I’ve installed HailoRT version 4.20.0 using both the .deb packages and the Python wheel:

  • hailort_4.20.0_arm64.deb
  • hailort-4.20.0-cp311-cp311-linux_aarch64.whl

The device is detected successfully:

$ lspci | grep Hailo
0000:01:00.0 Co-processor: Hailo Technologies Ltd. Hailo-8 AI Processor

$ hailortcli scan
Hailo Devices:
[-] Device: 0000:01:00.0

But I keep getting this Python error:

>>> import hailort
ModuleNotFoundError: No module named 'hailort'


The wheel is installed:
$ pip list | grep hailort
hailort 4.20.0


And it's in the path:
>>> import sys
>>> print(sys.path)
/home/aura/hailo_env/lib/python3.11/site-packages ...

Tried:

    Installing system-wide and in venv

    Setting PYTHONPATH

    Reinstalling everything multiple times

    Confirmed .so is visible via ldconfig

Still not working. Any ideas?

Thanks!

Hey @user58,

Welcome to the Hailo Community!

The package in Python is named either: “import hailo” or “import hailo_platform”.

Please try these out and update if this fixes the issue. Thanks!