[Debian-astro-maintainers] Bug#1079675: healpy: tests fail to start with scipy 1.14

Drew Parsons dparsons at debian.org
Mon Aug 26 08:43:35 BST 2024


Source: healpy
Version: 1.16.6-2
Severity: normal

healpy is unable to collect tests with scipy 1.14 (in experimental),
apparently due to an API change

 60s autopkgtest [19:10:52]: test python3-healpy: [-----------------------
 61s ============================= test session starts ==============================
 61s platform linux -- Python 3.12.5, pytest-8.3.2, pluggy-1.5.0
 61s rootdir: /tmp/autopkgtest-lxc.e8vli5vp/downtmp/autopkgtest_tmp
 61s plugins: cython-0.1.1, astropy-0.11.0, remotedata-0.4.1, mock-3.14.0, filter-subpackage-0.2.0, doctestplus-1.2.1, cov-5.0.0, astropy-header-0.2.2, arraydiff-0.6.1, typeguard-4.3.0, hypothesis-6.105.1
 61s collected 31 items / 11 errors / 2 deselected / 29 selected
 61s 
 61s ==================================== ERRORS ====================================
 61s _________________________ ERROR collecting __init__.py _________________________
 61s ImportError while importing test module '/usr/lib/python3/dist-packages/healpy/__init__.py'.
 61s Hint: make sure your test modules/packages have valid Python names.
 61s Traceback:
 61s /usr/lib/python3.12/importlib/__init__.py:90: in import_module
 61s     return _bootstrap._gcd_import(name[level:], package, level)
 61s /usr/lib/python3/dist-packages/healpy/__init__.py:67: in <module>
 61s     from .sphtfunc import (
 61s /usr/lib/python3/dist-packages/healpy/sphtfunc.py:27: in <module>
 61s     from scipy.integrate import trapz
 61s E   ImportError: cannot import name 'trapz' from 'scipy.integrate' (/usr/lib/python3/dist-packages/scipy/integrate/__init__.py)
 61s _________________________ ERROR collecting cookbook.py _________________________
 61s ImportError while importing test module '/usr/lib/python3/dist-packages/healpy/cookbook.py'.
 61s Hint: make sure your test modules/packages have valid Python names.
 61s Traceback:
 61s /usr/lib/python3.12/importlib/__init__.py:90: in import_module
 61s     return _bootstrap._gcd_import(name[level:], package, level)
 61s /usr/lib/python3/dist-packages/healpy/__init__.py:67: in <module>
 61s     from .sphtfunc import (
 61s /usr/lib/python3/dist-packages/healpy/sphtfunc.py:27: in <module>
 61s     from scipy.integrate import trapz
 61s E   ImportError: cannot import name 'trapz' from 'scipy.integrate' (/usr/lib/python3/dist-packages/scipy/integrate/__init__.py)
 61s _________________________ ERROR collecting fitsfunc.py _________________________
 61s ImportError while importing test module '/usr/lib/python3/dist-packages/healpy/fitsfunc.py'.
 ...
 

Test log at
https://ci.debian.net/packages/h/healpy/unstable/amd64/50977856/


The problem is fixed upstream in 1.17.2.



More information about the Debian-astro-maintainers mailing list