simonw / llm

Access large language models from the command-line
https://llm.datasette.io
Apache License 2.0
4.81k stars 266 forks source link

OSError: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ~/python3.10/site-packages/gpt4all/llmodel_DO_NOT_MODIFY/build/libllmodel.so) #563

Open raymondworkshop opened 2 months ago

raymondworkshop commented 2 months ago

When I use the LLM library after the installation, it shows the below errors: OSError: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ~/python3.10/site-packages/gpt4all/llmodel_DO_NOT_MODIFY/build/libllmodel.so).

Please see the details:

13:48 ~/workshops/flask $ llm Traceback (most recent call last): File "/home/beanworkshop/.local/bin/llm", line 5, in from llm.cli import cli File "/home/beanworkshop/.local/lib/python3.10/site-packages/llm/init.py", line 18, in from .plugins import pm File "/home/beanworkshop/.local/lib/python3.10/site-packages/llm/plugins.py", line 17, in pm.load_setuptools_entrypoints("llm") File "/home/beanworkshop/.local/lib/python3.10/site-packages/pluggy/_manager.py", line 421, in load_setuptools_entrypoints plugin = ep.load() File "/usr/local/lib/python3.10/importlib/metadata/init.py", line 171, in load module = import_module(match.group('module')) File "/usr/local/lib/python3.10/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "/home/beanworkshop/.local/lib/python3.10/site-packages/llm_gpt4all.py", line 1, in from gpt4all import GPT4All as _GPT4All File "/home/beanworkshop/.local/lib/python3.10/site-packages/gpt4all/init.py", line 1, in from .gpt4all import CancellationError as CancellationError, Embed4All as Embed4All, GPT4All as GPT4All File "/home/beanworkshop/.local/lib/python3.10/site-packages/gpt4all/gpt4all.py", line 23, in from ._pyllmodel import (CancellationError as CancellationError, EmbCancelCallbackType, EmbedResult as EmbedResult, File "/home/beanworkshop/.local/lib/python3.10/site-packages/gpt4all/_pyllmodel.py", line 91, in llmodel = load_llmodel_library() File "/home/beanworkshop/.local/lib/python3.10/site-packages/gpt4all/_pyllmodel.py", line 81, in load_llmodel_library lib = ctypes.CDLL(str(MODEL_LIB_PATH / f"libllmodel.{ext}")) File "/usr/local/lib/python3.10/ctypes/init.py", line 374, in init self._handle = _dlopen(self._name, mode) OSError: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by /home/beanworkshop/.local/lib/python3.10/site-packages/gpt4all/llmodel_DO_NOT_MODIFY/build/libllmodel.so) 1