Hello Community!
I am facing an issue where the hailort module is not recognized in my Python environment, despite being installed correctly. Here is a detailed breakdown of the issue and the steps I’ve taken so far:
Environment Setup:
I am using pyenv to manage Python versions, with a virtual environment hailoconv set to Python 3.10.4.
The environment is activated successfully (pyenv activate hailoconv), and I have verified this by running python --version (which shows Python 3.10.4).
hailort Installation:
I installed hailort version 4.20.0 appropriate for python 3.10 using .whil file hailort-4.20.0-cp310-cp310-linux_aarch64.whl. Suitable for my system arch.
Confirmed the installation with pip show hailort, which shows that version 4.20.0 is installed in the correct path:
/home/my/.pyenv/versions/3.10.4/envs/hailoconv/lib/python3.10/site-packages.
Issue Encountered:
Despite the successful installation of hailort, when I attempt to import the module in Python (import hailort), I receive the following error:
ModuleNotFoundError: No module named 'hailort'
I verified the Python executable being used with which python, which correctly points to
/home/my/.pyenv/versions/3.10.4/envs/hailoconv/bin/python
I have tried importing the module directly in a Python session using the following:
import hailort
But it still returns the ModuleNotFoundError.
Attempts to Resolve:
I have tried deactivating and reactivating the environment (pyenv deactivate / pyenv activate hailoconv).
Reinstalled hailort by running pip uninstall hailort followed by pip install hailort.
Checked the PYTHONPATH environment variable and ensured it includes the correct path to the site-packages directory for the virtual environment.
Could you assist me in resolving this issue? The installation seems correct, but the module is not being recognized in Python, and I have exhausted basic troubleshooting steps.
I am aiming to use the script to run .hef custom built model on raspy5 with a hailo hat.
Thank you for your support.