[Debichem-devel] Bug#1094700: openmm: FTBFS with numpy 2.x: error: cannot convert ‘PyObject*’ {aka ‘_object*’} to ‘const PyArrayObject*’ {aka ‘const tagPyArrayObject_fields*’}
Andrey Rakhmatullin
wrar at debian.org
Thu Jan 30 10:39:18 GMT 2025
Source: openmm
Version: 8.1.2+dfsg-2
Severity: serious
Tags: ftbfs
Control: block 1082237 by -1
https://buildd.debian.org/status/fetch.php?pkg=openmm&arch=amd64&ver=8.1.2%2Bdfsg-2%2Bb1&stamp=1737990080&raw=0
In file included from /usr/lib/x86_64-linux-
gnu/python3-numpy/numpy/_core/include/numpy/ndarraytypes.h:1913,
from /usr/lib/x86_64-linux-
gnu/python3-numpy/numpy/_core/include/numpy/ndarrayobject.h:12,
from /usr/lib/x86_64-linux-
gnu/python3-numpy/numpy/_core/include/numpy/arrayobject.h:5,
from src/swig_doxygen/OpenMMSwig.cxx:7413:
/usr/lib/x86_64-linux-
gnu/python3-numpy/numpy/_core/include/numpy/npy_1_7_deprecated_api.h:17:2:
warning: #warning "Using deprecated NumPy API, disable it with " "#define
NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
17 | #warning "Using deprecated NumPy API, disable it with " \
| ^~~~~~~
src/swig_doxygen/OpenMMSwig.cxx: In function ‘int
Py_SequenceToVecVec3(PyObject*, std::vector<OpenMM::Vec3>&)’:
src/swig_doxygen/OpenMMSwig.cxx:7709:60: error: cannot convert ‘PyObject*’ {aka
‘_object*’} to ‘const PyArrayObject*’ {aka ‘const tagPyArrayObject_fields*’}
7709 | if (PyArray_Check(stripped) && PyArray_ISCARRAY_RO(stripped) &&
PyArray_NDIM(stripped) == 2 && PyArray_DIM(stripped, 1) == 3) {
| ^~~~~~~~
| |
| PyObject*
{aka _object*}
-- System Information:
Debian Release: trixie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.12.8-amd64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
More information about the Debichem-devel
mailing list