kujaku11 / mth5

Exchangeable and archivable format for magnetotelluric time series to better serve the community through FAIR principles.
https://mth5.readthedocs.io/en/latest/index.html
MIT License
16 stars 7 forks source link

ValueError: numpy.dtype size changed, may indicate binary incompatibility. #221

Open kkappler opened 5 months ago

kkappler commented 5 months ago

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

Is being encountered during notebook execution.

nbclient.exceptions.CellExecutionError: An error occurred while executing the following cell:
------------------
from mtpy import MTCollection
------------------

This actually traces to simpeg's discretize binary .. here is a link to the test

Given that the tests are passing on 3.8.but no 3.9 or higher, this looks like it is likely related to numpy v2 release.

@kujaku11 Not sure how to handle this, reach out to simpeg? try pinning the numpy version to less than 2.0?