Bugreport: Anki Desktop at Fedora 35

Hello,
the following errors occur reproducibly under the new Fedora 35:

Click on Extras > Settings [Ctrl + P]:

Anki 2.1.15 (442df9d6) Python 3.10.0 Qt 5.15.2 PyQt 5.15.0
Platform: Linux
Flags: frz=False ao=False sv=1

Caught exception:
  File "/usr/share/anki/aqt/main.py", line 881, in onPrefs
    aqt.dialogs.open("Preferences", self)
  File "/usr/share/anki/aqt/__init__.py", line 82, in open
    instance = creator(*args)
  File "/usr/share/anki/aqt/preferences.py", line 25, in __init__
    self.setupCollection()
  File "/usr/share/anki/aqt/preferences.py", line 80, in setupCollection
    f.lrnCutoff.setValue(qc['collapseTime']/60.0)
<class 'TypeError'>: setValue(self, int): argument 1 has unexpected type 'float'

Click on File → Change Profile [Ctrl + Shift + P]:

Anki 2.1.15 (442df9d6) Python 3.10.0 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 314, in unloadProfileAndShowProfileManager
    self.unloadProfile(self.showProfileManager)
  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

Click on Close-Button:

Anki 2.1.15 (442df9d6) Python 3.10.0 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

Why not update to the latest stable or beta version?

2 Likes

Please see Linux Distro Packages - Anki Manual