Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addon Error while saving Set Randomizer Notes Settings #126

Open
HadesNinth opened this issue Apr 4, 2020 · 1 comment
Open

Addon Error while saving Set Randomizer Notes Settings #126

HadesNinth opened this issue Apr 4, 2020 · 1 comment

Comments

@HadesNinth
Copy link

MacOS 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 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.23 (de9543ff) Python 3.8.0 Qt 5.13.1 PyQt 5.14.1
Platform: Mac 10.13.6
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2020-03-22 15:58:11
Add-ons possibly involved: ⁨Set Randomizer v22⁩

Caught exception:
Traceback (most recent call last):
File "/Users/user/Library/Application Support/Anki2/addons21/1164532380/src/gui_config/custom/sr_config.py", line 47, in saveCurrentSetting
write_back(settings)
File "/Users/user/Library/Application Support/Anki2/addons21/1164532380/src/gui_config/custom/sr_config.py", line 25, in write_back
setup_models(settings)
File "/Users/user/Library/Application Support/Anki2/addons21/1164532380/src/lib/model_editor.py", line 23, in setup_models
remove_model_template(model)
File "/Users/user/Library/Application Support/Anki2/addons21/1164532380/src/lib/model_editor.py", line 35, in remove_model_template
mw.col.media.syncDelete(front_name)
AttributeError: 'MediaManager' object has no attribute 'syncDelete'

Windows 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 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-04-04 10:38:59

Caught exception:
Traceback (most recent call last):
File "C:\Users\tikhu\AppData\Roaming\Anki2\addons21\1164532380\src\gui_config\custom\sr_config.py", line 47, in saveCurrentSetting
write_back(settings)
File "C:\Users\user\AppData\Roaming\Anki2\addons21\1164532380\src\gui_config\custom\sr_config.py", line 25, in write_back
setup_models(settings)
File "C:\Users\user\AppData\Roaming\Anki2\addons21\1164532380\src\lib\model_editor.py", line 23, in setup_models
remove_model_template(model)
File "C:\Users\user\AppData\Roaming\Anki2\addons21\1164532380\src\lib\model_editor.py", line 35, in remove_model_template
mw.col.media.syncDelete(front_name)
AttributeError: 'MediaManager' object has no attribute 'syncDelete'

This error happens both on macOS (as one user reported in the Addon's comments), and Windows 10. The user experiencing this error was using anki 2.1.23 on macOS, while I experienced this error while using anki 2.1.22 on Windows 10. I checked that I was using the newest addon version. This issue happens even if you don't change any of the settings and just hit save.

Hopes this issue can be resolved.
Cheers,
Hades.

@hgiesel
Copy link
Owner

hgiesel commented May 4, 2020

Thanks for the report.
I am working on it, however I cannot tell when it will be done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants