Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no validator found for <class 'pymatgen.core.composition.Composition' during import of MPRester #876

Open
dembart opened this issue Dec 6, 2023 · 2 comments

Comments

@dembart
Copy link

dembart commented Dec 6, 2023

import of PropertyDoc from emmet.core.material_property fails due to the RuntimeError: no validator found for <class 'pymatgen.core.composition.Composition'>.

Any ideas how to fix it? I am running code on M1 Mac with Ventura OS

---> 26 from emmet.core.material_property import PropertyDoc
27 from emmet.core.mpid import MPID
28
...
~/opt/anaconda3/lib/python3.8/site-packages/pydantic/fields.cpython-38-darwin.so in pydantic.fields.ModelField.populate_validators()

~/opt/anaconda3/lib/python3.8/site-packages/pydantic/validators.cpython-38-darwin.so in find_validators()

RuntimeError: no validator found for <class 'pymatgen.core.composition.Composition'>,

@munrojm
Copy link
Member

munrojm commented Dec 13, 2023

Which version of emmet-core, mp-api, and pymatgen are you running with?

@dembart
Copy link
Author

dembart commented Dec 13, 2023

emmet-core==0.68.0
mp-api==0.33.3
pymatgen==2023.8.10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants