Simatwa / python-tgpt

AI Chat in Terminal + Package + REST-API
https://python-tgpt.onrender.com
MIT License
106 stars 15 forks source link

Folder /usr/lib/pytgpt/gpt4all/ with all its files is missing from 0.6.3 .deb packages! #46

Closed StuDentered closed 6 months ago

StuDentered commented 6 months ago

Traceback (most recent call last): File "PyInstaller/loader/pyimod03_ctypes.py", line 53, in init File "ctypes/init.py", line 376, in init OSError: /usr/lib/pytgpt/gpt4all/llmodel_DO_NOT_MODIFY/build/libllmodel.so: cannot open shared object file: No such file or directory

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "main.py", line 3, in File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module File "pytgpt/init.py", line 2, in File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module File "g4f/init.py", line 6, in File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module File "g4f/models.py", line 5, in File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module File "g4f/Provider/init.py", line 42, in File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module File "g4f/Provider/Local.py", line 5, in File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module File "g4f/locals/provider.py", line 5, in File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module File "gpt4all/init.py", line 1, in File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module File "gpt4all/gpt4all.py", line 18, in File "", line 1176, in _find_and_load File "", line 1147, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "PyInstaller/loader/pyimod02_importers.py", line 419, in exec_module File "gpt4all/_pyllmodel.py", line 38, in File "gpt4all/_pyllmodel.py", line 28, in load_llmodel_library File "PyInstaller/loader/pyimod03_ctypes.py", line 55, in init pyimod03_ctypes.install..PyInstallerImportError: Failed to load dynlib/dll '/usr/lib/pytgpt/gpt4all/llmodel_DO_NOT_MODIFY/build/libllmodel.so'. Most likely this dynlib/dll was not found when the application was frozen. [46543] Failed to execute script 'main' due to unhandled exception!

Simatwa commented 6 months ago

The executables are only reliable when using common providers that rely on requests lib i.e perplexity, phind etcetra. Otherwise it's a complicated stuff bundling none-python files in there. Apologies cause I don't see myself fixing this any sooner, perhaps someone else will. I always recommend running from source. https://github.com/Simatwa/python-tgpt/blob/52c763d8677dfb39402f8e3b89bb9a452560c67e/docs/README.md?plain=1#L115