-
Notifications
You must be signed in to change notification settings - Fork 48
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
[Bug]: ValidationError 6 validation errors for MoleculeSummaryDoc builder_meta.build_date #922
Comments
I will investigate this. For now, you can pass |
Thanks for your reply. I reinstalled my conda env and downgraded python version to 3.8. It works now, although I'm unsure which step resolved the issue. |
Just to bump this, I'm also running into the same issue. Setting |
Thanks for bumping this. We'll need to take a second look at it. As @munrojm mentioned, in the meantime, you can use the |
@kavanase I just released mp-api |
@tschaume can you link to the PR that fixed the issue? |
@kalvdans it would be PR #947 but I'd consider it a temporary fix since I simply disabled the rerouting of full download requests from our MongoDB to our OpenData repositories. We're working on sync'ing the data in the OpenData repo and should be able to revert #947 with the upcoming data release. HTH. |
Hi @tschaume, I just checked with the new release, but I'm still getting a The workaround is fine for my use case btw, but I guess would be nice for this simpler call to work without issue too. Full traceback:
|
Try using the officially supported from mp_api.client import MPRester
with MPRester() as mpr:
docs = mpr.molecules.summary.search(nelements=7) We generally recommend not mixing the pymatgen and mp_api clients. |
Hi @tschaume, |
Which |
I was using |
Thanks for checking @kavanase! We're in the middle of preparing a new data release that will hopefully fix it. We'll get back to you. |
Code snippet
What happened?
I am attempting to get molecules from API using the attached code. It can work at first, but when the progress bar reaches 155361/221598, an error will be reported. Could you please check it?
Version
mp-api 0.41.2
Which OS?
Log output
The text was updated successfully, but these errors were encountered: