randomgen icon indicating copy to clipboard operation
randomgen copied to clipboard

Numpy 2.0 compatibility

Open Shoeboxam opened this issue 8 months ago • 1 comments

I am getting the following error when using randomgen on Numpy 2.0 (which has just released today):

  File "randomgen/aes.pyx", line 1, in init randomgen.aes
  File "randomgen/common.pyx", line 1, in init randomgen.common
ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

No issue on Numpy 1.26.4, the max prior version. I think it's likely that Numpy's ABI has changed in 2.0, causing an incompatibility.

Thanks for maintaining this package!

Shoeboxam avatar Jun 16 '24 23:06 Shoeboxam