Skip to content

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

Description

@grahamas

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions