How to make my addon compatible with the latest Anki version?

Hi everyone,

After updating to Anki version 25.02.5 (Python 3.9, Qt 6.6.2), I started experiencing an issue with one of my addons. When I try to load it, I get the following error:

ModuleNotFoundError: No module named ‘pydantic_core._pydantic_core’

1 Like

It will probably help if you include a link to the add-on you’re asking about. It’s also not clear – is this an add-on that you installed from the add-on site, or an add-on that you personally developed and shared?

1 Like

Yes, this is an addon I developed and published on AnkiWeb. The name is MnemoMaker: Language Learning Accelerator.

1 Like

The add-on appears to load for me without errors on Windows (haven’t done extensive testing though).

pydantic_core depends on a native Python module (_pydantic_core.cp39-win_amd64.pyd on Windows). I can think of some reasons why you’re getting the error:

  1. _pydantic_core.cp39-win_amd64.pyd not being compatible with your system or Python version. You’ll need to bundle different files for other operating systems and Python versions.
  2. Some other add-on also loading its own version of the module.
2 Likes