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 on startup #86

Closed bavogit closed 5 years ago

bavogit commented 5 years ago

Hey there!

First of all I would like to thank you for this amazing add on. I'd love to get this to work!

I just installed the add on and am getting the error below. I tried both with entering my Habitica API information and without. Also when doing a fresh install I will get this error.

Thanks in advance!

Error An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed. If the issue only occurs when add-ons are enabled, please use the Tools>Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem. When you've discovered the add-on that is causing the problem, please report the issue on the add-ons section of our support site. Debug info: Anki 2.1.15 (442df9d6) Python 3.6.7 Qt 5.12.1 PyQt 5.11.3 Platform: Mac 10.15.1 Flags: frz=True ao=True sv=1 Add-ons possibly involved: Anki Habitica for 21

Caught exception: File "aqt/progress.py", line 72, in handler File "aqt/main.py", line 136, in setupProfile File "aqt/main.py", line 276, in loadProfile File "anki/hooks.py", line 29, in runHook File "/Users/bavove/Library/Application Support/Anki2/addons21/1758045507/init.py", line 709, in grab_profile ready_or_not() File "/Users/bavove/Library/Application Support/Anki2/addons21/1758045507/init.py", line 483, in ready_or_not initialize_habitica_class() File "/Users/bavove/Library/Application Support/Anki2/addons21/1758045507/init.py", line 429, in initialize_habitica_class ah.habitica = habitica_class.Habitica() File "/Users/bavove/Library/Application Support/Anki2/addons21/1758045507/habitica_class.py", line 48, in init self.init_update() # check habits, grab user object, get avatar File "/Users/bavove/Library/Application Support/Anki2/addons21/1758045507/habitica_class.py", line 57, in init_update self.check_anki_habit() File "/Users/bavove/Library/Application Support/Anki2/addons21/1758045507/habitica_class.py", line 237, in check_anki_habit elif exists: <class 'UnboundLocalError'>: local variable 'exists' referenced before assignment

71e6fd52 commented 5 years ago

Thanks