Right click paste error

When I right click to post in the Add Card window (the Back field), I get a popup error saying Anki encountered a problem, here is the debug info:

Anki 24.11 (87ccd24e)
Python 3.9.18 Qt 5.15.2 PyQt 5.15.5
Platform: Windows-10-10.0.26100

Traceback (most recent call last):
File “aqt.editor”, line 1631, in contextMenuEvent
File “aqt.editor”, line 1471, in _opened_context_menu_on_image
AttributeError: ‘EditorWebView’ object has no attribute ‘lastContextMenuRequest’

Can’t reproduce on linux. Please try the following and see if your issue persists (especially #2 and #5):

Also, try the following and paste the full log, since it might reveal more info than what you have pasted so far:

This looks like a Qt5-specific issue. Can you try using the Qt6 version?

Also relevant: Consider dropping the Qt5 builds · Issue #3615 · ankitects/anki · GitHub

1 Like

Oh dear, I should work on my reading comprehention. It clearly says qt5 in the log…

I just installed the latest official qt5 build (Version ⁨24.11 (87ccd24e)⁩) and can reproduce the issue. It’s another of several other breakages caused by qt5, see:

Also, the qt5 build is unlikely to be fixed. You really should switch to the qt6 version unless you have a very good reason not to.

Opened a pr for this. It’s up to dae as to whether he’ll release a bugfix qt5 release or drop it entirely

3 Likes