I have create a CLI application as a python package using poetry. I found that nuitka can be used to distribute as standalone executable. My target environment is a Debian 11 where no debian packages can be installed (not even build essential). My issue is when I invoke the binary file created by nuitka in dist folder. I get FileNotFoundError: Shared library with base name 'llama' not found.
I have also opened an issue in nuitka. All the supporting information is present there: https://github.com/Nuitka/Nuitka/issues/3094
The traceback leads to this particular function in llama-cpp/ : https://paste.pythondiscord.com/VSFA
I also tried with Pyinstaller which is actually more convenient in many use cases but in mine, I have to manually install debian packages like libc6 and libstdc++ (and I also get a missing _cffi_backend.cpython.cpython-39m-x86_64-linux-gnu.so error).
Has anyone worked in llama_cpp or CLI tool as package? I am stuck with this issue for days.
I have a python package used as a CLI application. llama-cpp-python's DLL files (specifically libllama.so) are ignored and included in dist folder when I compile the package as standalone distr...