vicious-gold
vicious-gold2y ago

Error Occurred in MIGAKU ADD-IN

I downloaded ADD-ON. After I am done installing Anki, open it. Next, navigate to |Tools|>|Add-ons|. then I add ADD-ON. However when restart ANKI, error Occurred. What should I do? Debug infoemation: Anki 23.10 (51a10f09) Python 3.9.15 Qt 6.5.3 PyQt 6.5.3 Platform: Windows-10-10.0.19045 Flags: frz=True ao=True sv=2 Add-ons, last update check: 2023-11-01 15:40:41 It's possible that add-ons are related:⁨Migaku Anki Add-on⁩ Caught exception: Traceback (most recent call last): File "aqt.progress", line 118, in handler File "aqt.main", line 218, in on_window_init File "aqt.main", line 265, in setupProfileAfterWebviewsLoaded File "aqt.main", line 317, in setupProfile File "aqt.main", line 496, in loadProfile File "_aqt.hooks", line 4101, in call File "C:\Users\tsuchiya\AppData\Roaming\Anki2\addons21\1846879528\welcome_wizard.py", line 42, in check_show_modal wizard = cls() File "C:\Users\tsuchiya\AppData\Roaming\Anki2\addons21\1846879528\welcome_wizard.py", line 15, in init self.setWizardStyle(QWizard.ModernStyle) AttributeError: type object 'QWizard' has no attribute 'ModernStyle'
19 Replies
equal-aqua
equal-aqua2y ago
@Migaku Anki Add-On Support
correct-apricot
correct-apricot2y ago
Yep, looks like one for you @Henrik (JST) 😁
typical-coral
typical-coral2y ago
@Migaku Anki Add-On Support I will add on to this, I am able to use Anki with the Migaku addon but I am not able to manage Migaku note type options (ie setting whether furigana should be displayed, etc.) on my custom note types without a crash: Debug info: Anki 23.10 (51a10f09) Python 3.9.15 Qt 6.5.3 PyQt 6.5.3 Platform: Windows-10-10.0.19045 Flags: frz=True ao=True sv=3 Add-ons, last update check: [] Add-ons possibly involved: ⁨Migaku Anki Add-on⁩ Caught exception: Traceback (most recent call last): File "C:\Users[]\AppData\Roaming\Anki2\addons21\1846879528\note_type_dialogs.py", line 299, in <lambda> buttons.append(("Migaku Options", lambda: on_manage_migaku(notes_editor))) File "C:\Users[]\AppData\Roaming\Anki2\addons21\1846879528\note_type_dialogs.py", line 285, in on_manage_migaku dlg = ManageNoteDialog( File "C:\Users[]\AppData\Roaming\Anki2\addons21\1846879528\note_type_dialogs.py", line 94, in init self.load_tmpl() File "C:\Users[]\AppData\Roaming\Anki2\addons21\1846879528\note_type_dialogs.py", line 142, in load_tmpl & ~(Qt.ItemIsEditable | Qt.ItemFlag.ItemIsSelectable) AttributeError: type object 'Qt' has no attribute 'ItemIsEditable'
correct-apricot
correct-apricot2y ago
@ccos @p1226 Could both of you report the version of the addon you're using as described here? 🙂 Just so we have all relevant info ✌️ https://discord.com/channels/752293144917180496/752312043440439366/1125299337447096462
typical-coral
typical-coral2y ago
Migaku Anki Add-on ['1846879528', 2023-10-31T09:53, 'None', mod]
vicious-gold
vicious-goldOP2y ago
What I downloaded is "Download Anki for Windows 10/11 (23.10 Qt6)."
typical-coral
typical-coral2y ago
@Henrik (JST) @Nekyo hey guys, sorry for ping but I’m still not able to use most functionality of the anki addon after a couple weeks. Is a fix for the current version of anki on the horizon? Can’t add syntax, etc. which is a bit debilitating to my workflow. And i can’t/don’t want to downgrade anki without it being extremely disruptive as I have switched to FSRS which is only natively supported in the new version, so I would have to flip flop back to SM2
correct-apricot
correct-apricot2y ago
I will take a look rn, sorry for the delay! I actually cannot reproduce this on my machine, @Henrik (JST) could you also have a look? 🙂
typical-coral
typical-coral2y ago
@Nekyo Thank you for taking a look! Sorry it's not just an easy fix. Just in case, I've put another error report I'm getting below for when I try to use the add syntax button in the browser, just in case that helps. I'm not a programmer so I could be totally off base but could this have anything to do with Qt5 vs Qt6? I noticed both p1226 and I are using the 23.10 Qt6 version so just a shot in the dark as to why you wouldn't be able to reproduce on your machine, sorry if it's a dumb suggestion. Debug info: Anki 23.10 (51a10f09) Python 3.9.15 Qt 6.5.3 PyQt 6.5.3 Platform: Windows-10-10.0.19045 Flags: frz=True ao=True sv=3 Add-ons, last update check: 2023-11-15 23:59:16 Add-ons possibly involved: ⁨Migaku Anki Add-on⁩ Caught exception: Traceback (most recent call last): File "C:\Users\AppData\Roaming\Anki2\addons21\1846879528\browser.py", line 13, in <lambda> lambda: AddRemoveSyntaxDialog.show_modal( File "C:\Users\AppData\Roaming\Anki2\addons21\1846879528\add_remove_syntax_dialog.py", line 217, in show_modal dlg = cls(lang, is_remove, note_ids, parent) File "C:\Users\AppData\Roaming\Anki2\addons21\1846879528\add_remove_syntax_dialog.py", line 85, in init button_box = QDialogButtonBox(QDialogButtonBox.Ok | QDialogButtonBox.Cancel) AttributeError: type object 'QDialogButtonBox' has no attribute 'Ok' Also here's the error I get when I try to do "manage vacations" from within the Migaku settings from the top navigation bar. Not sure if these additional error messages are helpful pinpointing the problem but figure it can't hurt: Debug info: Anki 23.10 (51a10f09) Python 3.9.15 Qt 6.5.3 PyQt 6.5.3 Platform: Windows-10-10.0.19045 Flags: frz=True ao=True sv=3 Add-ons, last update check: 2023-11-15 23:59:16 Add-ons possibly involved: ⁨Migaku Anki Add-on⁩ Caught exception: Traceback (most recent call last): File "C:\Users\AppData\Roaming\Anki2\addons21\1846879528\settings_widgets.py", line 555, in manage_vacations BalanceSchedulerVacationWindow(self).exec() File "C:\Users\AppData\Roaming\Anki2\addons21\1846879528\balance_scheduler_vacation_window.py", line 21, in init self.setWindowModality(Qt.ApplicationModal) AttributeError: type object 'Qt' has no attribute 'ApplicationModal' As you can see pretty much all the functionality is broken :poonki:
correct-apricot
correct-apricot2y ago
I'm also using Qt6, so I think it's not that 🙂 I'm guessing the issues come from the new Anki version 👀
typical-coral
typical-coral2y ago
Gotcha. I appreciate you all looking into it. Hopefully Henrik has more luck! @Migaku Anki Add-On Support I know you guys are busy with a lot of projects, but I haven't heard anything about this issue and Migaku has been unusable with the current version of anki for three weeks for me now. Is this issue planned to be adressed? I understand Anki is a low priority for the new extension but the roadmap, etc. states anki users can use continue to use the legacy functionality which I cannot right now 😦
fair-rose
fair-rose2y ago
Hey @ccos, I'll have a look right now 🙂
fair-rose
fair-rose2y ago
This means that the problem will be solved very soon 🙂
typical-coral
typical-coral2y ago
Thank you so much! I really appreciate the help and sorry for pestering
correct-apricot
correct-apricot2y ago
Thanks a lot, I'm going to make a release right now Released the update! You might have to make Anki look for addon updates though 🙂
typical-coral
typical-coral2y ago
@Henrik (JST) @Nekyo Appreciate your help - the crash when pressing the manage vacations bug is indeed fixed after the update, but the addon still crashes when adding syntax to cards and managing note types (the two things I need to do unfortunately). I've pasted the text below: Adding syntax: Debug info: Anki 23.10 (51a10f09) Python 3.9.15 Qt 6.5.3 PyQt 6.5.3 Platform: Windows-10-10.0.19045 Flags: frz=True ao=True sv=3 Add-ons, last update check: 2023-11-21 02:19:26 Add-ons possibly involved: ⁨Migaku Anki Add-on⁩ Caught exception: Traceback (most recent call last): File "C:\Users\AppData\Roaming\Anki2\addons21\1846879528\add_remove_syntax_dialog.py", line 113, in start field_name = itm.data(Qt.DisplayRole) AttributeError: type object 'Qt' has no attribute 'DisplayRole' managing migaku note types: Anki 23.10 (51a10f09) Python 3.9.15 Qt 6.5.3 PyQt 6.5.3 Platform: Windows-10-10.0.19045 Flags: frz=True ao=True sv=3 Add-ons, last update check: 2023-11-21 02:19:26 Add-ons possibly involved: ⁨Migaku Anki Add-on⁩ Caught exception: Traceback (most recent call last): File "C:\Users\AppData\Roaming\Anki2\addons21\1846879528\note_type_dialogs.py", line 299, in <lambda> buttons.append(("Migaku Options", lambda: on_manage_migaku(notes_editor))) File "C:\Users\AppData\Roaming\Anki2\addons21\1846879528\note_type_dialogs.py", line 285, in on_manage_migaku dlg = ManageNoteDialog( File "C:\Users\AppData\Roaming\Anki2\addons21\1846879528\note_type_dialogs.py", line 94, in init self.load_tmpl() File "C:\Users\AppData\Roaming\Anki2\addons21\1846879528\note_type_dialogs.py", line 142, in load_tmpl & ~(Qt.ItemIsEditable | Qt.ItemFlag.ItemIsSelectable) AttributeError: type object 'Qt' has no attribute 'ItemIsEditable' Debug info: Migaku Anki Add-on ['1846879528', 2023-11-21T18:59, 'None', mod]
correct-apricot
correct-apricot2y ago
Another fix has been released just now thanks to @Henrik (JST) 🙏
typical-coral
typical-coral2y ago
Just gave it a quick once over and seems like everything is working like a charm now. Thank you both again I am very happy to be back to normal again :neet:

Did you find this page helpful?