Error importing libhailort.so.4.20.0 in Jupyter Notebook

Hello everyone,

I’m trying to follow the tutorial below to perform asynchronous inference with my model using Hailo:

:link: Hailo Async Inference Tutorial

I’m running the code in VS Code inside a Jupyter Notebook, but I’m encountering the following error when importing the library:

ImportError: libhailort.so.4.20.0: cannot open shared object file: No such file or directory

I’ve already tried some solutions, such as checking if the library is installed and setting LD_LIBRARY_PATH, but the error persists.

Has anyone faced this issue before or has any suggestions on how to fix it?

I appreciate any help!

Hey @Joao_Pedro_Rezende_M ,

If your files are in the correct path, then this might be a virtual environment issue. Have you checked if VS Code is running Jupyter within the correct virtual environment? That could explain why it’s not finding the necessary packages.

Hi @Joao_Pedro_Rezende_M,

Additionally to the check that @omria suggested, it is good to also make sure that you have installed the pyhailort whl within that venv.