[Debian-astro-maintainers] Bug#1058047: gammapy: FTBFS with Python 3.12

Graham Inggs ginggs at debian.org
Mon Dec 11 17:46:22 GMT 2023


Source: gammapy
Version: 1.1-3
Severity: serious
Tags: ftbfs
User: debian-python at lists.debian.org
Usertags: python3.12

Hi Maintainer

gammapy FTBFS [1] with Python 3.12 as a supported version.  I've
copied what I hope is the relevant part of the log below.

Regards
Graham


[1] https://buildd.debian.org/status/package.php?p=gammapy


=================================== FAILURES ===================================
_____________________________ test_parameter_name ______________________________

    def test_parameter_name():
        with pytest.raises(RuntimeError):

>           class MyTestModel:

gammapy/modeling/models/tests/test_core.py:256:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = Parameter(name='wrong-name', value=3.0, factor=3.0, scale=1.0,
unit=Unit(dimensionless), min=nan, max=nan, frozen=False,
id=0xffff8e307aa0)
owner = <class 'gammapy.modeling.models.tests.test_core.test_parameter_name.<locals>.MyTestModel'>
name = 'par'

    def __set_name__(self, owner, name):
        if not self._name == name:
>           raise ValueError(f"Expected parameter name '{name}', got {self._name}")
E           ValueError: Expected parameter name 'par', got wrong-name
E           Error calling __set_name__ on 'Parameter' instance 'par'
in 'MyTestModel'

gammapy/modeling/parameter.py:165: ValueError



More information about the Debian-astro-maintainers mailing list