■ 目的
pfcc-extrasの依存として入れていたmp-apiは一部ライブラリのバージョン依存が大きく、ライブラリを更新した場合に環境が壊れてしまうことがあります。
環境が壊れた際に復帰を容易にするため、動作が確認できたライブラリの組み合わせを記載します。(随時更新)
■対処方法
下記、動作確認できている組み合わせを参考にライブラリのバージョンを変更してください
pip uninstall mp-api pymatgen emmet-core pydantic pydantic_core pydantic-settings
pip install mp-api==0.40.0 pymatgen==2023.12.18 emmet-core==0.84.2 pydantic==2.9.2 pydantic_core==2.23.4 pydantic-settings==2.3.4
■ 動作が確認できた組み合わせ
python 3.11
| ライブラリ | バージョン |
| mp-api | 0.45.7 |
| pymatgen | 2025.4.10 |
| emmet-core | 0.84.9rc0 |
| pydantic | 2.10.6 |
| pydantic_core | 2.27.2 |
| pydantic-settings | 2.8.1 |
python 3.9
| ライブラリ | バージョン |
| mp-api | 0.45.1 |
| pymatgen | 2024.7.18 |
| emmet-core | 0.84.2 |
| pydantic | 2.9.2 |
| pydantic_core | 2.23.4 (依存のワーニングは出る) |
| pydantic-settings | 2.7.1 |
| ライブラリ | バージョン |
| mp-api | 0.41.2 |
| pymatgen | 2024.6.10 |
| emmet-core | 0.84.2rc2 |
| pydantic | 2.9.2 |
| pydantic_core | 2.23.4 |
| pydantic-settings | 2.3.4 |
| ライブラリ | バージョン |
| mp-api | 0.40.0 |
| pymatgen | 2023.12.18 |
| emmet-core | 0.84.2 |
| pydantic | 2.9.2 |
| pydantic_core | 2.23.4 |
| pydantic-settings | 2.3.4 |