Hello,
After some unlucky event i had to import my cards manually, i didn’t know what to do so i copied the old .local/share/Anki2/User content to the new one. Everything seemed to work fine until i tried to edit the options of the decks, (for me it is the place where i can select how many cards i want to be shown each day)
It display this error message:
Anki 2.1.15 (442df9d6) Python 3.10.12 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’
Additional infos:
I have tried to reinstall, to backup cards into a colpkg and then reimport them, to verify database… It didn’t work.
I do not know if it is pertinent but i may have enabled the new scheduler (v2 scheduler ?)
I could maybe export some as text and reimport them but lost of my cards are images, so i don’t want to just export cards as csv…
It is also possible that the anki version is slightly different (switched from ubuntu 20 to ubuntu 22)
All the rest seem to work fine, i can review cards, edit them, add new ones, the only things that doesn’t work is the interface that modify the number of cards i can review
I have made a mistake by copying stuff directly into user folder, but is there something i can do to fix it ?
Anyway, i thank you by advance !