desihub / desisim

DESI simulations
BSD 3-Clause "New" or "Revised" License
16 stars 22 forks source link

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

Open moustakas opened 2 years ago

moustakas commented 2 years ago

Running

python py/desisim/test/test_lya.py

yields the following non-catastrophic warning:

<frozen importlib._bootstrap>:219: RuntimeWarning: numpy.ndarray size changed, may indicate binary incompatibility. Expected 80 from C header, got 88 from PyObject

This is happening on my laptop (a newer MacBook Pro) with python 3.8.5 and numpy 1.20.3 but I'm also seeing it in our Github Actions tests.

Googling suggests that simply reinstalling numpy should fix it, although it didn't work for me: https://stackoverflow.com/questions/66060487/valueerror-numpy-ndarray-size-changed-may-indicate-binary-incompatibility-exp

This isn't a critical issue, I'm just curious whether anyone else has seen this and/or has a suggested fix.