Navigation

    Migaku Community

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    [SOLVED] Anki addon startup error and syncing issue for version 2.1.49

    Migaku Anki Addon
    3
    3
    70
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ナ
      ナンバーワン last edited by

      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.

      Downloading issues

      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.

      Startup issue

      When starting up Anki, I get two strange black boxes as pictured below.

      Pics

      ApplicationFrameHost_xLbVN1jvSe.png
      explorer_5M8caqB5Lj.png

      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.

      Syncing issue

      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.pyfile. I had a look at this StackOverflow post and tried changing all s.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.
      Hulk 1 Reply Last reply Reply Quote 1
      • Reaper
        Reaper last edited by

        thanks a lot, problem solved for me

        1 Reply Last reply Reply Quote 0
        • Hulk
          Hulk @ナンバーワン last edited by

          @ナンバーワン Thanks for posting this. Hopefully it will help others.

          1 Reply Last reply Reply Quote 1
          • First post
            Last post