Issue in Generating Pourbaix Diagram using mp-api

Hi good day. I am currently encountering an issue of generating Pourbaix Diagrams (it was working few days ago) which has the following error:

ModuleNotFoundError: No module named ‘pymatgen.core.entries’

I noticed that the latest version of pymatgen does not have core subfolder. May I know which version of pymatgen, mp-api, mpcontribs-client etc. I should install to get this working? Many thanks!

Have run into this a few times now myself and with others after the pymatgen/pymatgen-core split. Easiest solution is just create a new Python environment and just start from pip install --upgrade mp-api

If you want to preserve your current env then: pip uninstall pymatgen pymatgen-core -y; pip install --upgrade pymatgen;

It works now, thank you very much!

1 Like