This error comes on every time i open anki

Before the error happened, I was…
just opening anki. it was essentially updating the ankihub add-on

Error message (don't change this)
Anki 24.11 (87ccd24e)  (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: Windows-10-10.0.22631

Traceback (most recent call last):

  File "aqt.webview", line 53, in cmd

  File "aqt.webview", line 169, in _onCmd

  File "aqt.webview", line 725, in _onBridgeCmd

  File "aqt.overview", line 98, in _linkHandler

  File "aqt.main", line 770, in moveToState

  File "aqt.main", line 791, in _reviewState

  File "aqt.reviewer", line 183, in show

  File "aqt.reviewer", line 203, in refresh_if_needed

  File "aqt.reviewer", line 259, in nextCard

  File "decorator", line 232, in fun

  File "anki.hooks", line 92, in decorator_wrapper

  File "anki.hooks", line 83, in repl

  File "aqt.reviewer", line 343, in _initWeb

  File "aqt.webview", line 568, in stdHtml

  File "_aqt.hooks", line 5481, in __call__

  File "C:\Users\moham\AppData\Roaming\Anki2\addons21\1322529746\gui\reviewer.py", line 298, in _add_ankihub_ai_and_sidebar_and_buttons
    """Sets up the AnkiHub AI chatbot. Adds the "View on AnkiHub" button to the reviewer toolbar."""

  File "pathlib", line 1266, in read_text

  File "pathlib", line 1252, in open

  File "pathlib", line 1120, in _opener

FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\moham\\AppData\\Roaming\\Anki2\\addons21\\1322529746\\gui\\web\\ankihub_ai_old.js'

Sentry link (for developers)

Hello,

To fix this issue

Try deleting AnkiHub then installing it again

  1. Go to Anki
  2. Top left click on Tools
  3. Click on Addons
  4. Click on AnkiHub
  5. Click Delete
  6. Restart Anki
  7. Go back to Tools → Add-ons → Get addons → paste this code: 1322529746

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.