open-spaced-repetition / fsrs4anki-helper

An Anki add-on that supports Postpone & Advance & Load Balance & Easy Days & Disperse Siblings & Flatten
https://ankiweb.net/shared/info/759844606
MIT License
211 stars 17 forks source link

[BUG] File "anki.decks", line 308, in config_dict_for_deck_id TypeError: argument of type 'NoneType' is not iterable #494

Open Korbells opened 2 days ago

Korbells commented 2 days ago

Describe the bug When trying to use "reschedule all cards" an error pops up saying "An Anki encountered a problem. Please follow the troubleshooting steps.

Add-ons possibly involved: ⁨FSRS Helper Postpone Advance Load Balance Easy Days Disperse Siblings⁩"

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Tools'
  2. Click on 'FSRS Helper'
  3. Scroll down to 'Reschedule All Cards'
  4. See error

Expected behavior All cards to be rescheduled Debug Info Anki 24.10 (23b7d636) (ao) Python 3.9.18 Qt 6.6.2 PyQt 6.6.1 Platform: Windows-10-10.0.22631

Traceback (most recent call last): File "aqt.taskman", line 144, in _on_closures_pending File "aqt.taskman", line 88, in File "C:\Users\Name\AppData\Roaming\Anki2\addons21\759844606\schedule\reschedule.py", line 243, in on_done finish_text = future.result() File "concurrent.futures._base", line 439, in result File "concurrent.futures._base", line 391, in __get_result File "concurrent.futures.thread", line 58, in run File "C:\Users\Name\AppData\Roaming\Anki2\addons21\759844606\schedule\reschedule.py", line 249, in lambda: reschedule_background( File "C:\Users\Name\AppData\Roaming\Anki2\addons21\759844606\schedule\reschedule.py", line 361, in reschedulebackground for cid, did, , desired_retention, maximum_interval in cards: File "C:\Users\NameAppData\Roaming\Anki2\addons21\759844606\schedule\reschedule.py", line 351, in fsrs.DM.config_dict_for_deck_id(x[1])["desiredRetention"], File "anki.decks", line 308, in config_dict_for_deck_id TypeError: argument of type 'NoneType' is not iterable

===Add-ons (active)=== (add-on provided name [Add-on folder, installed at, version, is config changed]) FSRS Helper Postpone Advance Load Balance Easy Days Disperse Siblings ['759844606', 2024-11-15T04:46, 'None', ''] Review Heatmap ['1771074083', 2022-06-30T03:43, 'None', '']

===IDs of active AnkiWeb add-ons=== 1771074083 759844606

===Add-ons (inactive)=== (add-on provided name [Add-on folder, installed at, version, is config changed]) AnkiBrain AnkiChatGPT - GPT-4 GPT 35 with auto-cards and document analysis ['1915225457', 2024-09-06T01:58, 'None', ''] AnkiConnect ['2055492159', 2024-11-07T02:34, 'None', mod] AwesomeTTS - Add speech to your flashcards ['1436550454', 2024-09-14T08:04, 'None', ''] Beautify-Anki 20 mizmu ['1116770498', 2023-10-31T19:51, 'None', ''] HyperTTS - Add speech to your flashcards ['111623432', 2024-10-04T04:54, 'None', mod] Kimchi Reader Anki Addon ['1844914046', 2024-07-05T23:39, 'None', ''] Multiple Choice for Anki ['1566095810', 2023-11-17T21:59, 'None', mod] anki-forvo-dl - Forvo Pronunciation Downloader fully automatic ['858591644', 2024-08-10T04:15, 'None', '']

Environment

L-M-Sherlock commented 1 day ago

Could you reproduce it in Anki 24.11? Please share your collection with me that I can reproduce this bug and try to fix it.

Korbells commented 1 day ago

I tried it, the same error occurs.

Here is my collection. collection-2024-11-16@11-59-05.zip

Thank you for your support!

Here is the debug info:

Anki 24.11 (97e6b3d3) (ao) Python 3.9.18 Qt 6.6.2 PyQt 6.6.1 Platform: Windows-10-10.0.22631

Traceback (most recent call last): File "aqt.taskman", line 144, in _on_closures_pending File "aqt.taskman", line 88, in File "C:\Users\Name\AppData\Roaming\Anki2\addons21\759844606\schedule\reschedule.py", line 243, in on_done finish_text = future.result() File "concurrent.futures._base", line 439, in result File "concurrent.futures._base", line 391, in __get_result File "concurrent.futures.thread", line 58, in run File "C:\Users\Name\AppData\Roaming\Anki2\addons21\759844606\schedule\reschedule.py", line 249, in lambda: reschedule_background( File "C:\Users\Name\AppData\Roaming\Anki2\addons21\759844606\schedule\reschedule.py", line 361, in reschedulebackground for cid, did, , desired_retention, maximum_interval in cards: File "C:\Users\Name\AppData\Roaming\Anki2\addons21\759844606\schedule\reschedule.py", line 351, in fsrs.DM.config_dict_for_deck_id(x[1])["desiredRetention"], File "anki.decks", line 308, in config_dict_for_deck_id TypeError: argument of type 'NoneType' is not iterable

===Add-ons (active)=== (add-on provided name [Add-on folder, installed at, version, is config changed]) FSRS Helper Postpone Advance Load Balance Easy Days Disperse Siblings ['759844606', 2024-11-15T04:46, 'None', ''] Review Heatmap ['1771074083', 2022-06-30T03:43, 'None', '']

===IDs of active AnkiWeb add-ons=== 1771074083 759844606

===Add-ons (inactive)=== (add-on provided name [Add-on folder, installed at, version, is config changed]) AnkiBrain AnkiChatGPT - GPT-4 GPT 35 with auto-cards and document analysis ['1915225457', 2024-09-06T01:58, 'None', ''] AnkiConnect ['2055492159', 2024-11-07T02:34, 'None', mod] AwesomeTTS - Add speech to your flashcards ['1436550454', 2024-09-14T08:04, 'None', ''] Beautify-Anki 20 mizmu ['1116770498', 2023-10-31T19:51, 'None', ''] HyperTTS - Add speech to y

our flashcards ['111623432', 2024-10-04T04:54, 'None', mod] Kimchi Reader Anki Addon ['1844914046', 2024-07-05T23:39, 'None', ''] Multiple Choice for Anki ['1566095810', 2023-11-17T21:59, 'None', mod] anki-forvo-dl - Forvo Pronunciation Downloader fully automatic ['858591644', 2024-08-10T04:15, 'None', '']

L-M-Sherlock commented 1 day ago
image

You collection has a non-existent deck. Please check the database.

image