Error message, popping up Anki notclosing

Error
An error occurred. Please use Tools > Check Database to see if that fixes the problem.
If problems persist, please report the problem on our support site. Please copy and paste the information below into your report.
Anki 2.1.15 (442df9d6) Python 3.10.0rc2 Qt 5.15.2 PyQt 5.15.0
Platform: Linux
Flags: frz=False ao=False sv=?

Caught exception:
File “/usr/share/anki/aqt/main.py”, line 805, in closeEvent
self.unloadProfileAndExit()
File “/usr/share/anki/aqt/main.py”, line 311, in unloadProfileAndExit
self.unloadProfile(self.cleanupAndExit)
File “/usr/share/anki/aqt/main.py”, line 286, in unloadProfile
self.unloadCollection(callback)
File “/usr/share/anki/aqt/main.py”, line 379, in unloadCollection
self.closeAllWindows(callback)
File “/usr/share/anki/aqt/main.py”, line 632, in closeAllWindows
aqt.dialogs.closeAll(onsuccess)
File “/usr/share/anki/aqt/init.py”, line 95, in closeAll
onsuccess()
File “/usr/share/anki/aqt/main.py”, line 377, in callback
onsuccess()
File “/usr/share/anki/aqt/main.py”, line 282, in callback
self._unloadProfile()
File “/usr/share/anki/aqt/main.py”, line 291, in _unloadProfile
self.pm.save()
File “/usr/share/anki/aqt/profiles.py”, line 184, in save
self.db.execute(sql, self._pickle(self.profile), self.name)
File “/usr/share/anki/aqt/profiles.py”, line 163, in _pickle
return pickle.dumps(obj, protocol=0)
<class ‘SystemError’>: PY_SSIZE_T_CLEAN macro must be defined for ‘#’ formats

Not the solution but is there a reason you’re not updating? If no addon is holding you back, this bug might be fixed with an update.

1 Like

I die install anki today om , Fedora 35 beta.
Anki had no visible update link anywhere.
Thanks for Youri answer

You don’t need to specifically use the repository of your linux distro, you can install the latest release with 3 lines of commands(assuming you know what you’re doing) as shown in the download page:

Did download etc. But that did not fix the problem.
My wild guess is the new Gnome 41 and Fedora 35 beta are both too new to Anki. I will wait till oktober 28 when fedora 35 is launched.
Thanks for your answer.

1 Like

I’m surprised that did not help, as the error you posted appears to be specific to your distro: Third party Linux packages and source builds are not supported - Frequently Asked Questions

When trying a binary build, please make sure you remove the system version first.