Open njzjz opened 1 year ago
Based on the stack trace, it looks like this error originated in emmet
but I can't spot any recent changes in that repo that look like they may have caused this error. So maybe it's related to the new MoleculeRester
in the api
repo? I'm moving this issue to api
and pinging @munrojm in case he's seen this error before. Not a pydantic
expert myself.
@njzjz Forgot to ask earlier: Could you retry this with Python 3.10+ to see if the error disappears?
Forgot to ask earlier: Could you retry this with Python 3.10+ to see if the error disappears?
I tried Python 3.8, 3.9, and 3.10. The error only appears with Python 3.8.
I confirm that it is a workaround to install an old version of mp-api
for Python 3.8, i.e.
pip install 'mp-api<0.33; python_version < "3.9"'
@munrojm Maybe the min Python on mp-api
needs to be bumped to 3.9?
Sorry for the delayed response on this. Yes, it looks like that may have to happen.
I got the same error from "from mp_api.client import MPRester" with Python 3.9.16. My mp-api version is 0.33.3.
I got the same error from "from mp_api.client import MPRester" with Python 3.9.16. My mp-api version is 0.33.3.
you can try upgrade package typing-extensions
Describe the bug
When
from pymatgen.ext.matproj import MPRester
, the following errors occur:To Reproduce
It can be reproduced in a clean Python 3.8 image.
The following errors occur:
Expected behavior No errors.
Screenshots![Screenshot from 2023-05-23 14-26-37](https://github.com/materialsproject/pymatgen/assets/9496702/3c0a5db0-b316-4fbc-948c-be0ea8ce81eb)
Environment (please supply relevant versions and platform info):
Additional context This issue might be related: https://github.com/pydantic/pydantic/issues/1298