eshapard / AnkiHabitica

Anki 2.0/2.1 add-on for use with HabitRPG. Automatically scores habits when you reach the end of your Anki timebox and when you review all cards in a deck.
GNU General Public License v3.0
197 stars 31 forks source link

Error report #29

Closed ghost closed 6 years ago

ghost commented 8 years ago

Traceback (most recent call last): File "aqt/main.pyc", line 629, in keyPressEvent File "aqt/reviewer.pyc", line 313, in _keyHandler File "aqt/reviewer.pyc", line 271, in _answerCard File "anki/hooks.pyc", line 58, in repl File "/Users/alw/Documents/Anki/addons/ankihabitica.py", line 545, in hrpg_realtime if compare_score_to_db(): File "/Users/alw/Documents/Anki/addons/ankihabitica.py", line 349, in compare_score_to_db ah.config[ah.settings.profile]['oldscore'] = ah.config[ah.settings.profile]['score'] # Capture old score KeyError: 'score'

eshapard commented 8 years ago

Looks like you didn't have a score in your config file... if everything else is working correctly, this should take care of itself as you use the addon and earn points. Has this resolved itself.

ghost commented 8 years ago

It wouldn't do anything. I had to uninstall the plugin.

okkes commented 7 years ago

I had this problem as well. The problem was solved by simply restarting Anki again. (I can't assure you whether anything else after this steps works fully and correctly since I have yet to find out the things I can do with this plugin)

The steps:

eshapard commented 7 years ago

okkes, If those are the steps you took, you don't seem to have set up the addon... go to Tools >> AnkiHabitica >> Setup Anki Habitica

okkes commented 7 years ago

If by setting up the addon means inserting the token and psw thing, then yes, I did that already. I did however forgot to mention that in my steps, my bad for that.