Your message dated Thu, 20 Nov 2025 10:52:12 +0000
with message-id <[email protected]>
and subject line Bug#1120971: fixed in numpy 1:2.3.5+ds-1
has caused the Debian Bug report #1120971,
regarding powerpc: _ctype_from_dtype_scalar NotImplementedError: Converting 
dtype('int32') to a ctypes type
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1120971: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1120971
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: numpy
Version: 1:2.3.4+ds-3
Severity: normal
X-Debbugs-Cc: [email protected]
User: [email protected]
Usertags: powerpc
Control: forwarded -1 https://github.com/numpy/numpy/issues/30257
Control: affects -1 src:fenics-dolfinx

Debian tests of dolfinx on powerpc have exposed an irregularity in ppc ctypes
https://buildd.debian.org/status/fetch.php?pkg=fenics-dolfinx&arch=powerpc&ver=1%3A0.10.0.post2-1exp2&stamp=1763496611&raw=0

/usr/lib/python3/dist-packages/numpy/ctypeslib.py:382: in 
_ctype_from_dtype_scalar
    raise NotImplementedError(
E   NotImplementedError: Converting dtype('int32') to a ctypes type

The failing line

numpy/numpy/ctypeslib/_ctypeslib.py

Line 385 in a251f2a
 ctype = _scalar_type_map[dtype_native] 

is simply trying to access a ctype for dtype int32.

The problem can be reproduced manually. The strange thing is that
inspecting the _scalar_type_map dict (on ppc), it clearly shows an
entry dtype('int32'): <class 'ctypes.c_long'>


import numpy as np
import platform
print("testing architecture", platform.machine())
a = np.array([1], dtype=np.int32)
dtype_native = a.dtype.newbyteorder('=')
print("'np.int32' is", dtype_native)
print("ctypeslib _scalar_type_map is", np.ctypeslib._scalar_type_map)
print(f"extract ctype for {dtype_native}:")
ctype = np.ctypeslib._scalar_type_map[dtype_native]
print("got ctype", ctype)

--- End Message ---
--- Begin Message ---
Source: numpy
Source-Version: 1:2.3.5+ds-1
Done: Timo Röhling <[email protected]>

We believe that the bug you reported is fixed in the latest version of
numpy, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Timo Röhling <[email protected]> (supplier of updated numpy package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 20 Nov 2025 09:47:17 +0100
Source: numpy
Architecture: source
Version: 1:2.3.5+ds-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <[email protected]>
Changed-By: Timo Röhling <[email protected]>
Closes: 1120971 1121005
Changes:
 numpy (1:2.3.5+ds-1) unstable; urgency=medium
 .
   * New upstream version 2.3.5+ds
   * Update patches
     - Merged: 0012-Avoid-compilation-error-of-wrapper-file-generated-wi.patch
   * Skip test which misbehaves on powerpc.
     Thanks to Drew Parsons (Closes: #1121005)
   * Fix integer size mismatch.
     Again thanks to Drew Parsons (Closes: #1120971)
   * Wrap and sort Debian package files
   * Update d/copyright
Checksums-Sha1:
 ebc013dbd6e59d2bd68b6f9b85a10366e5403375 3645 numpy_2.3.5+ds-1.dsc
 e4a88b635e731f36e75f84655524b76859cf0255 15391384 numpy_2.3.5+ds.orig.tar.xz
 1069a86ad1b010c661bfedd4f3b39820d6a017fd 162132 numpy_2.3.5+ds-1.debian.tar.xz
Checksums-Sha256:
 d650655997ab6330fbf320f1d553fba7fe5b844e5068d59c2fdd942d66544bf1 3645 
numpy_2.3.5+ds-1.dsc
 93d8bc53fd358d29aa68dc6fedd56b2b1b2d898eef6d7cfd9950af83ac8b4e68 15391384 
numpy_2.3.5+ds.orig.tar.xz
 52a1c0c1d6ef1befe196dc3ec9f8430bafc4a09de29913ba0ed5a0141bf47649 162132 
numpy_2.3.5+ds-1.debian.tar.xz
Files:
 ece2c1bdf7c151270cd7cb87dd8470f0 3645 python optional numpy_2.3.5+ds-1.dsc
 03dc823c20333fbeb56b0885772190d7 15391384 python optional 
numpy_2.3.5+ds.orig.tar.xz
 516401c45d04ebf89f46dfeb5801acd7 162132 python optional 
numpy_2.3.5+ds-1.debian.tar.xz

-----BEGIN PGP SIGNATURE-----

iQJIBAEBCgAyFiEEmwPruYMA35fCsSO/zIxr3RQD9MoFAmke7Q4UHHJvZWhsaW5n
QGRlYmlhbi5vcmcACgkQzIxr3RQD9MqHRxAAiPr7DOvys0Zy9kMsJT05ikVUo0t7
3wgNhwQ9Aj5JSoteqQv0blfedbdonrHaIyHmRynA3xuZVsB04jMrgpq6mykxzjfF
822leIjyD0dC46n7ye6xQ4ewG8s/wbjXOKv3hRu+2AqBwNeOPR3adSmZA9zXWfrK
YQAh3vUOSLzLe88Uavc037UVZX64ZBM9lQCMjibX2zBWRhSWI7VUlGk6rLkG6PqV
oMeBKH0SnBu9eEMu/srQ9Xe6/hULE5xOz9UJcumOf6sYRzpG0zWnDoQfmc5uIO9q
L3xBc+ac6uUIDbG9jYWkKPgIl/rjiRFX95xNkJZOZnQCWbkaW58LLmqOdLoHuDmY
hepPuhwnlKk6We8PRKwaNabDlHk2UyRbQLMmHh108FPkIcvLi4rt2j6p6uiWdlWP
LIEWpKp5jmJQPBkXp7w+eqo2oAyJbrkmzgomMBI8nUycy+a0Jqppoh5j6bhp0Dq2
bwR+KDKETG/iG/nrcIhAwGIH/cDL7Bk2MMVfGpFbNFit8R66k/SOLYkMvJ2NqXln
IpDjk0nnawATS3FJjtkddG6BZLbijzEOcXpKQ+7Cdtu2HB97PCci0gMzTHb0pYdu
OcjEG4CLcvzw74IpoBw2UMUAzrczACGsk1fme0+7phG/vcW2mFmAIzlIoSLdNPLu
UINg6R1PAp94VME=
=iC0a
-----END PGP SIGNATURE-----

Attachment: pgp4_hE2e9MQs.pgp
Description: PGP signature


--- End Message ---

Reply via email to