geatpy icon indicating copy to clipboard operation
geatpy copied to clipboard

m1 mac cannot import geatpy==2.7.0

Open rockming opened this issue 2 years ago • 2 comments

Describe the bug

Geatpy==2.7.0 was installed on m1 mac, when i try to import geatpy, while I got the error: """ from geatpy.core.awGA import awGA File "core/awGA.pyx", line 1, in init awGA ValueError: numpy.ndarray size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject"""

rockming avatar Jan 09 '22 15:01 rockming

@rockming https://stackoverflow.com/questions/66060487/valueerror-numpy-ndarray-size-changed-may-indicate-binary-incompatibility-exp

Hello, try to reinstall numpy.

geatpy-dev avatar Jan 09 '22 15:01 geatpy-dev

@rockming https://stackoverflow.com/questions/66060487/valueerror-numpy-ndarray-size-changed-may-indicate-binary-incompatibility-exp

Hello, try to reinstall numpy.

Thanks. It works.

rockming avatar Jan 25 '22 16:01 rockming