Error

Before the error happened, I was…
[Replace this text.]

Error message (don't change this)
Anki 24.11 (87ccd24e)  (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: macOS-15.6.1-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/mgardner96/Library/Application Support/Anki2/addons21/1322529746/gui/media_sync.py", line 64, in on_failure
    raise exception

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

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

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

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

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

  File "/Users/mgardner96/Library/Application Support/Anki2/addons21/1322529746/gui/media_sync.py", line 195, in _media_referenced_by_notes
    note = aqt.mw.col.get_note(nid)

  File "anki.collection", line 496, in get_note

  File "anki.notes", line 50, in __init__

  File "anki.notes", line 58, in load

  File "anki.notes", line 68, in _load_from_backend_note

  File "anki.notes", line 141, in note_type

  File "anki.models", line 164, in get

  File "anki._backend_generated", line 1170, in get_notetype_legacy

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

anki.errors.InvalidInput: CollectionNotOpen

Sentry link (for developers)

Hello,

It appears your Anki version is outdated, can you try updating to the latest version and see if this issue persists?

You can get the latest version here: https://apps.ankiweb.net/