[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1120971: powerpc: _ctype_from_dtype_scalar NotImplementedError: Converting dtype('int32') to a ctypes type



Source: numpy
Version: 1:2.3.4+ds-3
Followup-For: Bug #1120971
X-Debbugs-Cc: debian-powerpc@lists.debian.org
User: debian-powerpc@lists.debian.org
Usertags: powerpc
Control: tags -1 patch

Upstream has identified a probable patch
https://github.com/numpy/numpy/issues/30257#issuecomment-3552193179

" We changed the elsize to be an ssize_t but the code here is using i
conversion to convert from Python.

If you want to try a hot-fix, this code is here:

numpy/numpy/_core/src/multiarray/hashdescr.c

Line 82 in 8eb840a
 t = Py_BuildValue("(cccii)", descr->kind, nbyteorder, 
 
 The i both need to be n.
 
 Not sure about the ABI for variable function parameters in the case
of integers, but I guess it is very plausible for that getting mangled
up on some systems."


Reply to: