scikit-image icon indicating copy to clipboard operation
scikit-image copied to clipboard

ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject

Open Dwiunzila opened this issue 2 years ago • 1 comments

Description

hello everyone i'm trying to build bandstructure using abinit but this error always appears

Way to reproduce

~/Documents/Dwi Unzila/bandstructure/FeO Murni/percobaan 1$ abiopen.py t01o_DS2_GSR.nc --expose -sns=talk

Version information

numpy version: 1.19.2 abinit : 9.6.2

Traceback (most recent call last): File "/home/komputasi6/.local/bin/abiopen.py", line 17, in from abipy import abilab File "/home/komputasi6/.local/lib/python3.7/site-packages/abipy/init.py", line 18, in from abipy.core import release File "/home/komputasi6/.local/lib/python3.7/site-packages/abipy/core/init.py", line 3, in from .kpoints import * File "/home/komputasi6/.local/lib/python3.7/site-packages/abipy/core/kpoints.py", line 15, in from pymatgen.core.lattice import Lattice File "/home/komputasi6/.local/lib/python3.7/site-packages/pymatgen/core/init.py", line 20, in from .lattice import Lattice # noqa File "/home/komputasi6/.local/lib/python3.7/site-packages/pymatgen/core/lattice.py", line 22, in from pymatgen.util.coord import pbc_shortest_vectors File "/home/komputasi6/.local/lib/python3.7/site-packages/pymatgen/util/coord.py", line 17, in from . import coord_cython as cuc File "pymatgen/util/coord_cython.pyx", line 1, in init pymatgen.util.coord_cython ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 88 from C header, got 80 from PyObject

Dwiunzila avatar Aug 11 '22 04:08 Dwiunzila

Hi @Dwiunzila,

Where does scikit-image come into play? Did you mean to post under https://github.com/abinit/abinit/?

mkcor avatar Aug 11 '22 10:08 mkcor

Hey, there hasn't been any activity on this issue for more than 180 days. For now, we have marked it as "dormant" until there is some new activity. You are welcome to reach out to people by mentioning them here or on our forum if you need more feedback! If you think that this issue is no longer relevant, you may close it by yourself; otherwise, we may do it at some point (either way, it will be done manually). In any case, thank you for your contributions so far!

github-actions[bot] avatar Feb 08 '23 02:02 github-actions[bot]

Looks like a numpy version mismatch. Should be fixed by installing into clean env.

stefanv avatar Feb 08 '23 06:02 stefanv