Before the error happened, I was
Loaded Anki, automatic update detected→clicked on update and this came up.
This was just after I made a Win 11 update.
I see the installer reads the platform as windows-10, which it is not; I see it wants permission, which I believe I have already given, and I have not had this problem before or with any other addons
EDIT: apparently there was a conflict between AnkiCollab and AnkiHub, I resolved by first updating AnkiHub and then AnkiCollab. Leaving this up in case it is useful for developers
Error message (don't change this)
Anki 25.02.4 (a5c33ad0) (ao)
Python 3.9.18 Qt 6.6.2 PyQt 6.6.1
Platform: Windows-10-10.0.26200
Traceback (most recent call last):
File "aqt.utils", line 1023, in send_to_trash
File "send2trash.win.legacy", line 183, in send2trash
FileNotFoundError: [WinError 161] Percorso specificato non valido.: ['C:\\Users\\flavi\\AppData\\Roaming\\Anki2\\addons21\\195753~1']
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "aqt.taskman", line 144, in _on_closures_pending
File "aqt.taskman", line 88, in <lambda>
File "decorator", line 232, in fun
File "anki.hooks", line 92, in decorator_wrapper
File "anki.hooks", line 89, in repl
File "C:\Users\flavi\AppData\Roaming\Anki2\addons21\1322529746\gui\addons.py", line 35, in _check_future_for_exceptions
_old(*args, **kwargs)
File "aqt.addons", line 1257, in _download_done
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 "aqt.addons", line 1234, in <lambda>
File "aqt.addons", line 1250, in _download_all
File "aqt.addons", line 1195, in download_and_install_addon
File "aqt.addons", line 474, in install
File "aqt.addons", line 500, in _install
File "aqt.addons", line 520, in deleteAddon
File "aqt.utils", line 1028, in send_to_trash
File "shutil", line 759, in rmtree
File "shutil", line 624, in _rmtree_unsafe
File "shutil", line 624, in _rmtree_unsafe
File "shutil", line 629, in _rmtree_unsafe
File "shutil", line 627, in _rmtree_unsafe
PermissionError: [WinError 5] Accesso negato: 'C:\\Users\\flavi\\AppData\\Roaming\\Anki2\\addons21\\1957538407\\dist\\yaml\\_yaml.cp39-win_amd64.pyd'