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’
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?
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:
_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.
Some other add-on also loading its own version of the module.