Error anki (ubuntu)

hello I’m getting this error when i try and go into my options for a specific deck.
not quite sure what to do or how to fix it. I’ve also been having issues with add-ons. i had to delete them all for anki to work properly.

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/webview.py", line 27, in cmd
    return json.dumps(self.onCmd(str))
  File "/usr/share/anki/aqt/webview.py", line 87, in _onCmd
    return self._onBridgeCmd(str)
  File "/usr/share/anki/aqt/webview.py", line 386, in _onBridgeCmd
    return self.onBridgeCmd(cmd)
  File "/usr/share/anki/aqt/overview.py", line 43, in _linkHandler
    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'

after looking up some stuff, it looks like the anki repo is out of date.
i had to install the 2.1.51-qt6 version of anki on the website. the qt5 version gave me a blank screen. due to incompatible libraries.

anyway i think everything is fixed now.

1 Like