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

[BUG] Anki says kanji add-on doesn't load #211

Open
grahamas opened this issue Feb 28, 2024 · 0 comments
Open

[BUG] Anki says kanji add-on doesn't load #211

grahamas opened this issue Feb 28, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@grahamas
Copy link

Describe the bug
Upon opening Anki, a window pops up saying "The following add-ons failed to load: - Migaku Kanji GOD"

Despite the pop-up, the add-on seems to work

To Reproduce
Steps to reproduce the behavior:

  1. Open Anki

Expected behavior
That pop up should not appear.

Desktop (please complete the following information):

  • OS and Version: Arch; Linux-6.7.6-arch1-1-x86_64-with-glibc2.39
  • Anki Version: Anki 23.12.1 (1a1d4d54) (src) (ao)

Additional context
It's probably a Qt version problem? Since I think Arch has a later version than e.g. Ubuntu.

Copied debug info:

Anki 23.12.1 (1a1d4d54) (src) (ao)
Python 3.11.7 Qt 6.6.2 PyQt 6.6.1
Platform: Linux-6.7.6-arch1-1-x86_64-with-glibc2.39

When loading Migaku Kanji GOD:
Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/aqt/addons.py", line 245, in loadAddons
import(addon.dir_name)
File "/home/graham/.local/share/Anki2/addons21/Migaku Kanji GOD/init.py", line 2, in
from . import kanji
File "/home/graham/.local/share/Anki2/addons21/Migaku Kanji GOD/kanji.py", line 16, in
from .kanji_confirm_dialog import KanjiConfirmDialog
File "/home/graham/.local/share/Anki2/addons21/Migaku Kanji GOD/kanji_confirm_dialog.py", line 8, in
from .lookup_window import LookupWindow
File "/home/graham/.local/share/Anki2/addons21/Migaku Kanji GOD/lookup_window.py", line 15, in
key_sequence_txt = key_sequence.toString(QKeySequence.NativeText)
^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'QKeySequence' has no attribute 'NativeText'

@grahamas grahamas added the bug Something isn't working label Feb 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant