I got error while trying to update

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

Error message (don't change this)
Anki 25.07.5 (7172b2d2) (ao)
Python 3.13.5 Qt 6.9.1 PyQt 6.9.1
Platform: Windows-11-10.0.26100-SP0

Traceback (most recent call last):

  File "C:\Users\gryme\AppData\Local\AnkiProgramFiles\.venv\Lib\site-packages\send2trash\win\modern.py", line 55, in send2trash
    result = fileop.PerformOperations()

pywintypes.com_error: (-2144927704, 'OLE error 0x80270028', None, None)


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "C:\Users\gryme\AppData\Local\AnkiProgramFiles\.venv\Lib\site-packages\aqt\utils.py", line 1034, in send_to_trash
    send2trash(path)
    ~~~~~~~~~~^^^^^^

  File "C:\Users\gryme\AppData\Local\AnkiProgramFiles\.venv\Lib\site-packages\send2trash\win\modern.py", line 63, in send2trash
    raise OSError(None, error.strerror, path, error.hresult)

OSError: [WinError -2144927704] OLE error 0x80270028: 'C:\\Users\\gryme\\AppData\\Roaming\\Anki2\\addons21\\1957538407'


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

  File "C:\Users\gryme\AppData\Local\AnkiProgramFiles\.venv\Lib\site-packages\aqt\taskman.py", line 152, in raise_exception
    raise exception

  File "C:\Users\gryme\AppData\Local\AnkiProgramFiles\.venv\Lib\site-packages\aqt\taskman.py", line 148, in _on_closures_pending
    closure()
    ~~~~~~~^^

  File "C:\Users\gryme\AppData\Local\AnkiProgramFiles\.venv\Lib\site-packages\aqt\taskman.py", line 88, in <lambda>
    lambda future: self.run_on_main(lambda: on_done(future))
                                            ~~~~~~~^^^^^^^^

  File "C:\Users\gryme\AppData\Local\AnkiProgramFiles\.venv\Lib\site-packages\decorator.py", line 235, in fun
    return caller(func, *(extras + args), **kw)

  File "C:\Users\gryme\AppData\Local\AnkiProgramFiles\.venv\Lib\site-packages\anki\hooks.py", line 91, in decorator_wrapper
    return repl(*args, **kwargs)

  File "C:\Users\gryme\AppData\Local\AnkiProgramFiles\.venv\Lib\site-packages\anki\hooks.py", line 88, in repl
    return new(_old=old, *args, **kwargs)

  File "C:\Users\gryme\AppData\Roaming\Anki2\addons21\1322529746\gui\addons.py", line 35, in _check_future_for_exceptions
    _old(*args, **kwargs)
    ~~~~^^^^^^^^^^^^^^^^^

  File "C:\Users\gryme\AppData\Local\AnkiProgramFiles\.venv\Lib\site-packages\aqt\addons.py", line 1276, in _download_done
    future.result()
    ~~~~~~~~~~~~~^^

  File "C:\Users\gryme\AppData\Local\AnkiProgramFiles\python\cpython-3.13.5-windows-x86_64-none\Lib\concurrent\futures\_base.py", line 449, in result
    return self.__get_result()
           ~~~~~~~~~~~~~~~~~^^

  File "C:\Users\gryme\AppData\Local\AnkiProgramFiles\python\cpython-3.13.5-windows-x86_64-none\Lib\concurrent\futures\_base.py", line 401, in __get_result
    raise self._exception

  File "C:\Users\gryme\AppData\Local\AnkiProgramFiles\python\cpython-3.13.5-windows-x86_64-none\Lib\concurrent\futures\thread.py", line 59, in run
    result = self.fn(*self.args, **self.kwargs)

  File "C:\Users\gryme\AppData\Local\AnkiProgramFiles\.venv\Lib\site-packages\aqt\addons.py", line 1253, in <lambda>
    lambda: self._download_all(force_enable), self._download_done
            ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^

  File "C:\Users\gryme\AppData\Local\AnkiProgramFiles\.venv\Lib\site-packages\aqt\addons.py", line 1269, in _download_all
    download_and_install_addon(
    ~~~~~~~~~~~~~~~~~~~~~~~~~~^
        self.mgr, self.client, id, force_enable=force_enable
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^

  File "C:\Users\gryme\AppData\Local\AnkiProgramFiles\.venv\Lib\site-packages\aqt\addons.py", line 1214, in download_and_install_addon
    result2 = mgr.install(
        io.BytesIO(result.data), manifest=manifest, force_enable=force_enable
    )

  File "C:\Users\gryme\AppData\Local\AnkiProgramFiles\.venv\Lib\site-packages\aqt\addons.py", line 474, in install
    self._install(package, zfile)
    ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^

  File "C:\Users\gryme\AppData\Local\AnkiProgramFiles\.venv\Lib\site-packages\aqt\addons.py", line 500, in _install
    self.deleteAddon(module)
    ~~~~~~~~~~~~~~~~^^^^^^^^

  File "C:\Users\gryme\AppData\Local\AnkiProgramFiles\.venv\Lib\site-packages\aqt\addons.py", line 520, in deleteAddon
    send_to_trash(Path(self.addonsFolder(module)))
    ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\gryme\AppData\Local\AnkiProgramFiles\.venv\Lib\site-packages\aqt\utils.py", line 1039, in send_to_trash
    shutil.rmtree(path)
    ~~~~~~~~~~~~~^^^^^^

  File "C:\Users\gryme\AppData\Local\AnkiProgramFiles\python\cpython-3.13.5-windows-x86_64-none\Lib\shutil.py", line 790, in rmtree
    return _rmtree_unsafe(path, onexc)

  File "C:\Users\gryme\AppData\Local\AnkiProgramFiles\python\cpython-3.13.5-windows-x86_64-none\Lib\shutil.py", line 629, in _rmtree_unsafe
    onexc(os.unlink, fullname, err)
    ~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "C:\Users\gryme\AppData\Local\AnkiProgramFiles\python\cpython-3.13.5-windows-x86_64-none\Lib\shutil.py", line 625, in _rmtree_unsafe
    os.unlink(fullname)
    ~~~~~~~~~^^^^^^^^^^

PermissionError: [WinError 5] Access is denied: 'C:\\Users\\gryme\\AppData\\Roaming\\Anki2\\addons21\\1957538407\\dist\\windows\\py313\\PIL\\_imaging.cp313-win_amd64.pyd'

Sentry link (for developers)

Hi, this error seems to be related to the Anki Collab add-on (code 1957538407). Please try disabling it and then restarting Anki to see if the error goes away.

The official AnKing add-on for deck collaboration is the AnkiHub add-on: https://ankiweb.net/shared/info/1322529746

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