No hailo module error in ubuntu

python basic_pipelines/detection.py --input resources/detection0.mp4Traceback (most recent call last):
File “/home/swappbot/hailort-drivers/hailo-rpi5-examples/basic_pipelines/detection.py”, line 7, in
import hailo
ModuleNotFoundError: No module named ‘hailo’

I am installing in ubuntu
I had followed steps from this blog https://ubuntu.com/blog/hackers-guide-to-the-raspberry-pi-ai-kit-on-ubuntu

please help me fix this

Thank you

Hi sanjay1,

Welcome to Hailo community!

This error occurs because you are not in a Python virtual environment.
Please run source setup_env.sh from the hailo-rpi5-examples directory.
Note that this script must be executed in every new terminal session.

Best regards,
Ronit

Hey,
It’s still not working. Can you please help me by linking to any blog or video about running a custom hef model on hailo AI using Ubuntu on Pi?

The major problem I phase is no module hailo ai
Thank you

please any developer from HAILO need help on this

Hey @sanjay1,

Could you try reinstalling the Hailo packages following the instructions provided here:
Install Hailo Packages on Raspberry Pi 5

Please let me know how it goes. The link you shared suggests a manual installation, which likely means that pyhailort (apart from the CLI version) wasn’t installed in your virtual environment.

Keep in mind that pyhailort is automatically installed as part of our package when following the official process.

Looking forward to your update!

Hey, I want to install them in Ubuntu 24.04 in rpi5.

Can you please give me how to install:
HAILO RT in ubuntu in rpi 5

Thank you