genetic-orange
genetic-orange2y ago

Anki add-on startup failed

I was able to successfully find the Anki add-on and add it to my Anki app. However, when I restart Anki, I get this error message:
Add-on Startup Failed
The following add-ons failed to load: ⁨
Migaku Anki Add-on⁩
They may need to be updated to support this version of Anki. Click the Check for Updates button to see if any updates are available.
You can use the Copy Debug Info button to get information that you can paste in a report to the add-on author.
For add-ons that don't have an update available, you can disable or delete the add-on to prevent this message from appearing.
Add-on Startup Failed
The following add-ons failed to load: ⁨
Migaku Anki Add-on⁩
They may need to be updated to support this version of Anki. Click the Check for Updates button to see if any updates are available.
You can use the Copy Debug Info button to get information that you can paste in a report to the add-on author.
For add-ons that don't have an update available, you can disable or delete the add-on to prevent this message from appearing.
Here is the debug info:
Anki 23.10 (51a10f09) Python 3.9.15 Qt 6.5.3 PyQt 6.5.3
Platform: macOS-12.0-arm64-arm-64bit
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2023-12-01 12:30:13

When loading Migaku Anki Add-on:
Traceback (most recent call last):
File "aqt.addons", line 244, in loadAddons
File "/Users/amygu/Library/Application Support/Anki2/addons21/1846879528/__init__.py", line 75, in <module>
anki_version.check_anki_version_dialog()
File "/Users/amygu/Library/Application Support/Anki2/addons21/1846879528/anki_version.py", line 66, in check_anki_version_dialog
state = get_state()
File "/Users/amygu/Library/Application Support/Anki2/addons21/1846879528/anki_version.py", line 37, in get_state
major, minor, patch = version_tuple
ValueError: not enough values to unpack (expected 3, got 2)
Anki 23.10 (51a10f09) Python 3.9.15 Qt 6.5.3 PyQt 6.5.3
Platform: macOS-12.0-arm64-arm-64bit
Flags: frz=True ao=True sv=3
Add-ons, last update check: 2023-12-01 12:30:13

When loading Migaku Anki Add-on:
Traceback (most recent call last):
File "aqt.addons", line 244, in loadAddons
File "/Users/amygu/Library/Application Support/Anki2/addons21/1846879528/__init__.py", line 75, in <module>
anki_version.check_anki_version_dialog()
File "/Users/amygu/Library/Application Support/Anki2/addons21/1846879528/anki_version.py", line 66, in check_anki_version_dialog
state = get_state()
File "/Users/amygu/Library/Application Support/Anki2/addons21/1846879528/anki_version.py", line 37, in get_state
major, minor, patch = version_tuple
ValueError: not enough values to unpack (expected 3, got 2)
From what I can make of the error, it seems like anki_version.py might not have set the version numbers correctly? I've tried removing and reinstalling the add-on but the same thing happens. I just bought Migaku and really want to use it for video immersion + Anki flashcards, so I would greatly appreciate any help! Thank you.
8 Replies
genetic-orange
genetic-orangeOP2y ago
@Migaku Anki Add-On Support (hope I'm using this ping right, apologies if not!)
passive-yellow
passive-yellow2y ago
@amyhaiku Hm, we introduced this issue once, but we released the fix the same day. Make sure, you're on the latest version of the add-on
national-gold
national-gold2y ago
The code referenced in the report still seems to be in the addon: https://github.com/migaku-official/Migaku-Anki-Addon/blob/524af1428441e2b3894a3f7268245479e81cf573/src/anki_version.py#L37C40-L37C40 Maybe we should make sure version_tuple has a length of 3 and if it only has a length of 2 we should use 0 for patch
GitHub
Migaku-Anki-Addon/src/anki_version.py at 524af1428441e2b3894a3f7268...
Contribute to migaku-official/Migaku-Anki-Addon development by creating an account on GitHub.
genetic-orange
genetic-orangeOP2y ago
@Henrik (JST) @Nekyo sorry for the delayed reply, but I ran into the same issue again when restarting Anki today However I was able to successfully use Migaku these last 10 days, so it seems to not affect the functionality much?
national-gold
national-gold2y ago
If everything is working, there's nothing to worry about on your side 🙂 We will look into fixing the error that pops up soon too!
passive-yellow
passive-yellow2y ago
national-gold
national-gold2y ago
Fix has been released!
environmental-rose
environmental-rose2y ago
Issue still persists for me. Latest Anki addon, latest Anki version, tried both intel qt5 and 6.

Did you find this page helpful?