Dear all,

The fix is quite straight-forward. It looks like python 3.10 became
more stricter to checking types, so setValue function can be tweaked a
bit with forcing type to int e.g.:

f.lrnCutoff.setValue(qc['collapseTime']/60.0)

can be updated to

f.lrnCutoff.setValue(int(qc['collapseTime']/60.0))

There are two files I had to update by myself to fix thye issue with
preferences:
- /usr/share/anki/aqt/preferences.py
- /usr/share/anki/aqt/deckconf.py


Andrii

P.S. I'm aware there are issues with the packaging new version for
anki. So please use this suggested fix at your own risk.

Reply via email to