I have compiled yolov8n with hailo8l at my environment, and I want to try hailo8, so I install hailort:
(hailo_env) jiahao@PC:~$ pip install hailort-4.17.0-cp38-cp38-linux_x86_64.whl
Processing ./hailort-4.17.0-cp38-cp38-linux_x86_64.whl
Requirement already satisfied: argcomplete in ./hailo_env/lib/python3.8/site-packages (from hailort==4.17.0) (3.5.0)
Requirement already satisfied: contextlib2 in ./hailo_env/lib/python3.8/site-packages (from hailort==4.17.0) (21.6.0)
Requirement already satisfied: future in ./hailo_env/lib/python3.8/site-packages (from hailort==4.17.0) (1.0.0)
Requirement already satisfied: netaddr in ./hailo_env/lib/python3.8/site-packages (from hailort==4.17.0) (1.3.0)
Requirement already satisfied: netifaces in ./hailo_env/lib/python3.8/site-packages (from hailort==4.17.0) (0.11.0)
Requirement already satisfied: verboselogs in ./hailo_env/lib/python3.8/site-packages (from hailort==4.17.0) (1.7)
Requirement already satisfied: numpy==1.23.3 in ./hailo_env/lib/python3.8/site-packages (from hailort==4.17.0) (1.23.3)
And then I parse yolov8s.onnx, but I get error
(hailo_env) jiahao@PC:~/yolov8s$ hailomz parse --hw-arch hailo8 --ckpt ./yolov8s.onnx yolov8s
Traceback (most recent call last):
File "/home/jiahao/hailo_env/bin/hailomz", line 5, in <module>
from hailo_model_zoo.main import main
File "/home/jiahao/hailo_env/lib/python3.8/site-packages/hailo_model_zoo/main.py", line 7, in <module>
from hailo_model_zoo.base_parsers import (
File "/home/jiahao/hailo_env/lib/python3.8/site-packages/hailo_model_zoo/base_parsers.py", line 14, in <module>
from hailo_model_zoo.utils.constants import DEVICE_NAMES, TARGETS
File "/home/jiahao/hailo_env/lib/python3.8/site-packages/hailo_model_zoo/utils/constants.py", line 1, in <module>
from hailo_model_zoo.utils.platform_discovery import PLATFORM_AVAILABLE
File "/home/jiahao/hailo_env/lib/python3.8/site-packages/hailo_model_zoo/utils/platform_discovery.py", line 3, in <module>
import hailo_platform # noqa: F401
File "/home/jiahao/hailo_env/lib/python3.8/site-packages/hailo_platform/__init__.py", line 17, in <module>
from hailo_platform.tools.udp_rate_limiter import UDPRateLimiter
File "/home/jiahao/hailo_env/lib/python3.8/site-packages/hailo_platform/tools/udp_rate_limiter.py", line 9, in <module>
from hailo_platform.pyhailort.pyhailort import HEF, NetworkRateLimiter, INPUT_DATAFLOW_BASE_PORT
File "/home/jiahao/hailo_env/lib/python3.8/site-packages/hailo_platform/pyhailort/pyhailort.py", line 17, in <module>
import hailo_platform.pyhailort._pyhailort as _pyhailort
ImportError: libhailort.so.4.17.0: cannot open shared object file: No such file or directory
I need some additional information to assist you better:
Did you install the DFC in the same environment?
Could you please run the following command and let me know the results?
cd /usr/lib && find . | grep hailo
This will help us check if the libhailort library is present.
The error you’re encountering is often associated with version changes or updates. Verifying the presence of the library will help us troubleshoot more effectively.
Let me know the outcomes, and we’ll proceed from there.
Could you try running the command from outside the virtual environment?
The expected output should look similar to this:
If you can’t find this output, it likely indicates that something in the driver installation failed or was removed. In this case, you’ll need to reinstall the driver first, and then reinstall HailoRT.
jiahao@PC:~$ sudo dpkg -i hailort-pcie-driver_4.17.0_all.deb
(Reading database ... 283680 files and directories currently installed.)
Preparing to unpack hailort-pcie-driver_4.17.0_all.deb ...
Verifying secureboot is disabled.
Unpacking hailort-pcie-driver (4.17.0) over (4.17.0) ...
Setting up hailort-pcie-driver (4.17.0) ...
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
build-essential/jammy,now 12.9ubuntu3 amd64 [installed]
Do you wish to use DKMS? [Y/n]:
Failed to install PCIe driver to the DKMS tree. Trying to install PCIe driver without DKMS
Failed. Exited with status 2. See /var/log/hailort-pcie-driver.deb.log
dpkg: error processing package hailort-pcie-driver (--install):
installed hailort-pcie-driver package post-installation script subprocess returned error exit status 2
Errors were encountered while processing:
hailort-pcie-driver