I can see all required software and drivers are installed and visible but still getting error, i tried two envs, one with python 3.12 and one with 3.11, both gives same error. without venv i get error with gi not installed even though its installed.
Is there any way I can fix this somehow? We cant change our ubuntu version, or change default python version as it breaks everything.
We need this to work in order to link it to ROS2 and communicate with other nodes. But i tried everything, searched all possible forums and documentation and still getting errors, how would I solve this?
(venv_hailo_rpi_examples) pw@pwRPi:~/hailo-rpi5-examples$ python basic_pipelines/detection_simple.py
Traceback (most recent call last):
File "/home/pw/hailo-rpi5-examples/basic_pipelines/detection_simple.py", line 6, in <module>
import hailo
ModuleNotFoundError: No module named 'hailo'
(venv_hailo_rpi_examples) pw@pwRPi:~/hailo-rpi5-examples$ python basic_pipelines/detection_simple.py
Traceback (most recent call last):
File "/home/pw/hailo-rpi5-examples/basic_pipelines/detection_simple.py", line 6, in <module>
import hailo
ModuleNotFoundError: No module named 'hailo'
(venv_hailo_rpi_examples) pw@pwRPi:~/hailo-rpi5-examples$ python --version
Python 3.11.13
(venv_hailo_rpi_examples) pw@pwRPi:~/hailo-rpi5-examples$ ls /dev/hailo*
/dev/hailo0
(venv_hailo_rpi_examples) pw@pwRPi:~/hailo-rpi5-examples$ sudo dmesg | grep hailo
[sudo] password for pw:
[60186.061254] hailo_pci: loading out-of-tree module taints kernel.
[60186.062847] hailo: Init module. driver version 4.20.1
[60186.063002] hailo 0000:03:00.0: Probing on: 1e60:2864...
[60186.063012] hailo 0000:03:00.0: Probing: Allocate memory for device extension, 13184
[60186.063031] hailo 0000:03:00.0: enabling device (0000 -> 0002)
[60186.063047] hailo 0000:03:00.0: Probing: Device enabled
[60186.063073] hailo 0000:03:00.0: Probing: mapped bar 0 - 00000000677b8582 16384
[60186.063080] hailo 0000:03:00.0: Probing: mapped bar 2 - 000000006bc8e98b 4096
[60186.063085] hailo 0000:03:00.0: Probing: mapped bar 4 - 00000000111ea7ad 16384
[60186.063119] hailo 0000:03:00.0: Probing: Force setting max_desc_page_size to 4096 (recommended value is 4096)
[60186.063133] hailo 0000:03:00.0: Probing: Enabled 64 bit dma
[60186.063139] hailo 0000:03:00.0: Probing: Using userspace allocated vdma buffers
[60186.063150] hailo 0000:03:00.0: Disabling ASPM L0s
[60186.063158] hailo 0000:03:00.0: Successfully disabled ASPM L0s
[60186.063294] hailo 0000:03:00.0: Writing file hailo/hailo8_fw.4.20.1.bin
[60186.128421] hailo 0000:03:00.0: File hailo/hailo8_fw.4.20.1.bin written successfully
[60186.128429] hailo 0000:03:00.0: Writing file hailo/hailo8_board_cfg.bin
[60186.128502] Failed to write file hailo/hailo8_board_cfg.bin
[60186.128504] hailo 0000:03:00.0: File hailo/hailo8_board_cfg.bin written successfully
[60186.128506] hailo 0000:03:00.0: Writing file hailo/hailo8_fw_cfg.bin
[60186.128546] Failed to write file hailo/hailo8_fw_cfg.bin
[60186.128548] hailo 0000:03:00.0: File hailo/hailo8_fw_cfg.bin written successfully
[60186.165935] hailo 0000:03:00.0: NNC Firmware loaded successfully
[60186.165940] hailo 0000:03:00.0: FW loaded, took 102 ms
[60186.178162] hailo 0000:03:00.0: Probing: Added board 1e60-2864, /dev/hailo0
[61267.355881] ptrace attach of "gst-launch-1.0 v4l2src device=/dev/video4 ! videoconvert ! videoscale ! video/x-raw,format=RGB,width=640,height=640 ! hailonet hef-path=/home/pw/yolov8m.hef ! hailofilter ! fakesink"[118029] was attempted by "gdb gst-launch-1.0 118029"[118047]
(venv_hailo_rpi_examples) pw@pwRPi:~/hailo-rpi5-examples$ hailortcli fw-control identify
Executing on device: 0000:03:00.0
Identifying board
Control Protocol Version: 2
Firmware Version: 4.20.1 (release,app,extended context switch buffer)
Logger Version: 0
Board Name: Hailo-8
Device Architecture: HAILO8
Serial Number: <N/A>
Part Number: <N/A>
Product Name: <N/A>
pw@pwRPi:~/hailo-rpi5-examples$ lsmod | grep hailo
hailo_pci 118784 0
(venv_hailo_rpi_examples) pw@pwRPi:~/hailo-rpi5-examples$ dpkg -l | fgrep -i hailo | fgrep ii
ii hailo-dkms 4.20.1-1ubuntu1~marco3 all Hailo PCIe driver
ii hailo-tappas-core 3.31.0+2-1ubuntu1~marco5 arm64 This package contains the core components of the Hailo Tappas platform.
ii hailofw 4.20.1-1ubuntu1~marco1 all Hailo firmware
ii hailort 4.20.1.1-1ubuntu1~marco1 arm64 Hailo RT is a lightweight, production-grade runtime library
ii python3-hailort 4.20.1-1ubuntu1~marco1 arm64 HailoRT Python API, which wraps the runtime library
ii rpicam-apps-hailo-postprocess 1.7.0-1ubuntu1~marco1 arm64 rpicam-apps-hailo
(venv_hailo_rpi_examples) pw@pwRPi:~/hailo-rpi5-examples$ uname -a
Linux pwRPi 6.8.0-1031-raspi #35-Ubuntu SMP PREEMPT_DYNAMIC Thu Jul 3 15:00:20 UTC 2025 aarch64 aarch64 aarch64 GNU/Linux