-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add-on Startup Failed #80
Comments
The following add-ons failed to load: |
@flippantbird Change that line to @Shirajuki They've moved all Qt modules to aqt now. |
Perfect, thanks!! |
@flippantbird The issue still exists in the codebase so keep it open pls |
I've also fixed the config window but that isn't a one line change. I'll make a PR if time allows. |
I had luck resolving this by replacing "PyQt5" with "PyQt6" in __init__.py, and then using the script found here (https://stackoverflow.com/a/72658216/3261260) to replace all of the Qt5 enums with the Qt6 versions. No crashes on startup or when opening the configuration menu. |
This issue is still present in Anki version 23.10.1 |
Hi! How are you? I'm here because I'm having this issue as well, and I'm not much of a developer so I don't know how to fix it, sadly. Someone from Anki's Discord server told me I should ask you, so here it goes: could you please upload the code of your updated init.py file to Pastebin? Thanks! |
Anki 23.10 (51a10f09) Python 3.9.15 Qt 6.5.3 PyQt 6.5.3
Platform: macOS-14.0-x86_64-i386-64bit
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2023-11-06 06:16:37
When loading Anki-redesign:
Traceback (most recent call last):
File "aqt.addons", line 244, in loadAddons
File "/Users/aarondesouza/Library/Application Support/Anki2/addons21/308574457/init.py", line 11, in
from PyQt5.QtWidgets import QWidget
ModuleNotFoundError: No module named 'PyQt5'
The text was updated successfully, but these errors were encountered: