Error when attempting to study custom deck

Hi all,

I hope everyone’s staying safe and healthy :slight_smile:

Recently, I’ve noticed that I am unable to use Custom Decks properly. Here is what happens:

  1. I add cards into the custom deck
  2. press ‘show answer’
  3. immediately encounter the error below
  4. closing the error window and pressing ‘show answer’ brings the error back up

Error message: 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-on support site.
Debug info:
Anki 2.1.22 (0ecc189a) Python 3.8.0 Qt 5.14.1 PyQt 5.14.1
Platform: Windows 10
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2020-06-27 10:17:37
Caught exception:
Traceback (most recent call last):
File “aqt\webview.py”, line 446, in handler
File “aqt\reviewer.py”, line 542, in _onTypedAnswer
File “<C:\Program Files\Anki\decorator.pyc:decorator-gen-8>”, line 2, in _showAnswer
File “lib\site-packages\anki\hooks.py”, line 666, in decorator_wrapper
File “lib\site-packages\anki\hooks.py”, line 663, in repl
File “C:\Users\Clayton\AppData\Roaming\Anki2\addons21\1374772155\main.py”, line 233, in onShowAnswer
return _old(self)
File “aqt\reviewer.py”, line 245, in _showAnswer
File “aqt\reviewer.py”, line 600, in _showEaseButtons
File “aqt\reviewer.py”, line 636, in _answerButtons
File “aqt\reviewer.py”, line 620, in _defaultEase
File “lib\site-packages\anki\sched.py”, line 107, in answerButtons
File “lib\site-packages\anki\sched.py”, line 376, in _lrnConf
File “lib\site-packages\anki\sched.py”, line 827, in _newConf
KeyError: ‘delays’

As instructed in the error message, I tried again with all add-ons disabled. Using the same steps, I encountered the following error:

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.22 (0ecc189a) Python 3.8.0 Qt 5.14.1 PyQt 5.14.1
Platform: Windows 10
Flags: frz=True ao=False sv=1
Add-ons, last update check: 2020-06-27 10:17:37

Caught exception:
Traceback (most recent call last):
File “aqt\webview.py”, line 446, in handler
File “aqt\reviewer.py”, line 542, in _onTypedAnswer
File “aqt\reviewer.py”, line 245, in _showAnswer
File “aqt\reviewer.py”, line 600, in _showEaseButtons
File “aqt\reviewer.py”, line 636, in _answerButtons
File “aqt\reviewer.py”, line 620, in _defaultEase
File “lib\site-packages\anki\sched.py”, line 107, in answerButtons
File “lib\site-packages\anki\sched.py”, line 376, in _lrnConf
File “lib\site-packages\anki\sched.py”, line 827, in _newConf
KeyError: ‘delays’

I did Tools > Check Database, which did not solve the problem.

This occurs with all card types.

I appreciate any help. Thanks!

Please delete all custom study/filtered decks you have, and then make sure your AnkiDroid is up to date to prevent this from happening in the future.

3 Likes

Hi, thanks for looking into the issue for me.

I’m on version 2.1.22 which the Anki website lists as “a recent stable release”, with newer versions potentially not supporting certain add-ons. Do I need to be on a more recent version?

Thanks.

He told you to make sure AnkiDroid is up to date, not Anki (for desktop). As far as I know, AnkiDroid does not have addons.

1 Like

My mistake, I misread that.

To be clear, I am having this issue in the windows desktop Anki client. I recently updated Ankidroid and my custom deck has been empty. Custom decks have always worked fine in Ankidroid. The error in the windows client persists. The error message does look slightly different, but I’m not sure if this is significant:

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-on support site.

Debug info:

Anki 2.1.22 (0ecc189a) Python 3.8.0 Qt 5.14.1 PyQt 5.14.1

Platform: Windows 10

Flags: frz=True ao=True sv=1

Add-ons, last update check: 2020-06-29 19:05:02

Caught exception:

Traceback (most recent call last):

File “aqt\webview.py”, line 446, in handler

File “aqt\reviewer.py”, line 542, in _onTypedAnswer

File “<C:\Program Files\Anki\decorator.pyc:decorator-gen-8>”, line 2, in _showAnswer

File “lib\site-packages\anki\hooks.py”, line 666, in decorator_wrapper

File “lib\site-packages\anki\hooks.py”, line 663, in repl

File “C:\Users\Clayton\AppData\Roaming\Anki2\addons21\1374772155\main.py”, line 240, in onShowAnswer

ret = _old(self)

File “aqt\reviewer.py”, line 245, in _showAnswer

File “aqt\reviewer.py”, line 600, in _showEaseButtons

File “aqt\reviewer.py”, line 636, in _answerButtons

File “aqt\reviewer.py”, line 620, in _defaultEase

File “lib\site-packages\anki\sched.py”, line 107, in answerButtons

File “lib\site-packages\anki\sched.py”, line 374, in _lrnConf

File “lib\site-packages\anki\sched.py”, line 847, in _lapseConf

KeyError: ‘delays’

Thanks again.

2 Likes

Quick update: I erroneously thought emptying a custom deck was the same as deleting it. I actually deleted the empty custom deck that I had and the problem is solved. Thank you both very much for your wisdom