[Debian-astro-maintainers] Bug#1078477: gammapy: FTBFS (test failure) on big-endian architectures

Graham Inggs ginggs at debian.org
Sun Aug 11 10:51:14 BST 2024


Source: gammapy
Version: 1.2-1
Severity: serious
Tags: ftbfs
X-Debbugs-Cc: Alexandre Detiste <tchet at debian.org>

Hi Maintainer

The upload of gammapy 1.2-1 introduced a FTBFS on big-endian
architectures [1].  I've copied what I hope is the relevant part of
the log below.

Regards
Graham


[1] https://buildd.debian.org/status/logs.php?pkg=gammapy&arch=s390x


=================================== FAILURES ===================================
____________________________ test_obscore_structure ____________________________

    def test_obscore_structure():
        obscore_default_tab = empty_obscore_table()
        assert len(obscore_default_tab.columns) == 29
        assert len(obscore_default_tab["dataproduct_type"]) == 0
        assert obscore_default_tab.colnames[0] == "dataproduct_type"
>       assert obscore_default_tab.columns[0].dtype == "<U10"
E       AssertionError: assert dtype('>U10') == '<U10'
E        +  where dtype('>U10') = <Column name='dataproduct_type'
dtype='str10' unit='' description='Data product (file content) primary
type' length=0>\n.dtype

gammapy/data/tests/test_ivoa.py:12: AssertionError
_________________________ test_parameters_create_table _________________________

    def test_parameters_create_table():
        table = Parameters._create_default_table()

        assert len(table) == 0
        assert len(table.columns) == 11

        assert table.colnames == [
            "type",
            "name",
            "value",
            "unit",
            "error",
            "min",
            "max",
            "frozen",
            "is_norm",
            "link",
            "prior",
        ]
>       assert table.dtype == np.dtype(
            [
                ("type", "<U1"),
                ("name", "<U1"),
                ("value", "<f8"),
                ("unit", "<U1"),
                ("error", "<f8"),
                ("min", "<f8"),
                ("max", "<f8"),
                ("frozen", "?"),
                ("is_norm", "?"),
                ("link", "<U1"),
                ("prior", "<U1"),
            ]
        )
E       AssertionError: assert dtype([('type', '>U1'), ('name',
'>U1'), ('value', '>f8'), ('unit', '>U1'), ('error', '>f8'), ('min',
'>f8'), ('max', '>f8'), ('frozen', '?'), ('is_norm', '?'), ('link',
'>U1'), ('prior', '>U1')]) == dtype([('type', '<U1'), ('name', '<U1'),
('value', '<f8'), ('unit', '<U1'), ('error', '<f8'), ('min', '<f8'),
('max', '<f8'), ('frozen', '?'), ('is_norm', '?'), ('link', '<U1'),
('prior', '<U1')])
E        +  where dtype([('type', '>U1'), ('name', '>U1'), ('value',
'>f8'), ('unit', '>U1'), ('error', '>f8'), ('min', '>f8'), ('max',
'>f8'), ('frozen', '?'), ('is_norm', '?'), ('link', '>U1'), ('prior',
'>U1')]) = <Table length=0>\ntype name  value  unit  error    min
max   frozen is_norm link prior\nstr1 str1 float64 str1 float64
float64 float64  bool    bool  str1  str1\n---- ---- ------- ----
------- ------- ------- ------ ------- ---- -----.dtype
E        +  and   dtype([('type', '<U1'), ('name', '<U1'), ('value',
'<f8'), ('unit', '<U1'), ('error', '<f8'), ('min', '<f8'), ('max',
'<f8'), ('frozen', '?'), ('is_norm', '?'), ('link', '<U1'), ('prior',
'<U1')]) = <class 'numpy.dtype'>([('type', '<U1'), ('name', '<U1'),
('value', '<f8'), ('unit', '<U1'), ('error', '<f8'), ('min', '<f8'),
...])
E        +    where <class 'numpy.dtype'> = np.dtype

gammapy/modeling/tests/test_parameter.py:202: AssertionError



More information about the Debian-astro-maintainers mailing list