Page 1 of 1

GPT4ALL - Can't install on MX Linux 23

Posted: Mon Dec 30, 2024 3:24 pm
by maxmoon
I would like to use ai, but it should be private/offline. For this I tried to install GPT4ALL.

I used this guide, which is based on pyrthon: https://adamtheautomator.com/gpt4all/

After installation, I tried to start the application and got following error:

Code: Select all

Traceback (most recent call last):
  File "/home/maxmoon/gpt4all/app.py", line 15, in <module>
    from gpt4all import GPT4All
  File "/home/maxmoon/.local/lib/python3.9/site-packages/gpt4all/__init__.py", line 1, in <module>
    from .gpt4all import CancellationError as CancellationError, Embed4All as Embed4All, GPT4All as GPT4All
  File "/home/maxmoon/.local/lib/python3.9/site-packages/gpt4all/gpt4all.py", line 23, in <module>
    from ._pyllmodel import (CancellationError as CancellationError, EmbCancelCallbackType, EmbedResult as EmbedResult,
  File "/home/maxmoon/.local/lib/python3.9/site-packages/gpt4all/_pyllmodel.py", line 91, in <module>
    llmodel = load_llmodel_library()
  File "/home/maxmoon/.local/lib/python3.9/site-packages/gpt4all/_pyllmodel.py", line 81, in load_llmodel_library
    lib = ctypes.CDLL(str(MODEL_LIB_PATH / f"libllmodel.{ext}"))
  File "/usr/lib/python3.9/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/maxmoon/.local/lib/python3.9/site-packages/gpt4all/llmodel_DO_NOT_MODIFY/build/libllmodel.so)
With the command

Code: Select all

ldd --version
I could figure out my current version:

Code: Select all

dd (Debian GLIBC 2.31-13+deb11u11) 2.31
How can I get a newer version of GLIBC on MX Linux? Or would it even better to nicely request a gpt4all package for the mx package installer?

Thanks a lot for your help :happy:

Re: GPT4ALL - Can't install on MX Linux 23

Posted: Mon Dec 30, 2024 3:24 pm
by Eadwine Rose
Remember, with all requests, as per forum rules (which, if you haven't, please read), please share your full Quick System Info, do not edit.
If need be, you can do this using the LiveUSB, thanks.

Re: GPT4ALL - Can't install on MX Linux 23

Posted: Mon Dec 30, 2024 6:43 pm
by Stevo
How can I get a newer version of GLIBC on MX Linux?

Update to MX 23 instead of the MX 21 you're currently using is the only option.

Note that the Ubuntu guide you linked to says this:
Before you dive headfirst into the exciting world of AI, ensure you’re well-equipped with the following:

An Ubuntu machine with version 22.04 or higher – This tutorial uses Ubuntu 23.04.

💡 Consider upgrading your Ubuntu version before proceeding since older versions may not offer full compatibility with GPT4All.
In this case, you can roughly correlate the Debian-based MX version with the Ubuntu releases that are too old.

Re: GPT4ALL - Can't install on MX Linux 23

Posted: Mon Dec 30, 2024 6:44 pm
by siamhie
maxmoon wrote: Mon Dec 30, 2024 3:24 pm I would like to use ai, but it should be private/offline. For this I tried to install GPT4ALL.

I used this guide, which is based on pyrthon: https://adamtheautomator.com/gpt4all/

MX Linux is not Ubuntu.

GPT4All Documentation https://docs.gpt4all.io/index.html

Re: GPT4ALL - Can't install on MX Linux 23

Posted: Wed Jan 01, 2025 9:42 am
by maxmoon
Stevo wrote: Mon Dec 30, 2024 6:43 pm Update to MX 23 instead of the MX 21 you're currently using is the only option.
You're right! I have MX 23 on my laptop, but MX 21 on my stronger computer and I tried it on the stronger machine, because ai needs a lot of resources.

I guess I start the new year with a complete new installation of Linux :)

Re: GPT4ALL - Can't install on MX Linux 23

Posted: Wed Jan 01, 2025 4:35 pm
by Stevo
You could make a snapshot of your laptop's installation, and then install that on the desktop.

Re: GPT4ALL - Can't install on MX Linux 23

Posted: Wed Jan 15, 2025 1:34 pm
by maxmoon
Stevo wrote: Wed Jan 01, 2025 4:35 pm You could make a snapshot of your laptop's installation, and then install that on the desktop.
That's a nice idea, but I think I might use a Linux distribution (with rolling releases) on my computer with new hardware, because I need the newest Kdenlive and other tools for video editing, because even with flatpak not everything worked on MX. And it would fix the issue with ai, because it looks like ai needs newest stuff often.

But I keep MX on my old working notebook, because it is still the most stable system I know.

Re: GPT4ALL - Can't install on MX Linux 23

Posted: Wed Jan 15, 2025 2:06 pm
by DukeComposed
maxmoon wrote: Wed Jan 15, 2025 1:34 pm That's a nice idea, but I think I might use a Linux distribution (with rolling releases) on my computer with new hardware, because I need the newest Kdenlive and other tools for video editing, because even with flatpak not everything worked on MX.

But I keep MX on my old working notebook, because it is still the most stable system I know.
Stability is often the opposite of new, and one of the reasons MX Linux is as stable as it is comes from the fact that Debian takes years validating their software and configs before publishing a major release. Rolling releases can get you newer stuff faster, but it comes at the risk of an update breaking everything in new and unexpected ways, with no warning. It doesn't happen often, but it does happen.

In fact, I ended up with an unbootable Void Linux system this week because of a recent undetected change in the script that builds initramfses for kernels. Caveat emptor.

I do a little video editing, and after low satisfaction with the build in the repos on MX-21, I opted for the flatpak version of Kdenlive on MX-23 and it's been a superlative experience so far. The only problem I have now is the skill of the person using it.

Re: GPT4ALL - Can't install on MX Linux 23

Posted: Wed Jan 15, 2025 2:14 pm
by CharlesV
+1 on Duke . I use KDenlive in an appimage (my preferred method over flatpak ) and it works very well for me. (AND I can stay on the latest this way too.)