ModuleNotFoundError: No module named 'hailo_apps_infra'

Hi! I’m having issues running my converted to .hef from yolov8 model.
When I run:

python3 basic_pipelines/detection.py --hef-path resources/bestn3.hef --input rpi --labels-json resources/cytron-labels.json

I get this error below, even though I installed everything (I guess).

Traceback (most recent call last):
  File "/home/pi/Kim/hailo-rpi5-examples/basic_pipelines/detection.py", line 9, in <module>
    from hailo_apps_infra.hailo_rpi_common import (
ModuleNotFoundError: No module named 'hailo_apps_infra'

Please, is there anything I can do to run my model without any errors?

Hi
I encountered the same problem and my way of solving this was to update from the Git repo:
cd [your-path]/hailo-rpi5-examples
git pull
And then running the install script again:
./install.sh
and starting the virtual environment with
source setup_env.sh

I think it has to do with Hailo have redone the Raspberry Pi examples using the Hailo Applications Infrastructure

Good Luck
Fredrik

1 Like