Repository navigation
Description
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
- 添加新单词
- 点击query报错
- See error
Expected behavior
A clear and concise description of what you expected to happen.
Desktop (please complete the following information):
- OS: win11
- Version anki版本2.1.54 (b6a7760c)
Additional context
错误
发生了一个错误。请在启动Anki时按住「Shift」键临时禁用插件加载。 如仅在插件启用时出错,请使用「工具」>「插件」功能禁用部分插件后重启Anki, 请重复上述步骤直至找到引起错误的插件。 找到引起错误的插件后,请反馈给插件作者。 调试信息:
Anki 2.1.54 (b6a7760c) Python 3.9.7 Qt 6.3.1 PyQt 6.3.1
Platform: Windows 10
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2022-09-27 11:57:47
Caught exception:
Traceback (most recent call last):
File "C:\Users\zero617\AppData\Roaming\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'

Activity
Buliet commentedon Oct 12, 2022
临时解决:先添加完单词,再选中后通过标题栏,进行query
如果 只是反馈错误,请无视临时解决
SOREMUZ commentedon Nov 5, 2022
我也有同样的错误 请问你解决了吗?
oolongcha024 commentedon Sep 6, 2023
我也遇到了类似的问题,具体表现为
common.py文件报错。经过尝试我发现了解决方法,具体操作如下:解决方案
运行环境
I also have a same problem that file "common.py" has some mistakes. Finally, I have found the solution.
Solution
Environment
SOREMUZ commentedon Sep 6, 2023
你好,已经有好心人修复这个插件了,请在这里安装https://ankiweb.net/shared/info/103636257