[Debian-astro-maintainers] Bug#1122082: FTBFS: astropy.utils.exceptions.AstropyDeprecationWarning

Andrey Rakhmatullin wrar at debian.org
Sat Dec 6 17:38:51 GMT 2025


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

Found during the Python 3.14 rebuild but I think it fails on 3.13 too:

_________________________________ test_basics
__________________________________

    def test_basics():
        random_state = np.random.RandomState(seed=0)
        obs_table = make_test_observation_table(n_obs=10,
random_state=random_state)
        assert obs_table.summary().startswith("Observation table")

>       filtered = obs_table.select_obs_id(1)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^

gammapy/data/tests/test_obs_table.py:213:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
gammapy/data/obs_table.py:75: in select_obs_id
    return self.__class__(self.loc["OBS_ID", obs_id])
                          ^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/astropy/table/index.py:1234: in __getitem__
    rows = self._get_row_idxs_as_list_or_int(item)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/astropy/table/index.py:1197: in
_get_row_idxs_as_list_or_int
    index_id, item = self._get_index_id_and_item(item)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/usr/lib/python3/dist-packages/astropy/table/index.py:1132: in
_get_index_id_and_item
    index_id, item = interpret_item_as_index_id_and_item(item)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

args = (('OBS_ID', 1),), kwargs = {}
category = <class 'astropy.utils.exceptions.AstropyDeprecationWarning'>

    def deprecated_func(*args, **kwargs):
        if pending:
            category = pending_warning_type
        else:
            category = warning_type

>       warnings.warn(message, category, stacklevel=2)
E       astropy.utils.exceptions.AstropyDeprecationWarning: Calling
`Table.loc/iloc/loc_indices[index_id, item]` to select `item` from index
E       `index_id` is deprecated. Instead select the index using the syntax
E       `Table.loc/iloc/loc_indices.with_index(index_id)[item]`.


https://buildd.debian.org/status/fetch.php?pkg=gammapy&arch=arm64&ver=2.0-3%2Bb1&stamp=1765042343&raw=0


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

Kernel: Linux 6.17.7+deb14+1-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-astro-maintainers mailing list