hgiesel / closet

The Web Framework for Flashcards
https://closetengine.com
GNU General Public License v3.0
65 stars 6 forks source link

2.1.54 qt 5 still not working #103

Closed AnKingMed closed 2 years ago

AnKingMed commented 2 years ago

Describe the bug Error code on starting Anki. Add-on doesn't work

⁨Traceback (most recent call last): File "aqt.addons", line 244, in loadAddons File "/Users/Nick/Library/Application Support/Anki2/addons21/272311064/init.py", line 1, in from .src import init File "/Users/Nick/Library/Application Support/Anki2/addons21/272311064/src/init.py", line 10, in from .models import init_models_dialog File "/Users/Nick/Library/Application Support/Anki2/addons21/272311064/src/models.py", line 7, in from ..gui.model_settings import ModelSettings File "/Users/Nick/Library/Application Support/Anki2/addons21/272311064/gui/model_settings.py", line 5, in from .forms.qt5.model_settings_ui import Ui_Settings ModuleNotFoundError: No module named '272311064.gui.forms.qt5'

AnKingMed commented 2 years ago

@kleinerpirat pinging you on this one as it seems the new update didn't quite work. Not sure if I should make a new issue or just post on the closed one.

kleinerpirat commented 2 years ago

@hgiesel

Quite odd, but it looks like your package didn't include these folders. They are created with npm run build. Does your pack script (or whatever you use for AnkiWeb) do anything differently?

AnKingMed commented 2 years ago

I've had multiple people report the same error to me

kleinerpirat commented 2 years ago

Yeah, that's to be expected - it affects 100% of users (Qt5 and Qt6).

The issue is that the package Henrik uploaded to AnkiWeb didn't include the folders for the different Qt versions. They're created with the build script used for development and testing, but for some reason they weren't shipped in the .ankiaddon package.

BEST8OY commented 2 years ago

https://github.com/hgiesel/closet/issues/102 Henrik was going to fix it two days ago. Maybe something happened! We should wait I suppose.

hgiesel commented 2 years ago

I just updated. It hope that solves it :)

kleinerpirat commented 2 years ago

I just downloaded your update. Both qt folders are now shipped, but the files model_settings_ui.py and settings_ui.py are empty in the qt5 folder.

hgiesel commented 2 years ago

Ok, I think I figured out. It was basically a problem with my python install and pyuic5 was failing quietly. I've updated again, and this time I'm pretty confident it works :)