Closed ftherrien closed 1 week ago
The issue here seems to be that the build specifies, https://github.com/materialsproject/pymatgen/blob/98c57888cc4f17ef4d8692d777ad0d1806ee7ae9/pyproject.toml#L5
Which wont work with numpy>=2.0.
To fix quickly, downgrade numpy.
To actually support numpy>=2.0, looks like the build system has to use numpy>=2, which should be backward compatible. See: https://numpy.org/devdocs/dev/depending_on_numpy.html#numpy-2-0-specific-advice
Hi @ftherrien thanks for reporting this. I believe this issue has been resolved by #3894. Can you have another try?
Works now. Thanks!
Python version
Python 3.10.12
Pymatgen version
pymatgen-2024.7.18
Operating system version
Ubuntu 22.04.4 LTS
Current behavior
This happens in a fresh environment where I only installed pymatgen
pip install pymatgen
In that environment the version of numpy is 2.0.1Expected Behavior
If I install numpy version 1.26.4, the error disapears
Minimal example
Relevant files to reproduce this bug
No response