Hi all,
I am new user of the MP API. I tried to use the API to extract the dos of the material KC8. The error I got is MPRestError: REST query returned with error status code 404 on URL https://api.materialsproject.org/materials/?deprecated=False&_all_fields=True&material_ids=mp-28930&_limit=1000 with message: Not Found
.
I would like to know how to fix this? Thx!
Upgrade to the latest mp-api client
Thank you for your reply!
I tried pip install mp-api --upgrade
. After I tried to run from mp_api.client import MPRester
, but I got ```PydanticImportError: BaseSettings
has been moved to the pydantic-settings
package. See Migration Guide - Pydantic for more details.
For further information visit https://errors.pydantic.dev/2.0/u/import-error```.
Did I do something wrong?
Thanks for mp_api - pydantic again? · Issue #1094 · pyiron/pyiron_atomistics · GitHub. I succeed in solving my issue by pip install mp-api "pydantic >=1.10.2,<2"
.
1 Like