Unexpected type 'float'?

Hi,
I am trying to export my deck to Anki web but I get the following python error [1]. Any idea how I can figue out what exactly is the problematic field? Have in mind that my deck consists linux commands for a certification exam so there are special characters in the fields…
Cheers,
Ivan
[1]

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=1

Caught exception:
  File "/usr/share/anki/aqt/deckbrowser.py", line 213, in <lambda>
    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'

I have solved the problem by updating anki-2.1.54-linux-qt6. I hope that info helps someone out there.

4 Likes