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

Path csiph.com!weretis.net!feeder8.news.weretis.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
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 Wed, 19 Nov 2025 12:50:01 +0100
Message-ID <LSORb-e7uG-5@gated-at.bofh.it> (permalink)
References <LSBKh-dYBl-5@gated-at.bofh.it>
X-Mailbox-Line From debian-bugs-dist-request@lists.debian.org Wed Nov 19 11:47:08 2025
Old-Return-Path <debbugs@buxtehude.debian.org>
X-Spam-Flag NO
X-Spam-Score -2.399
Reply-To Drew Parsons <dparsons@debian.org>, 1120971@bugs.debian.org
Resent-To debian-bugs-dist@lists.debian.org
Resent-Cc debian-powerpc@lists.debian.org, team+python@tracker.debian.org
X-Debian-Pr-Message followup 1120971
X-Debian-Pr-Package src:numpy
X-Debian-Pr-Source numpy
Content-Type text/plain; charset="us-ascii"
MIME-Version 1.0
Content-Transfer-Encoding 7bit
X-Mailer reportbug 13.2.0
X-Debian-User dparsons
X-Debian-Message from BTS
X-Mailing-List <debian-bugs-dist@lists.debian.org> archive/latest/1937542
List-ID <debian-bugs-dist.lists.debian.org>
List-URL <https://lists.debian.org/debian-bugs-dist/>
Approved robomod@news.nic.it
Lines 26
Organization linux.* mail to news gateway
Sender robomod@news.nic.it
X-Original-Date Wed, 19 Nov 2025 12:45:43 +0100
X-Original-Message-ID <176355274316.10912.18407589832745911190.reportbug@sandy>
X-Original-References <176350221806.498057.9849169959001496235.reportbug@sandy>
Xref csiph.com linux.debian.bugs.dist:1270779 linux.debian.ports.powerpc:10971

Cross-posted to 2 groups.

Show key headers only | 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