Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1270779

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

From Drew Parsons <dparsons@debian.org>
Newsgroups linux.debian.bugs.dist, linux.debian.ports.powerpc
Subject Bug#1120971: powerpc: _ctype_from_dtype_scalar NotImplementedError: Converting dtype('int32') to a ctypes type
Date 2025-11-19 12:50 +0100
Message-ID <LSORb-e7uG-5@gated-at.bofh.it> (permalink)
References <LSBKh-dYBl-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


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."

Back to linux.debian.bugs.dist | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

Bug#1120971: powerpc: _ctype_from_dtype_scalar NotImplementedError: Converting dtype('int32') to a ctypes type Drew Parsons <dparsons@debian.org> - 2025-11-18 22:50 +0100
  Bug#1120971: powerpc: _ctype_from_dtype_scalar NotImplementedError: Converting dtype('int32') to a ctypes type Drew Parsons <dparsons@debian.org> - 2025-11-19 12:50 +0100

csiph-web