Shirajuki / anki-redesign

Anki redesign - a new lightweight look for Anki
https://ankiweb.net/shared/info/308574457
63 stars 4 forks source link

Add-on Startup Failed #83

Open garyboris opened 3 months ago

garyboris commented 3 months ago

When I installed the add-on, I can't use it.

image

Anki 24.06.3 (d678e393)  (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: Windows-10-10.0.19045

When loading Anki-redesign:
Traceback (most recent call last):
  File "aqt.addons", line 247, in loadAddons
  File "C:\Users\yashi\AppData\Roaming\Anki2\addons21\308574457\__init__.py", line 11, in <module>
    from PyQt5.QtWidgets import QWidget
ModuleNotFoundError: No module named 'PyQt5'

I changed "PyQt5" to "PyQt6" in the file "__init__.py", then i can use the addon. But when I clicked the Anki-redesign button in the tool menu,it poped the error,the error is below:

image

Anki 24.06.3 (d678e393)  (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: Windows-10-10.0.19045

Traceback (most recent call last):
  File "C:\Users\yashi\AppData\Roaming\Anki2\addons21\308574457\utils\dialog.py", line 557, in open_dialog
    dialog = dialog_class(mw)
  File "C:\Users\yashi\AppData\Roaming\Anki2\addons21\308574457\utils\dialog.py", line 91, in __init__
    self.setWindowModality(Qt.ApplicationModal)
AttributeError: type object 'Qt' has no attribute 'ApplicationModal'

===Add-ons (active)===
(add-on provided name [Add-on folder, installed at, version, is config changed])
Anki-redesign ['308574457', 2023-02-05T02:43, 'None', '']

===IDs of active AnkiWeb add-ons===
308574457

===Add-ons (inactive)===
(add-on provided name [Add-on folder, installed at, version, is config changed])