Bug#1088864: FTBFS: ImportError: cannot import name 'trapz' from 'scipy.integrate'

Andrey Rakhmatullin wrar at debian.org
Mon Dec 2 08:41:32 GMT 2024


Source: sasview
Version: 5.0.6-4
Severity: serious
Tags: ftbfs

________________ ERROR collecting test/corfunc/utest_corfunc.py
________________
ImportError while importing test module '/build/reproducible-
path/sasview-5.0.6/.pybuild/cpython3_3.12_sasview/build/test/corfunc/utest_corfunc.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.12/importlib/__init__.py:90: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
test/corfunc/utest_corfunc.py:12: in <module>
    from sas.sascalc.corfunc.corfunc_calculator import CorfuncCalculator
sas/sascalc/corfunc/corfunc_calculator.py:12: in <module>
    from sas.sascalc.corfunc.transform_thread import FourierThread
sas/sascalc/corfunc/transform_thread.py:4: in <module>
    from scipy.integrate import trapz, cumtrapz
E   ImportError: cannot import name 'trapz' from 'scipy.integrate'
(/usr/lib/python3/dist-packages/scipy/integrate/__init__.py)


https://docs.scipy.org/doc/scipy/release/1.14.0-notes.html#expired-deprecations

"scipy.integrate.{simps,trapz,cumtrapz} have been removed in favour of simpson,
trapezoid, and cumulative_trapezoid."


-- System Information:
Debian Release: trixie/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'testing-debug'), (500, 'unstable'), (500, 'testing'), (101, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 6.11.10-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 debian-science-maintainers mailing list