I get this error everytime I sync with ankihub. The sync appears to work as far as I can tell.
Error message (don't change this)
Anki 23.12.1 (1a1d4d54) (ao)
Python 3.9.15 Qt 6.6.1 PyQt 6.6.1
Platform: Windows-10-10.0.22631
Traceback (most recent call last):
File "aqt.taskman", line 142, in _on_closures_pending
File "aqt.taskman", line 86, in <lambda>
File "aqt.operations", line 252, in wrapped_done
File "C:\Users\dphar\AppData\Roaming\Anki2\addons21\1322529746\gui\media_sync.py", line 78, in on_failure
raise exception
File "concurrent.futures.thread", line 58, in run
File "aqt.operations", line 242, in wrapped_op
File "C:\Users\dphar\AppData\Roaming\Anki2\addons21\1322529746\gui\media_sync.py", line 82, in <lambda>
op=lambda _: self._client.upload_media(media_paths, ankihub_did),
File "C:\Users\dphar\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 470, in upload_media
future.result()
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\dphar\AppData\Roaming\Anki2\addons21\1322529746\ankihub_client\ankihub_client.py", line 511, in _zip_and_upload_media_chunk
os.remove(zip_filepath)
PermissionError: [WinError 32] The process cannot access the file because it is being used by another process: 'C:\\Users\\dphar\\AppData\\Roaming\\Anki2\\User 1\\collection.media\\f83f0bb3-c35b-4fed-adf6-1020ad685d97_0_deck_assets_part.zip'