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

Drew Parsons <[email protected]> Wed, 19 Nov 2025 12:45:43 +0100
Newsgroups gmane.linux.debian.ports.powerpc
Message-ID <176355274316.10912.18407589832745911190.reportbug__10356.8102278345$1763552850$gmane$org@sandy>
Source: numpy
Version: 1:2.3.4+ds-3
Followup-For: Bug #1120971
X-Debbugs-Cc: [email protected]
User: [email protected]
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."