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

Does not work on newer Anki versions #21

Open
Wyzmic opened this issue Nov 15, 2023 · 3 comments
Open

Does not work on newer Anki versions #21

Wyzmic opened this issue Nov 15, 2023 · 3 comments

Comments

@Wyzmic
Copy link

Wyzmic commented Nov 15, 2023

Starting from version 23.10 it stopped working.

@epistularum
Copy link

Error
An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools > Add-ons menu item to disable some add-ons and restart Anki, repeating until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue to the add-on author.
Debug info:
Anki 23.10 (51a10f09) Python 3.11.5 Qt 6.6.0 PyQt 6.6.0
Platform: Linux-6.5.9-arch2-1-x86_64-with-glibc2.38
Flags: frz=False ao=True sv=3
Add-ons, last update check: 2023-11-21 20:04:12
Add-ons possibly involved: ⁨Kanji Grid⁩

Caught exception:
Traceback (most recent call last):
  File "/home/arch/.local/share/Anki2/addons21/909972618/Kanji_grid.py", line 378, in setup
    deckcb.setSizePolicy(QSizePolicy.Expanding, QSizePolicy.Fixed)
                         ^^^^^^^^^^^^^^^^^^^^^
AttributeError: type object 'QSizePolicy' has no attribute 'Expanding'

@clearlyqt
Copy link

same issue, there was a fix in the addon page comments that allows the addon to run, but even with the fix it errors when trying to save the HTML/Image

@JeffreySouza
Copy link

@clearlyqt is referencing this patch https://github.com/joshualiangxy/kanjigrid/blob/733a9b3b0812a385f766a4df5d22f1c03f1103b0/Kanji_grid.py

To make image save work the only change needed is:
QImage.Format_ARGB32 -> QImage.Format.Format_ARGB32

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants