Getting error when trying to change Anki Options

When trying to access Anki options (or dech options) getting following error. It suggest to do “check database” - done this several times, database is good. The problem still persists.
Please help!

"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.6 Qt 5.15.3 PyQt 5.15.6
Platform: Linux (Ubuntu 22.04.2)
Flags: frz=False ao=False sv=1

Caught exception:
File “/usr/share/anki/aqt/deckbrowser.py”, line 213, in
a.triggered.connect(lambda b, did=did: self._options(did))
File “/usr/share/anki/aqt/deckbrowser.py”, line 242, in _options
self.mw.onDeckConf()
File “/usr/share/anki/aqt/main.py”, line 869, in onDeckConf
aqt.deckconf.DeckConf(self, deck)
File “/usr/share/anki/aqt/deckconf.py”, line 25, in init
self.setupConfs()
File “/usr/share/anki/aqt/deckconf.py”, line 49, in setupConfs
self.loadConfs()
File “/usr/share/anki/aqt/deckconf.py”, line 66, in loadConfs
self.onConfChange(startOn)
File “/usr/share/anki/aqt/deckconf.py”, line 89, in onConfChange
self.loadConf()
File “/usr/share/anki/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’

Please update this very old Anki version using a download from the Anki website. It is a known issue with this outdated version (likely distributed through package managers), that does not occur in recent versions.

1 Like

Ok, downloaded the new version from the website (has to be Qt5 as QT6 doesn’t seem to work). Installed the new anki and now able to edit features. But now I don’t see any decks - it’s empty. Imported the database from previous anki (no errors), but still app doesn’t show any decks to study … :(((

https://faqs.ankiweb.net/when-problems-occur.html

Please also see Blank Main Window - Anki Manual

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.