GPT4ALL - Can't install on MX Linux 23

Message
Author
maxmoon
Posts: 83
Joined: Sun Nov 17, 2019 3:31 pm

GPT4ALL - Can't install on MX Linux 23

#1 Post 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:

User avatar
Eadwine Rose
Administrator
Posts: 14885
Joined: Wed Jul 12, 2006 2:10 am

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

#2 Post 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.
MX-23.6_x64 July 31 2023 * 6.1.0-37amd64 ext4 Xfce 4.20.0 * 8-core AMD Ryzen 7 2700
Asus TUF B450-Plus Gaming UEFI * Asus GTX 1050 Ti Nvidia 535.247.01 * 2x16Gb DDR4 2666 Kingston HyperX Predator
Samsung 870EVO * Samsung S24D330 & P2250 * HP Envy 5030

User avatar
Stevo
Developer
Posts: 14705
Joined: Fri Dec 15, 2006 7:07 pm

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

#3 Post 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.
Last edited by Stevo on Mon Dec 30, 2024 6:47 pm, edited 1 time in total.
MXPI = MX Package Installer
QSI = Quick System Info from menu
The MX Test repository is mostly backports; not the same as Debian testing

User avatar
siamhie
Global Moderator
Posts: 3457
Joined: Fri Aug 20, 2021 5:45 pm

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

#4 Post 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
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.

maxmoon
Posts: 83
Joined: Sun Nov 17, 2019 3:31 pm

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

#5 Post 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 :)

User avatar
Stevo
Developer
Posts: 14705
Joined: Fri Dec 15, 2006 7:07 pm

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

#6 Post by Stevo »

You could make a snapshot of your laptop's installation, and then install that on the desktop.
MXPI = MX Package Installer
QSI = Quick System Info from menu
The MX Test repository is mostly backports; not the same as Debian testing

maxmoon
Posts: 83
Joined: Sun Nov 17, 2019 3:31 pm

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

#7 Post 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.

User avatar
DukeComposed
Posts: 1451
Joined: Thu Mar 16, 2023 1:57 pm

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

#8 Post 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.

User avatar
CharlesV
Global Moderator
Posts: 7628
Joined: Sun Jul 07, 2019 5:11 pm

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

#9 Post 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.)
*QSI = Quick System Info from menu (Copy for Forum)
*MXPI = MX Package Installer
*Please check the solved checkbox on the post that solved it.
*Linux -This is the way!

Post Reply

Return to “Software / Configuration”