compilation error

i am trying to convert in hef format using yolo11 but i am getting this error.

(hailodfc) vtol@DESKTOP-K27JS8C:~$ hailomz compile yolov11s --ckpt=visdrone3.onnx --hw-arch hailo8 --calib-path visdrone/images --classes 3
Traceback (most recent call last):
File “/home/vtol/hailodfc/bin/hailomz”, line 33, in
sys.exit(load_entry_point(‘hailo-model-zoo’, ‘console_scripts’, ‘hailomz’)())
File “/home/vtol/hailo_model_zoo/hailo_model_zoo/main.py”, line 122, in main
run(args)
File “/home/vtol/hailo_model_zoo/hailo_model_zoo/main.py”, line 101, in run
from hailo_model_zoo.main_driver import compile, evaluate, optimize, parse, profile
File “/home/vtol/hailo_model_zoo/hailo_model_zoo/main_driver.py”, line 16, in
from hailo_model_zoo.core.main_utils import (
File “/home/vtol/hailo_model_zoo/hailo_model_zoo/core/main_utils.py”, line 18, in
from hailo_model_zoo.core.infer import infer_factory
File “/home/vtol/hailo_model_zoo/hailo_model_zoo/core/infer/infer_factory.py”, line 14, in
discovered_plugins = {name: importlib.import_module(name) for _, name, _ in iter_namespace(hailo_model_zoo.core.infer)}
File “/home/vtol/hailo_model_zoo/hailo_model_zoo/core/infer/infer_factory.py”, line 14, in
discovered_plugins = {name: importlib.import_module(name) for _, name, _ in iter_namespace(hailo_model_zoo.core.infer)}
File “/usr/lib/python3.10/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “/home/vtol/hailo_model_zoo/hailo_model_zoo/core/infer/hw_infer_utils.py”, line 6, in
from hailo_platform import (
ModuleNotFoundError: No module named ‘hailo_platform’

I got the same problem. Did you solved it?
(hailodfc) ykl@ykl-virtual-machine:~/hailodfc/hailo_model_zoo-master$ hailomz compile yolov11n --ckpt=best.onnx --hw-arch hailo8 --calib-path train/images --classes 1 --performance
In file included from /home/ykl/hailodfc/lib/python3.10/site-packages/numpy/core/include/numpy/ndarraytypes.h:1940,
from /home/ykl/hailodfc/lib/python3.10/site-packages/numpy/core/include/numpy/ndarrayobject.h:12,
from /home/ykl/hailodfc/lib/python3.10/site-packages/numpy/core/include/numpy/arrayobject.h:5,
from /home/ykl/.pyxbld/temp.linux-x86_64-cpython-310/home/ykl/hailodfc/hailo_model_zoo-master/hailo_model_zoo/core/postprocessing/cython_utils/cython_nms.c:1246:
/home/ykl/hailodfc/lib/python3.10/site-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " “#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION” [-Wcpp]
17 | #warning "Using deprecated NumPy API, disable it with "
| ^~~~~~~
Traceback (most recent call last):
File “/home/ykl/hailodfc/bin/hailomz”, line 33, in
sys.exit(load_entry_point(‘hailo-model-zoo’, ‘console_scripts’, ‘hailomz’)())
File “/home/ykl/hailodfc/hailo_model_zoo-master/hailo_model_zoo/main.py”, line 122, in main
run(args)
File “/home/ykl/hailodfc/hailo_model_zoo-master/hailo_model_zoo/main.py”, line 101, in run
from hailo_model_zoo.main_driver import compile, evaluate, optimize, parse, profile
File “/home/ykl/hailodfc/hailo_model_zoo-master/hailo_model_zoo/main_driver.py”, line 16, in
from hailo_model_zoo.core.main_utils import (
File “/home/ykl/hailodfc/hailo_model_zoo-master/hailo_model_zoo/core/main_utils.py”, line 18, in
from hailo_model_zoo.core.infer import infer_factory
File “/home/ykl/hailodfc/hailo_model_zoo-master/hailo_model_zoo/core/infer/infer_factory.py”, line 14, in
discovered_plugins = {name: importlib.import_module(name) for _, name, _ in iter_namespace(hailo_model_zoo.core.infer)}
File “/home/ykl/hailodfc/hailo_model_zoo-master/hailo_model_zoo/core/infer/infer_factory.py”, line 14, in
discovered_plugins = {name: importlib.import_module(name) for _, name, _ in iter_namespace(hailo_model_zoo.core.infer)}
File “/usr/lib/python3.10/importlib/init.py”, line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File “/home/ykl/hailodfc/hailo_model_zoo-master/hailo_model_zoo/core/infer/hw_infer_utils.py”, line 6, in
from hailo_platform import (
ModuleNotFoundError: No module named ‘hailo_platform’

No. I am still facing the same error

Hey @vtol.abhijeet @olive_michael ,

The issue you’re both facing is that you’re trying to compile a model using HailoMZ without installing the pyhailort in the same virtual environment.

If you don’t want to install pyhailort, you can simply use the Hailo DFC command (HAILO) in the CLI instead of HailoMZ.