Hello,
I am encountering an issue with an add-on in Anki after an update. Here are the details of the error:
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 problem only occurs when add-ons are enabled, please use the Tools > Add-ons menu to disable some add-ons. Restart Anki until you discover the add-on that causes the problem.
Once this add-on is found, please report the problem on the add-on support site.
Debug info:
Anki 2.1.65 (aa9a734f) Python 3.9.15 Qt 6.4.3 PyQt 6.4.0
Platform: Windows-10-10.0.22631
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2024-07-28 08:26:43
Caught exception:
Traceback (most recent call last):
File âaqt.taskmanâ, line 122, in _on_closures_pending
File âaqt.taskmanâ, line 71, in
File âaqt.taskmanâ, line 90, in wrapped_done
File âaqt.syncâ, line 117, in on_future_done
File âaqt.mainâ, line 1027, in on_collection_sync_finished
File â_aqt.hooksâ, line 4878, in call
File âC:\Users\www_p\AppData\Roaming\Anki2\addons21\759844606\sync_hook.pyâ, line 57, in
sync_did_finish.append(lambda: auto_reschedule(local_rids))
File âC:\Users\www_p\AppData\Roaming\Anki2\addons21\759844606\sync_hook.pyâ, line 50, in auto_reschedule
return fut.result()
File âconcurrent.futures._baseâ, line 446, in result
File âconcurrent.futures._baseâ, line 391, in __get_result
File âconcurrent.futures.threadâ, line 58, in run
File âC:\Users\www_p\AppData\Roaming\Anki2\addons21\759844606\schedule\reschedule.pyâ, line 277, in
lambda: reschedule_background(did, recent, filter_flag, filtered_cids),
File âC:\Users\www_p\AppData\Roaming\Anki2\addons21\759844606\schedule\reschedule.pyâ, line 296, in reschedule_background
deck_parameters = get_deck_parameters(custom_scheduler)
File âC:\Users\www_p\AppData\Roaming\Anki2\addons21\759844606\utils.pyâ, line 234, in get_deck_parameters
deck_parameters.items(), key=lambda item: item[0], reverse=True
UnboundLocalError: local variable âdeck_parametersâ referenced before assignment
Caught exception:
Traceback (most recent call last):
File âaqt.taskmanâ, line 122, in _on_closures_pending
File âaqt.taskmanâ, line 71, in
File âC:\Users\www_p\AppData\Roaming\Anki2\addons21\759844606\schedule\reschedule.pyâ, line 256, in on_done
tooltip(f"{future.result()} in {time.time() - start_time:.2f} seconds")
File âconcurrent.futures._baseâ, line 439, in result
File âconcurrent.futures._baseâ, line 391, in __get_result
File âaqt.taskmanâ, line 122, in _on_closures_pending
File âaqt.taskmanâ, line 71, in
File âaqt.taskmanâ, line 90, in wrapped_done
File âaqt.syncâ, line 117, in on_future_done
File âaqt.mainâ, line 1027, in on_collection_sync_finished
File â_aqt.hooksâ, line 4878, in call
File âC:\Users\www_p\AppData\Roaming\Anki2\addons21\759844606\sync_hook.pyâ, line 57, in
sync_did_finish.append(lambda: auto_reschedule(local_rids))
File âC:\Users\www_p\AppData\Roaming\Anki2\addons21\759844606\sync_hook.pyâ, line 50, in auto_reschedule
return fut.result()
File âconcurrent.futures._baseâ, line 446, in result
File âconcurrent.futures._baseâ, line 391, in __get_result
File âconcurrent.futures.threadâ, line 58, in run
File âC:\Users\www_p\AppData\Roaming\Anki2\addons21\759844606\schedule\reschedule.pyâ, line 277, in
lambda: reschedule_background(did, recent, filter_flag, filtered_cids),
File âC:\Users\www_p\AppData\Roaming\Anki2\addons21\759844606\schedule\reschedule.pyâ, line 296, in reschedule_background
deck_parameters = get_deck_parameters(custom_scheduler)
File âC:\Users\www_p\AppData\Roaming\Anki2\addons21\759844606\utils.pyâ, line 234, in get_deck_parameters
deck_parameters.items(), key=lambda item: item[0], reverse=True
UnboundLocalError: local variable âdeck_parametersâ referenced before assignment
I have tried disabling the add-ons and restarting Anki, but the error persists when certain add-ons are enabled. I also tried reinstalling Anki, but without success.
Thank you for your help in resolving this issue.