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.
Whenever I try to score my Habitica backlog or start study a deck I get this or a similar error. It also used to happen when I started Anki but turning off scoring on profile load fixed this.
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 to the add-on author.
Debug info:
Anki 2.1.54 (b6a7760c) Python 3.9.7 Qt 6.3.1 PyQt 6.3.1
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2023-05-13 16:23:59
Caught exception:
Traceback (most recent call last):
File "C:\Users\alexg\AppData\Roaming\Anki2\addons21\1758045507__init.py", line 625, in score_backlog
if compare_score_to_db():
File "C:\Users\alexg\AppData\Roaming\Anki2\addons21\1758045507__init__.py", line 317, in compare_score_to_db
db_score = calculate_db_score(start_date)
File "C:\Users\alexg\AppData\Roaming\Anki2\addons21\1758045507\init__.py", line 357, in calculate_db_score
db_decks = int(db_helper.decks_count(start_date) *
File "C:\Users\alexg\AppData\Roaming\Anki2\addons21\1758045507\db_helper.py", line 163, in decks_count
cardsDue = [(-nDays, mw.col.db.scalar("""
File "C:\Users\alexg\AppData\Roaming\Anki2\addons21\1758045507\db_helper.py", line 163, in
cardsDue = [(-nDays, mw.col.db.scalar("""
File "anki.dbproxy", line 82, in scalar
File "anki.dbproxy", line 61, in _query
File "anki._backend", line 82, in db_query
File "anki._backend", line 106, in _db_command
anki.errors.LocalizedError: JsonError("data did not match any variant of untagged enum SqlValue")
Whenever I try to score my Habitica backlog or start study a deck I get this or a similar error. It also used to happen when I started Anki but turning off scoring on profile load fixed this.
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 to the add-on author. Debug info: Anki 2.1.54 (b6a7760c) Python 3.9.7 Qt 6.3.1 PyQt 6.3.1 Platform: Windows 10 Flags: frz=True ao=True sv=2 Add-ons, last update check: 2023-05-13 16:23:59
Caught exception: Traceback (most recent call last): File "C:\Users\alexg\AppData\Roaming\Anki2\addons21\1758045507__init.py", line 625, in score_backlog if compare_score_to_db(): File "C:\Users\alexg\AppData\Roaming\Anki2\addons21\1758045507__init__.py", line 317, in compare_score_to_db db_score = calculate_db_score(start_date) File "C:\Users\alexg\AppData\Roaming\Anki2\addons21\1758045507\init__.py", line 357, in calculate_db_score db_decks = int(db_helper.decks_count(start_date) * File "C:\Users\alexg\AppData\Roaming\Anki2\addons21\1758045507\db_helper.py", line 163, in decks_count cardsDue = [(-nDays, mw.col.db.scalar(""" File "C:\Users\alexg\AppData\Roaming\Anki2\addons21\1758045507\db_helper.py", line 163, in
cardsDue = [(-nDays, mw.col.db.scalar("""
File "anki.dbproxy", line 82, in scalar
File "anki.dbproxy", line 61, in _query
File "anki._backend", line 82, in db_query
File "anki._backend", line 106, in _db_command
anki.errors.LocalizedError: JsonError("data did not match any variant of untagged enum SqlValue")