You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
>>> from pymatgen.core import Lattice
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/home/felixtherrien/envs/ocpenv/lib/python3.10/site-packages/pymatgen/core/__init__.py", line 11, in <module>
from pymatgen.core.lattice import Lattice
File "/home/felixtherrien/envs/ocpenv/lib/python3.10/site-packages/pymatgen/core/lattice.py", line 19, in <module>
from pymatgen.util.coord import pbc_shortest_vectors
File "/home/felixtherrien/envs/ocpenv/lib/python3.10/site-packages/pymatgen/util/coord.py", line 14, in <module>
from pymatgen.util import coord_cython
File "src/pymatgen/util/coord_cython.pyx", line 1, in init pymatgen.util.coord_cython
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject
This happens in a fresh environment where I only installed pymatgen pip install pymatgen
In that environment the version of numpy is 2.0.1
Expected Behavior
If I install numpy version 1.26.4, the error disapears
Minimal example
frompymatgen.coreimportLattice
Relevant files to reproduce this bug
No response
The text was updated successfully, but these errors were encountered:
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.1
Expected Behavior
If I install numpy version 1.26.4, the error disapears
Minimal example
Relevant files to reproduce this bug
No response
The text was updated successfully, but these errors were encountered: