Special fields add on failed at startup

Anki 26.05 (e64c6b1a) (ao)
Python 3.13.11 Qt 6.11.0 PyQt 6.11.0
Platform: macOS-27.0-arm64-arm-64bit-Mach-O

When loading Special Fields:
Traceback (most recent call last):
File “/Users/runner/work/anki/anki/out/installer/build/anki/macos/app/Anki.app/Contents/Resources/app_packages/aqt/addons.py”, line 247, in loadAddons
File “/Users/marcsolis/Library/Application Support/Anki2/addons21/1102281552/init.py”, line 10, in
from .dialog import returnTagsText
File “/Users/marcsolis/Library/Application Support/Anki2/addons21/1102281552/dialog.py”, line 385, in
aqt.main.prompt_for_file_then_import = wrap(aqt.main.prompt_for_file_then_import, prompt_for_file_then_import_override, “around”)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module ‘aqt.main’ has no attribute ‘prompt_for_file_then_import’

Thinking

Search
Found 0 results for ‘tags:official Special Fields add-on failed at startup AttributeError aqt.main.prompt_for_file_then_import Anki 26.05 order:latest_topic max_posts:5 status:open’

Thanks for sharing the full error and debug info.

This isn’t an AnkiHub-specific issue, but a compatibility problem between:

  • Anki 26.05 (very new)
  • Special Fields add-on (older code expecting aqt.main.prompt_for_file_then_import, which no longer exists in recent Anki versions)

Because that function was removed/changed in newer Anki, the add-on crashes on startup and there’s nothing AnkiHub can change to fix it.

What you can do

  1. Check if there’s an updated version of Special Fields

    • In Anki: Tools → Add-ons → Get Add-ons… and search for “Special Fields” or check its AnkiWeb page.
    • If the author has released an update for Anki 23+/26+, install that and try again.
  2. If no update is available
    You have two practical options:

    • Temporarily disable/remove Special Fields
      Tools → Add-ons → Special Fields → Disable (or Delete) so Anki can start cleanly.
    • Use an older Anki version that’s known to work with Special Fields
      Downgrade Anki to an earlier 2.1/23.x version that the add-on supports, then re-enable the add-on.
  3. For AnkiHub use specifically

    • AnkiHub itself does not require Special Fields.
    • You can still:
      • Install/sync your AnkiHub decks.
      • Use AnkiHub’s “Update from AnkiHub” and “Upload changes” features as usual.
    • If you previously relied on Special Fields to protect certain fields during imports, you’ll need to:
      • Use AnkiHub’s protected fields (on the web deck page) instead, or
      • Be cautious with manual File → Import operations until the add-on is updated.
  4. Report it to the add-on author

    • Copy your debug info from the error dialog.
    • Paste it into a bug report on the add-on’s AnkiWeb page or support thread, mentioning that you’re on Anki 26.05 and seeing AttributeError: module 'aqt.main' has no attribute 'prompt_for_file_then_import'.

If you tell me:

  • Whether you need Special Fields for a specific AnkiHub deck workflow, and
  • Whether you’re willing to downgrade Anki,

I can suggest a concrete step‑by‑step setup so you can keep using AnkiHub safely without breaking fields.

Please update your add-on:

  1. On your Anki main screen, go to Tools > Add-ons > Check for Updates.
  2. After the update is complete, please restart Anki.

I did and there was no update avaliable

I just downgraded to a newer anki version. The pop up disappeared after that.

We’re aware of the issue in the add-on. You can disable it for now if you’re not actively using it (it’s not needed for AnkiHub - only if you’re importing apkg packages).

2 Likes