Skip to content

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

Answered by deepanshs
BiffoQ asked this question in Q&A
Discussion options

You must be logged in to vote

Hi,

This seems like a numpy version issue---specifically numpy v1.x and v2.x. What is the version of numpy in your environment?

From what I see from your GitHub page

pip install nmrglue numpy>=1.26.0 scipy pydantic = 1.10.0 mrsimulator = 0.7.0

you are using mrsimulator==v0.7 and numpy>1.26. Builld distribution for mrsimulator==v0.7 are for numpy<2.0 and will likely give a ValueError: numpy.dtype size changed error when run in an environment with numpy>2.0

May I suggest using numpy<2.0 in the requirements when using mrsimulator==0.7.0.

Alternativelt, you could also try using mrsimulator==1.0. It doesn't have pydantic==1.10.0 and numpy<2.0 constraint.

Please let me know if you have any more…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by deepanshs
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants