[Debian-astro-maintainers] Bug#1071703: gammapy: test fail with scipy 1.12

Drew Parsons dparsons at debian.org
Fri May 24 01:03:37 BST 2024


Source: gammapy
Version: 1.1-4
Severity: normal

gammpy appears to be using a deprecated RootResults API that fails
with scipy 1.12

 92s ________________________ ERROR collecting test session _________________________
 92s /usr/lib/python3.11/importlib/__init__.py:126: in import_module
 92s     return _bootstrap._gcd_import(name[level:], package, level)
 92s <frozen importlib._bootstrap>:1204: in _gcd_import
 92s     ???
 92s <frozen importlib._bootstrap>:1176: in _find_and_load
 92s     ???
 92s <frozen importlib._bootstrap>:1147: in _find_and_load_unlocked
 92s     ???
 92s <frozen importlib._bootstrap>:690: in _load_unlocked
 92s     ???
 92s /usr/lib/python3/dist-packages/_pytest/assertion/rewrite.py:178: in exec_module
 92s     exec(co, module.__dict__)
 92s /usr/lib/python3/dist-packages/gammapy/conftest.py:13: in <module>
 92s     from gammapy.datasets import SpectrumDataset
 92s /usr/lib/python3/dist-packages/gammapy/datasets/__init__.py:2: in <module>
 92s     from .core import Dataset, Datasets
 92s /usr/lib/python3/dist-packages/gammapy/datasets/core.py:10: in <module>
 92s     from gammapy.modeling.models import DatasetModels, Models
 92s /usr/lib/python3/dist-packages/gammapy/modeling/__init__.py:4: in <module>
 92s     from .fit import Fit
 92s /usr/lib/python3/dist-packages/gammapy/modeling/fit.py:15: in <module>
 92s     from .scipy import confidence_scipy, optimize_scipy
 92s /usr/lib/python3/dist-packages/gammapy/modeling/scipy.py:5: in <module>
 92s     from gammapy.utils.roots import find_roots
 92s /usr/lib/python3/dist-packages/gammapy/utils/roots.py:9: in <module>
 92s     BAD_RES = RootResults(root=np.nan, iterations=0, function_calls=0, flag=0)
 92s E   TypeError: RootResults.__init__() missing 1 required positional argument: 'method'



This bug will become serious when scipy 1.12 is uploaded to unstable
in the near future.



More information about the Debian-astro-maintainers mailing list