I am trying to bundle my .py script that uses pytorch, OpenCV (generally AI oriented script) to be one-file, standalone file for my custom app deployment purpose. Due to technical limitations I need to use Azure Functions without containers, so I need a Linux binary working on Debian 11. The problem is, when I use nuitka --onefile --standalone myscript.py (on Debian 11 as well), when I upload the generated .bin into Azure Function, it says "cannot open shared object file: No such file or directory" both for libgl1 and libgthread-2.0. I checked that using apt-get install via SSH on that system to get those libraries helps. But I have no option to automate it at the moment. Is there any option to make "true" standalone binary file using Nuitka, with libgl1 and libgthread-2.0 included? Continue reading...