Error message, popping up Anki notclosing

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/”, line 805, in closeEvent
File “/usr/share/anki/aqt/”, line 311, in unloadProfileAndExit
File “/usr/share/anki/aqt/”, line 286, in unloadProfile
File “/usr/share/anki/aqt/”, line 379, in unloadCollection
File “/usr/share/anki/aqt/”, line 632, in closeAllWindows
File “/usr/share/anki/aqt/”, line 95, in closeAll
File “/usr/share/anki/aqt/”, line 377, in callback
File “/usr/share/anki/aqt/”, line 282, in callback
File “/usr/share/anki/aqt/”, line 291, in _unloadProfile
File “/usr/share/anki/aqt/”, line 184, in save
self.db.execute(sql, self._pickle(self.profile),
File “/usr/share/anki/aqt/”, 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.