kaegi/MorphMan

2.1.55 QT6 problem

yaoberh opened this issue · 5 comments

When loading '⁨Morphman for Anki 2155⁩':
⁨Traceback (most recent call last):
  File "/home/yaoberh/pyenv/lib/python3.10/site-packages/aqt/addons.py", line 247, in loadAddons
    __import__(addon.dir_name)
  File "/home/yaoberh/.local/share/Anki2/addons21/1032435232/__init__.py", line 99, in <module>
    main()
  File "/home/yaoberh/.local/share/Anki2/addons21/1032435232/__init__.py", line 47, in main
    morphmanSubMenu = QMenu("MorphMan", mw)
TypeError: arguments did not match any overloaded call:
  QMenu(parent: QWidget = None): argument 1 has unexpected type 'str'
  QMenu(str, parent: QWidget = None): argument 2 has unexpected type 'AnkiQt'
⁩

Also doesn't work for me with 2.1.55 QT5

can confirm not working on anything above 2.1.49
no 2.1.54
no 2.1.55 QT5 or QT6

This combination is working for me:

kaegi/MorphMan tag: v5.0-qt6-alpha.1 (qt6-migration branch)
Anki ⁨2.1.55 Windows Qt6
ianki/MecabUnidic 3.1.0 (installed from MecabUnidic3.1.0.ankiaddon file)

@landonepps thank you for updating things to work in Qt 6!