[SOLVED] Anki addon startup error and syncing issue for version 2.1.49
Hello Migaku community,
Well, this is awkward... While troubleshooting this, the problem fixed itself. Oh well.... I'm still going to post this anyway for whom it may help, although, to be completely honest, I don't exactly know why this worked and I still get the two black boxes before my Anki starts up. See UPDATE fields for where I am currently at. I was able to fix this error by installing the add-on, not from file, but via its Ankiweb code:
1846879528. This did not fix black boxes appearing at anki startup but it did prevent the error message seen below and it allowed for the addon to sync with the browser extension.
Here's a summary of my specs and what's going on
System Windows Project Migaku Anki Addon Tool Version Migaku Anki - 0.3.0 Anki version 2.1.49 Feature Addon functionality and syncing Expected behavior Anki launches fine Addon sync, with browser extension Behavior When Anki launches, terminal opens up with some messages briefly and the app launches with an error (as shown in picture)
I am looking to get into studying jp again and after taking a break from a year, coming back and seeing how far Migaku has come, I am stoked and looking forward to buying it. Just as long as I know it works first. I know it's buggy but so far, I am not even having any luck getting the addon to sync properly.
For starters, I am unable to download the add-on without installing it from file. When I try this it return the error "Unable to find version," or something to that extent. This happened when I was on the latest version of anki (2.1.61)
UPDATE: I no longer get this error since 12:05 am. 23-04-2023.
When starting up Anki, I get two strange black boxes as pictured below.
When the program finally launches, it does so with this error code
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 on the add-on support site. Debug info: Anki 2.1.49 (dc80804a) Python 3.8.6 Qt 5.14.2 PyQt 5.14.2 Platform: Windows 10 Flags: frz=True ao=True sv=? Add-ons, last update check: 2023-04-22 22:01:00 Caught exception: Traceback (most recent call last): File "C:\Users\lonni\AppData\Roaming\Anki2\addons21\1846879528\migaku_connection\__init__.py", line 32, in run self.server.listen(44432, reuse_port=True) File "C:\Users\lonni\AppData\Roaming\Anki2\addons21\1846879528\lib\shared\tornado\web.py", line 2109, in listen server.listen(port, address, reuse_port=reuse_port) File "C:\Users\lonni\AppData\Roaming\Anki2\addons21\1846879528\lib\shared\tornado\tcpserver.py", line 151, in listen sockets = bind_sockets(port, address=address, reuse_port=reuse_port) File "C:\Users\lonni\AppData\Roaming\Anki2\addons21\1846879528\lib\shared\tornado\netutil.py", line 87, in bind_sockets raise ValueError("the platform doesn't support SO_REUSEPORT") ValueError: the platform doesn't support SO_REUSEPORT
UPDATE: I no longer get this error code at launch since 12:05 am. 23-04-2023.
I am unable to connect the add-on to the Migaku browser extension.
UPDATE: I no longer get this error since 12:05 am. 23-04-2023. The add-on connects to the extension.
Things I have tried
- Restarting the app
- Restarting my computer
- Uninstalling and reinstalling the app, web extensions, and anki.
- Modifying all of the some of the code within the netutil.py
file. I had a look at this StackOverflow post and tried changing alls.setsockopt()
tos.setsockopt(SOL_SOCKET, SO_BROADCAST, 1)`
This did not work and returned the same error.
- Installing the add-on via the AnkiWeb code
This solved the issue for a reason I am still unsure of. After uninstalling the add-on via the anki add-on menu and reinstalling it, the problem resolved itself.
Reaper last edited by
thanks a lot, problem solved for me
Hulk last edited by
@ナンバーワン Thanks for posting this. Hopefully it will help others.