pyconcorde icon indicating copy to clipboard operation
pyconcorde copied to clipboard

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

Open yzhang-gh opened this issue 2 years ago • 0 comments

There is a compatibility issue (as shown in the title) if numpy>=1.20 is used.

The cause seems to be a change in the C API in numpy. I am not sure whether it can be solved by changing the pyproject.toml, but would like to post a workaround here in case it can be helpful for other users:

use pip install -e . --no-build-isolation --no-binary :all: instead of pip install -e . to install this package.

Reference: https://stackoverflow.com/a/66743692/8682688

yzhang-gh avatar May 13 '22 02:05 yzhang-gh