Ankihub

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

Error message (don't change this)
Anki 2.1.65 (aa9a734f) Python 3.9.15 Qt 6.4.3 PyQt 6.4.0
Platform: Windows-10-10.0.22631
Flags: frz=True ao=True sv=2
Add-ons, last update check: 2024-03-20 16:24:35

Traceback (most recent call last):

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

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

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

  File "C:\Users\asus\AppData\Roaming\Anki2\addons21\1322529746\gui\media_sync.py", line 54, in on_failure
    raise exception

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

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

  File "C:\Users\asus\AppData\Roaming\Anki2\addons21\1322529746\gui\media_sync.py", line 58, in <lambda>
    op=lambda _: self._update_deck_media_and_download_missing_media(),

  File "C:\Users\asus\AppData\Roaming\Anki2\addons21\1322529746\gui\media_sync.py", line 132, in _update_deck_media_and_download_missing_media
    self._client.download_media(missing_media_names, ah_did)

  File "C:\Users\asus\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 544, in download_media
    )

  File "concurrent.futures._base", line 439, in result

  File "concurrent.futures._base", line 391, in __get_result

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

  File "C:\Users\asus\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 553, in _download_media

PermissionError: [Errno 13] Permission denied: 'C:\\Users\\asus\\AppData\\Roaming\\Anki2\\User 1\\collection.media\\54ddab55aa889b255e5157ca86d39555.jpg'

Sentry link (for developers)

If the error persists, check whether you have write permissions to Anki’s collection.media folder. See this for its location: Managing Files - Anki Manual