Closed ml-evs closed 3 months ago
Okay, this is good to know thanks for flagging. We do compatibility checks to write out the specific requirements files in requirements/
, but don't currently enforce any pinning unless issues like this come up. There has been talk about releasing tested "mp stack" reccomendations with all of the relevant codes but that hasn't come to fruition yet. I'm happy to pin pymatgen explicitly for now until this is resolved.
I'm having this issue with a fresh install too
Yeah, people in my group also had issues today.
Pymatgen has been pinned in the latest client release to < 2024.2.20
.
Actually, I will leave this thread open until the pmg issue is resolved.
I fixed it in https://github.com/materialsproject/pymatgen/pull/3645 so if anyone has review powers on pymatgen feel free to take a look.
There's also https://github.com/materialsproject/pymatgen/pull/3646 which will hopefully prevent this thing from happening in the future by testing with just mandatory deps first (though not sure if this is desirable for the devs yet).
The issue in pymatgen has now been resolved by @ml-evs. Is it possible to release a new version of mp-api which un-pins pymatgen?
I wonder if we can be more optimistic in future (for tightly coupled packages [in terms of downstream users and developer pool] like these) and add pins like e.g., pymatgen >= 2024, != 2024.2.23
rather than <2024.2.23
to reduce maintenance burden here and elsewhere?
Just opened #892 to take advantage of timezones and check that the latest release does pass tests (although not sure if there is a test run that uses the latest compatible versions of all deps, or if they all use pinned requirements/
).
I wonder if we can be more optimistic in future (for tightly coupled packages [in terms of downstream users and developer pool] like these) and add pins like e.g.,
pymatgen >= 2024, != 2024.2.23
rather than<2024.2.23
to reduce maintenance burden here and elsewhere?
Yup, we should definitely do that.
Just opened #892 to take advantage of timezones and check that the latest release does pass tests (although not sure if there is a test run that uses the latest compatible versions of all deps, or if they all use pinned
requirements/
).
They currently use the pinned requirement files. I will unpin and update those now before releasing.
Problem
As posted here: https://github.com/materialsproject/pymatgen/issues/3644
Hopefully this gets fixed soon-ish but you will never be able to use
mp-api
withpymatgen==2024.2.20
unless the user also has ASE installed.Proposed Solution
I assume you don't want to maintain a pymatgen pin but probably a very aggressive CI that checks new releases directly in the MP ecosystem is required to avoid pushing this bother on users/downstream devs.
Alternatives
No response