Symbols error when switching from MacOS to windows11

Hello, chnaged form mac to windows 11 and cant activate my addons- this error is recieved for symbols:
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 23.10.1 (fac9e0ee) Python 3.9.15 Qt 6.6.0 PyQt 6.6.0
Platform: Windows-10-10.0.22621
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2023-12-13 17:47:31
Add-ons possibly involved: ⁨Symbols⁩

Caught exception:
Traceback (most recent call last):
File “aqt.editor”, line 246, in on_activated
File “C:\Users\ilanit\AppData\Roaming\Anki2\addons21\1461102936\”, line 36, in onSymbolButton
AttributeError: ‘QMenu’ object has no attribute ‘exec_’

Thank you!

This can be solved by using Notepad to edit line 36 of the file mentioned in the error message, to change exec_ to just exec

I tried it and it works.

I’ll do a PR on the author’s Github page, and hopefully he will update it.

Edit: it does not seem like the author is actively maintaining it. AnKing left an issue on the author’s Github page in October and there was no reply. Also, the version on Github differs from the add-on download version.

1 Like

Thank you for the reply, unfortunately i’m very technologically challenged is there a way to expalin how i would do this in laymen’s terms? no worries if not :slight_smile:

At the bottom of your computer screen in Windows, in the taskbar, there is a text field which might be labeled “Search”. Input notepad there, and then in the popup, click on Notepad app.

In Notepad, select File / Open from the menu, and then copy-paste the exact filename from the error message: C:\Users\ilanit\AppData\Roaming\Anki2\addons21\1461102936\
and click on the Open button.

[For other users reading this, the filename will be the same except for the part between Users and AppData, which will be your own username, which you can see in your own error message.]

When the contents of the file appear in Notepad, just hit the down-arrow key 35 times until you reach the line that says:

Change exec_ to exec without the underscore. Then select File / Save from the menu.

Then restart Anki.


Thank you so much!!

1 Like