AI Add-on not working

Before the error happened, I was syncing my anki
[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: macOS-15.7.2-x86_64-i386-64bit-Mach-O

Traceback (most recent call last):

  File "/Users/sandyperez/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/taskman.py", line 152, in raise_exception
    raise exception

  File "/Users/sandyperez/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/taskman.py", line 148, in _on_closures_pending
    closure()
    ~~~~~~~^^

  File "/Users/sandyperez/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/taskman.py", line 88, in <lambda>
    lambda future: self.run_on_main(lambda: on_done(future))
                                            ~~~~~~~^^^^^^^^

  File "/Users/sandyperez/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/decorator.py", line 235, in fun
    return caller(func, *(extras + args), **kw)

  File "/Users/sandyperez/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/anki/hooks.py", line 91, in decorator_wrapper
    return repl(*args, **kwargs)

  File "/Users/sandyperez/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/anki/hooks.py", line 88, in repl
    return new(_old=old, *args, **kwargs)

  File "/Users/sandyperez/Library/Application Support/Anki2/addons21/1322529746/gui/addons.py", line 35, in _check_future_for_exceptions
    _old(*args, **kwargs)
    ~~~~^^^^^^^^^^^^^^^^^

  File "/Users/sandyperez/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/addons.py", line 1276, in _download_done
    future.result()
    ~~~~~~~~~~~~~^^

  File "/Users/sandyperez/Library/Application Support/AnkiProgramFiles/python/cpython-3.13.5-macos-x86_64-none/lib/python3.13/concurrent/futures/_base.py", line 449, in result
    return self.__get_result()
           ~~~~~~~~~~~~~~~~~^^

  File "/Users/sandyperez/Library/Application Support/AnkiProgramFiles/python/cpython-3.13.5-macos-x86_64-none/lib/python3.13/concurrent/futures/_base.py", line 401, in __get_result
    raise self._exception

  File "/Users/sandyperez/Library/Application Support/AnkiProgramFiles/python/cpython-3.13.5-macos-x86_64-none/lib/python3.13/concurrent/futures/thread.py", line 59, in run
    result = self.fn(*self.args, **self.kwargs)

  File "/Users/sandyperez/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/addons.py", line 1253, in <lambda>
    lambda: self._download_all(force_enable), self._download_done
            ~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^

  File "/Users/sandyperez/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/addons.py", line 1269, in _download_all
    download_and_install_addon(
    ~~~~~~~~~~~~~~~~~~~~~~~~~~^
        self.mgr, self.client, id, force_enable=force_enable
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^

  File "/Users/sandyperez/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/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 "/Users/sandyperez/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/addons.py", line 474, in install
    self._install(package, zfile)
    ~~~~~~~~~~~~~^^^^^^^^^^^^^^^^

  File "/Users/sandyperez/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/addons.py", line 498, in _install
    self.backupUserFiles(module)
    ~~~~~~~~~~~~~~~~~~~~^^^^^^^^

  File "/Users/sandyperez/Library/Application Support/AnkiProgramFiles/.venv/lib/python3.13/site-packages/aqt/addons.py", line 745, in backupUserFiles
    os.rename(p, self._userFilesBackupPath())
    ~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

OSError: [Errno 66] Directory not empty: '/Users/sandyperez/Library/Application Support/Anki2/addons21/1468920185/user_files' -> '/Users/sandyperez/Library/Application Support/Anki2/addons21/files_backup'

Sentry link (for developers)

2 Likes

Also been having this issue.

1 Like

Hi thanks for using this add-on. Anki Terminator cannot update while the sidebar is open, normally the sidebar auto closes when updating so this problem does not occur but it occasionally fails.(Ankihub or other add-ons may be interfering.)

There is an action in the menu to manually close the sidebar, so use that to close the add-on, then try updating again. (Tools β†’ AnkiTerminator β†’ Completely close Sidebar)

If that doesn’t work try disabling the add-on and updating. (AnkiMenu β†’ Tools β†’ Addons β†’ Select AnkiTerminator β†’ Toggle Enable β†’ Restart Anki β†’ Update addon β†’ Toggle Enable β†’ Restart Anki)

If these steps do not resolve the problem please contact me again.

1 Like

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