Error in compiling onnx to hex

(hailodfc) jerico@MSI:~$ hailomz compile yolo11n --ckpt=Pedestrian.onnx --hw-arch hailo8l --calib-path train/images --classes 1 --performance
Traceback (most recent call last):
File “/home/jerico/hailodfc/bin/hailomz”, line 33, in
sys.exit(load_entry_point(‘hailo-model-zoo’, ‘console_scripts’, ‘hailomz’)())
File “/home/jerico/hailodfc/bin/hailomz”, line 25, in importlib_load_entry_point
return next(matches).load()
File “/usr/lib/python3.10/importlib/metadata/init.py”, line 171, in load
module = import_module(match.group(‘module’))
File “/usr/lib/python3.10/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “”, line 1050, in _gcd_import
File “”, line 1027, in _find_and_load
File “”, line 1006, in _find_and_load_unlocked
File “”, line 688, in _load_unlocked
File “”, line 883, in exec_module
File “”, line 241, in _call_with_frames_removed
File “/home/jerico/hailo_model_zoo/hailo_model_zoo/main.py”, line 7, in
from hailo_model_zoo.base_parsers import (
File “/home/jerico/hailo_model_zoo/hailo_model_zoo/base_parsers.py”, line 14, in
from hailo_model_zoo.utils.constants import DEVICE_NAMES, TARGETS
File “/home/jerico/hailo_model_zoo/hailo_model_zoo/utils/constants.py”, line 1, in
from hailo_model_zoo.utils.platform_discovery import PLATFORM_AVAILABLE
File “/home/jerico/hailo_model_zoo/hailo_model_zoo/utils/platform_discovery.py”, line 3, in
import hailo_platform # noqa: F401
File “/home/jerico/hailodfc/lib/python3.10/site-packages/hailo_platform/init.py”, line 17, in
import hailo_platform.pyhailort._pyhailort as _pyhailort
ImportError: libhailort.so.4.20.0: cannot open shared object file: No such file or directory

This compiling was done in a virtual machine which holds an ubuntu inside.

I encountered the same problem, requesting help. :anguished:

I encountered the same issue, and I was able to resolve it, so I’m sharing my solution here.

As mentioned in the GitHub issue here, installing the HailoRT Ubuntu package (.deb) fixed the problem for me. In my case, I installed hailort_4.20.0_amd64.deb, and after that, everything worked fine.

For reference, my system setup is:

  • GPU: RTX 4090
  • OS: Ubuntu 22.04
  • Python: 3.8

I hope this helps! Let me know if you need any further details.

Are you also using Yolov11?

I was using Yolov8, not Yolov11. However, this issue seems to be related to libhailort.so.4.20.0 not being imported, rather than the specific model.

Installing hailort_4.20.0_amd64.deb resolved the problem for me. Have you tried installing it?