Cannot reach deck options

Hello, whenever I click on the options of a certain deck it gives out this error. I checked the database and it said that it is optimized. Also there is another error occurring when I try opening up preferences. Help?
Update: Now my whole collection bugged. I get no new cards in any deck showing for today, even if I have them in the deck, not suspended and I haven’t done them today. Also when I review cards the buttons for SRS (again, hard, good, easy) are all showing an interval of 1 day.

The deck options 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.4 Qt 5.15.3 PyQt 5.15.6
Platform: Linux
Flags: frz=False ao=False sv=2

Caught exception:
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’
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’

The preferences 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.4 Qt 5.15.3 PyQt 5.15.6
Platform: Linux
Flags: frz=False ao=False sv=2

Caught exception:
File “/usr/share/anki/aqt/main.py”, line 882, 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’

Your Anki version was released in August 2019. Try a newer version to see if the error persists.

4 Likes