First I noticed a few addons giving up the ghost, but later on I noticed that the deck settings don't want to open anymore simply giving this error:
Code: Select all
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.5 Qt 5.15.5 PyQt 5.15.6
Platform: Linux
Flags: frz=False ao=False sv=2
Caught exception:
File "/usr/lib/python3.10/site-packages/aqt/deckconf.py", line 89, in onConfChange
self.loadConf()
File "/usr/lib/python3.10/site-packages/aqt/deckconf.py", line 175, in loadConf
f.lrnFactor.setValue(c['initialFactor']/10.0)
<class 'TypeError'>: setValue(self, int): argument 1 has unexpected type 'float'
Caught exception:
File "/usr/lib/python3.10/site-packages/aqt/deckbrowser.py", line 213, in <lambda>
a.triggered.connect(lambda b, did=did: self._options(did))
File "/usr/lib/python3.10/site-packages/aqt/deckbrowser.py", line 242, in _options
self.mw.onDeckConf()
File "/usr/lib/python3.10/site-packages/aqt/main.py", line 868, in onDeckConf
aqt.deckconf.DeckConf(self, deck)
File "/usr/lib/python3.10/site-packages/aqt/deckconf.py", line 25, in __init__
self.setupConfs()
File "/usr/lib/python3.10/site-packages/aqt/deckconf.py", line 49, in setupConfs
self.loadConfs()
File "/usr/lib/python3.10/site-packages/aqt/deckconf.py", line 66, in loadConfs
self.onConfChange(startOn)
File "/usr/lib/python3.10/site-packages/aqt/deckconf.py", line 89, in onConfChange
self.loadConf()
File "/usr/lib/python3.10/site-packages/aqt/deckconf.py", line 175, in loadConf
f.lrnFactor.setValue(c['initialFactor']/10.0)
<class 'TypeError'>: setValue(self, int): argument 1 has unexpected type 'float'
One way to "fix" this that I came up with was to use the python_single_target_python3_9 useflag for Anki, but then found out that that flag would apply to way more applications than just Anki.
I'm aware that the direction of the build system of Anki is a bit questionable and complicated, but what would it require for Gentoo to bump up the Anki version?
I'm also open for any suggestions on how to get Anki running without upgrading it at all with minimal changes to the rest of the system.
Edit: Looks like the settings menu is also broken and inaccessible


