Error

Before the error happened, I was…

Error message (don't change this)
Anki 25.02.5 (29192d15)  (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: macOS-15.5-arm64-arm-64bit

Traceback (most recent call last):

  File "aqt.taskman", line 144, in _on_closures_pending

  File "aqt.taskman", line 88, in <lambda>

  File "aqt.operations", line 253, in wrapped_done

  File "/Users/b/Library/Application Support/Anki2/addons21/1322529746/gui/media_sync.py", line 63, in on_failure
    raise exception

  File "concurrent.futures.thread", line 58, in run

  File "aqt.operations", line 243, in wrapped_op

  File "/Users/b/Library/Application Support/Anki2/addons21/1322529746/gui/media_sync.py", line 67, in <lambda>
    op=lambda _: self._update_deck_media_and_download_missing_media(),

  File "/Users/b/Library/Application Support/Anki2/addons21/1322529746/gui/media_sync.py", line 135, in _update_deck_media_and_download_missing_media
    missing_media_names = self._missing_media_for_ah_deck(ah_did)

  File "/Users/b/Library/Application Support/Anki2/addons21/1322529746/gui/media_sync.py", line 211, in _missing_media_for_ah_deck
    referenced_media = self._media_referenced_by_notes(ah_did)

  File "/Users/b/Library/Application Support/Anki2/addons21/1322529746/gui/media_sync.py", line 200, in _media_referenced_by_notes
    media_names.update(aqt.mw.col.media.files_in_str(note.mid, flds))

  File "anki._legacy", line 201, in decorated_func

  File "anki.media", line 142, in files_in_str

  File "anki.latex", line 81, in render_latex

  File "anki.latex", line 100, in render_latex_returning_errors

  File "anki._backend_generated", line 1460, in extract_latex

  File "anki._backend", line 172, in _run_command

anki.errors.InvalidInput: CollectionNotOpen

Sentry link (for developers)

Hello,

Update your AnkiHub add-on:

  1. On your Anki main screen, go to Tools > Add-ons > Check for Updates.
  2. After the update is complete, please restart Anki.

Once you open Anki again, please wait for any syncing to finish. This was likely a one-time error and should not recur.

Let me know if you need help with anything else. :blush:

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