FastWordQuery icon indicating copy to clipboard operation
FastWordQuery copied to clipboard

Anki 2.1.53 Add-on does not work via GUI in the editor

Open ghost opened this issue 3 years ago • 5 comments

OS: Manjaro KDE (latest stable) - X11

Describe the bug Anki 2.1.53 QT6 on Linux does work but only by querying via shortcut CTRL + Q . If users click over que "Query" button on the editor (GUI) the add-on does not work. Instead, the following error appears:

`Error Debug Information: Anki 2.1.53 (96bacf79) Python 3.9.10 Qt 6.3.0 PyQt 6.3.0 Platform: Linux Flags: frz=True ao=True sv=3 Add-ons, last update check: 2022-05-27 11:16:01 Möglicherweise beteiligte Erweiterungen: ⁨Fast Word Query Multi-threaded queries for words from local or web dictionaries⁩

Caught exception: Traceback (most recent call last): File "/home/m/.local/share/Anki2/addons21/1807206748/common.py", line 159, in onQuery menu.addAction( TypeError: arguments did not match any overloaded call: addAction(self, QIcon, str): argument 1 has unexpected type 'str' addAction(self, QIcon, str, PYQT_SLOT, type: Qt.ConnectionType = Qt.AutoConnection): argument 1 has unexpected type 'str' addAction(self, QIcon, str, Union[QKeySequence, QKeySequence.StandardKey, str, int]): argument 1 has unexpected type 'str' addAction(self, QIcon, str, Union[QKeySequence, QKeySequence.StandardKey, str, int], PYQT_SLOT, type: Qt.ConnectionType = Qt.AutoConnection): argument 1 has unexpected type 'str' addAction(self, str): too many arguments addAction(self, str, Union[QKeySequence, QKeySequence.StandardKey, str, int]): argument 2 has unexpected type 'function' addAction(self, str, PYQT_SLOT, type: Qt.ConnectionType = Qt.AutoConnection): argument 3 has unexpected type 'QtClassProxy' addAction(self, str, Union[QKeySequence, QKeySequence.StandardKey, str, int], PYQT_SLOT, type: Qt.ConnectionType = Qt.AutoConnection): argument 2 has unexpected type 'function' addAction(self, QAction): argument 1 has unexpected type 'str' `

ghost avatar May 28 '22 13:05 ghost

system version: image anki version: image error report: image

faydanube avatar Jul 11 '22 14:07 faydanube

qt6 不兼容的问题,希望早点兼容=,= 目前退回 qt5 的版本正常

faydanube avatar Jul 12 '22 14:07 faydanube

qt6 不兼容的问题,希望早点兼容=,= 目前退回 qt5 的版本正常

image 之前Qt5可以,Qt6不行之后回退,结果还是不行🤦‍♂️

ZER0-Nu1L avatar Sep 10 '22 03:09 ZER0-Nu1L

qt6 不兼容的问题,希望早点兼容=,= 目前退回 qt5 的版本正常

image 之前Qt5可以,Qt6不行之后回退,结果还是不行🤦‍♂️

Anki的版本回退到2.1.49可以解决问题

ZER0-Nu1L avatar Sep 10 '22 04:09 ZER0-Nu1L

qt6 不兼容的问题,希望早点兼容=,= 目前退回 qt5 的版本正常

image 之前Qt5可以,Qt6不行之后回退,结果还是不行🤦‍♂️

Anki的版本回退到2.1.49可以解决问题

是的,我用的2.1.48

faydanube avatar Sep 20 '22 06:09 faydanube