I’m experiencing a runtime issue when running a PyInstaller-built executable of my AI application that uses the Hailo8L accelerator and DeGirum tools on a Raspberry Pi 5 running Raspbian.
The application works perfectly when executed directly via Python (python person_recognition.py), but fails only after being packaged with PyInstaller.
Error:
degirum.exceptions.DegirumException: Model 'yolo11n_silu_coco--640x640_quant_hailort_hailo8l_1' does not have any supported runtime/device combinations that will work on this system.
Thanks for providing this information. We have never tried PyInstaller before. We will see if we can replicate this. Your hypothesis about dynamic linking and missing libraries could be right.
Sure, I already finish a people counting program made in python and raspberry pi 5.
Now I want to distribute this software in some other raspberry pi’s without exposing the code.
Re-run the pyinstaller command with --additional-hooks-dir .
This will package all of the necessary plugin libraries to get PySDK to work through PyInstaller.
For example:
If your application is testVideoStream.py, you can run this command after creating the hook file: pyinstaller --name testVideoStream --onedir --additional-hooks-dir . testVideoStream.py