Bug#1056038: python-thinc ftbfs with Python 3.12 (and cython 3.0.5)
Matthias Klose
doko at debian.org
Thu Nov 16 08:41:09 GMT 2023
Package: src:python-thinc
Version: 8.1.7-1
Severity: important
Tags: sid trixie
User: debian-python at lists.debian.org
Usertags: python3.12
python-thinc ftbfs with Python 3.12 (and cython 3.0.5):
[...]
Error compiling Cython file:
------------------------------------------------------------
...
dims = table.shape[1]
cdef np.ndarray output
if reals2d_ft is float2d_t:
output = self.xp.zeros((rows, dims), dtype="float32")
cpu_gather_add(saxpy(cblas), <float *>output.data,
&table[0, 0], &indices[0, 0],
^
------------------------------------------------------------
thinc/backends/numpy_ops.pyx:448:32: Cannot assign type 'saxpy_ptr' to
'ptr'. Exception values are incompatible. Suggest adding 'noexcept' to
type 'void (int, float, const float *, int, float *, int) except * nogil'.
Error compiling Cython file:
------------------------------------------------------------
...
dims = table.shape[1]
cdef np.ndarray output
if reals2d_ft is float2d_t:
output = self.xp.zeros((rows, dims), dtype="float32")
cpu_gather_add(saxpy(cblas), <float *>output.data,
&table[0, 0], &indices[0, 0],
^
------------------------------------------------------------
thinc/backends/numpy_ops.pyx:448:32: Cannot assign type 'saxpy_ptr' to
'ptr'. Exception values are incompatible. Suggest adding 'noexcept' to
type 'void (int, float, const float *, int, float *, int) except * nogil'.
Error compiling Cython file:
------------------------------------------------------------
...
output = self.xp.zeros((rows, dims), dtype="float32")
cpu_gather_add(saxpy(cblas), <float *>output.data,
&table[0, 0], &indices[0, 0],
table.shape[0], dims, rows, indices.shape[1])
else:
output = self.xp.zeros((rows, dims), dtype="float64")
cpu_gather_add(daxpy(cblas), <double *>output.data,
&table[0, 0], &indices[0, 0],
^
------------------------------------------------------------
thinc/backends/numpy_ops.pyx:452:32: Cannot assign type 'daxpy_ptr' to
'ptr'. Exception values are incompatible. Suggest adding 'noexcept' to
type 'void (int, double, const double *, int, double *, int) except *
nogil'.
Error compiling Cython file:
------------------------------------------------------------
...
output = self.xp.zeros((rows, dims), dtype="float32")
cpu_gather_add(saxpy(cblas), <float *>output.data,
&table[0, 0], &indices[0, 0],
table.shape[0], dims, rows, indices.shape[1])
else:
output = self.xp.zeros((rows, dims), dtype="float64")
cpu_gather_add(daxpy(cblas), <double *>output.data,
&table[0, 0], &indices[0, 0],
^
------------------------------------------------------------
thinc/backends/numpy_ops.pyx:452:32: Cannot assign type 'daxpy_ptr' to
'ptr'. Exception values are incompatible. Suggest adding 'noexcept' to
type 'void (int, double, const double *, int, double *, int) except *
nogil'.
complete build log at
https://launchpadlibrarian.net/697893737/buildlog_ubuntu-noble-amd64.python-thinc_8.1.7-1build1_BUILDING.txt.gz
More information about the debian-science-maintainers
mailing list