🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.rc
Article #3660

Bug#1154536: pyrail: FTBFS and failing autopkgtests with Python 3.15

#3660
From: Stuart Prescott
Date: Fri, 20 Nov 2026 02:30
146 lines
9279 bytes
Package: pyrail
Version: 0.6.1-1
Severity: serious
Tags: ftbfs
X-Debbugs-Cc: stuart@debian.org

Dear Maintainer,

pyrail's test suite generates new DeprecationWarning output with Python
3.15 which causes pytest to fail the test suite. This causes a FTBFS
when rebuilding the current package and also causes the autopkgtests to
fail.

The DeprecationWarning does not come from pyrail's own source but from
a dependency; pyrail needs to ignore the DeprecationWarning in its
pytest config until the dependency updates.

//---

D: pybuild tools:297: invoking: cd /build/pyrail-36hWG7/pyrail-0.6.1/.pybuild/cpython3_3.15/build; python3.15 -m pytest -k "not test_get_stations and not test_get_stations and not test_get_liveboard and not test_get_connections and not test_get_vehicle and not test_get_composition and not test_get_disturbances and not test_liveboard_with_date_time"
============================= test session starts ==============================
platform linux -- Python 3.15.2, pytest-9.1.1, pluggy-1.6.0
rootdir: /build/pyrail-36hWG7/pyrail-0.6.1/.pybuild/cpython3_3.15/build
configfile: pyproject.toml
testpaths: tests
plugins: asyncio-1.4.0
asyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=None, asyncio_default_test_loop_scope=function
collected 0 items / 3 errors

==================================== ERRORS ====================================
_________________________ ERROR collecting tests/live __________________________
/usr/lib/python3.15/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<frozen importlib._bootstrap>:1389: in _gcd_import
    ???
<frozen importlib._bootstrap>:1353: in _find_and_load
    ???
<frozen importlib._bootstrap>:1249: in _find_and_load_unlocked
    ???
<frozen importlib._bootstrap>:857: in _load_unlocked
    ???
/usr/lib/python3/dist-packages/_pytest/assertion/rewrite.py:188: in exec_module
    exec(co, module.__dict__)
tests/live/conftest.py:14: in <module>
    from pyrail.irail import IRail
pyrail/__init__.py:14: in <module>
    from .irail import IRail
pyrail/irail.py:25: in <module>
    from pyrail.models import (
pyrail/models.py:62: in <module>
    class ApiResponse(DataClassORJSONMixin):
/usr/lib/python3/dist-packages/mashumaro/mixins/dict.py:26: in __init_subclass__
    compile_mixin_unpacker(cls, **builder_params["unpacker"])
/usr/lib/python3/dist-packages/mashumaro/core/meta/mixin.py:49: in compile_mixin_unpacker
    builder.add_unpack_method()
/usr/lib/python3/dist-packages/mashumaro/core/meta/code/builder.py:578: in add_unpack_method
    self._add_unpack_method_lines(method_name)
/usr/lib/python3/dist-packages/mashumaro/core/meta/code/builder.py:483: in _add_unpack_method_lines
    ).build(
/usr/lib/python3/dist-packages/mashumaro/core/meta/code/builder.py:1324: in build
    unpacked_value = UnpackerRegistry.get(
/usr/lib/python3/dist-packages/mashumaro/core/meta/types/common.py:222: in get
    expr = packer(spec)
           ^^^^^^^^^^^^
/usr/lib/python3/dist-packages/mashumaro/core/meta/types/unpack.py:1256: in unpack_collection
    if issubclass(spec.origin_type, typing.ByteString):  # type: ignore
                                    ^^^^^^^^^^^^^^^^^
/usr/lib/python3.15/typing.py:3907: in __getattr__
    warnings._deprecated(
/usr/lib/python3.15/_py_warnings.py:892: in _deprecated
    _wm.warn(msg, DeprecationWarning, stacklevel=3)
E   DeprecationWarning: 'typing.ByteString' and 'collections.abc.ByteString' are deprecated and slated for removal in Python 3.17
_____________________ ERROR collecting tests/test_irail.py _____________________
tests/test_irail.py:19: in <module>
    import pyrail
pyrail/__init__.py:14: in <module>
    from .irail import IRail
pyrail/irail.py:25: in <module>
    from pyrail.models import (
pyrail/models.py:62: in <module>
    class ApiResponse(DataClassORJSONMixin):
/usr/lib/python3/dist-packages/mashumaro/mixins/dict.py:26: in __init_subclass__
    compile_mixin_unpacker(cls, **builder_params["unpacker"])
/usr/lib/python3/dist-packages/mashumaro/core/meta/mixin.py:49: in compile_mixin_unpacker
    builder.add_unpack_method()
/usr/lib/python3/dist-packages/mashumaro/core/meta/code/builder.py:578: in add_unpack_method
    self._add_unpack_method_lines(method_name)
/usr/lib/python3/dist-packages/mashumaro/core/meta/code/builder.py:483: in _add_unpack_method_lines
    ).build(
/usr/lib/python3/dist-packages/mashumaro/core/meta/code/builder.py:1324: in build
    unpacked_value = UnpackerRegistry.get(
/usr/lib/python3/dist-packages/mashumaro/core/meta/types/common.py:222: in get
    expr = packer(spec)
           ^^^^^^^^^^^^
/usr/lib/python3/dist-packages/mashumaro/core/meta/types/unpack.py:1256: in unpack_collection
    if issubclass(spec.origin_type, typing.ByteString):  # type: ignore
                                    ^^^^^^^^^^^^^^^^^
/usr/lib/python3.15/typing.py:3907: in __getattr__
    warnings._deprecated(
/usr/lib/python3.15/_py_warnings.py:892: in _deprecated
    _wm.warn(msg, DeprecationWarning, stacklevel=3)
E   DeprecationWarning: 'typing.ByteString' and 'collections.abc.ByteString' are deprecated and slated for removal in Python 3.17
________________ ERROR collecting tests/test_live_api_helper.py ________________
tests/test_live_api_helper.py:11: in <module>
    from tests.live.live_api import ATTEMPTS, INCOMPATIBLE, REJECTED, UNAVAILABLE, LiveApi
tests/live/live_api.py:17: in <module>
    from pyrail.irail import IRail
pyrail/__init__.py:14: in <module>
    from .irail import IRail
pyrail/irail.py:25: in <module>
    from pyrail.models import (
pyrail/models.py:62: in <module>
    class ApiResponse(DataClassORJSONMixin):
/usr/lib/python3/dist-packages/mashumaro/mixins/dict.py:26: in __init_subclass__
    compile_mixin_unpacker(cls, **builder_params["unpacker"])
/usr/lib/python3/dist-packages/mashumaro/core/meta/mixin.py:49: in compile_mixin_unpacker
    builder.add_unpack_method()
/usr/lib/python3/dist-packages/mashumaro/core/meta/code/builder.py:578: in add_unpack_method
    self._add_unpack_method_lines(method_name)
/usr/lib/python3/dist-packages/mashumaro/core/meta/code/builder.py:483: in _add_unpack_method_lines
    ).build(
/usr/lib/python3/dist-packages/mashumaro/core/meta/code/builder.py:1324: in build
    unpacked_value = UnpackerRegistry.get(
/usr/lib/python3/dist-packages/mashumaro/core/meta/types/common.py:222: in get
    expr = packer(spec)
           ^^^^^^^^^^^^
/usr/lib/python3/dist-packages/mashumaro/core/meta/types/unpack.py:1256: in unpack_collection
    if issubclass(spec.origin_type, typing.ByteString):  # type: ignore
                                    ^^^^^^^^^^^^^^^^^
/usr/lib/python3.15/typing.py:3907: in __getattr__
    warnings._deprecated(
/usr/lib/python3.15/_py_warnings.py:892: in _deprecated
    _wm.warn(msg, DeprecationWarning, stacklevel=3)
E   DeprecationWarning: 'typing.ByteString' and 'collections.abc.ByteString' are deprecated and slated for removal in Python 3.17
=========================== short test summary info ============================
ERROR tests/live - DeprecationWarning: 'typing.ByteString' and 'collections.a...
ERROR tests/test_irail.py - DeprecationWarning: 'typing.ByteString' and 'coll...
ERROR tests/test_live_api_helper.py - DeprecationWarning: 'typing.ByteString'...
!!!!!!!!!!!!!!!!!!! Interrupted: 3 errors during collection !!!!!!!!!!!!!!!!!!!!
============================== 3 errors in 0.42s ===============================

---//

regards
Stuart
Technical Details
Message-ID: <O1mxX-d03G-1@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Stuart Prescott <stuart@debian.org>
Newsgroups: linux.debian.bugs.rc
Subject: Bug#1154536: pyrail: FTBFS and failing autopkgtests with Python 3.15
Date: Fri, 20 Nov 2026 03:30:01 +0100
Message-ID: <O1mxX-d03G-1@gated-at.bofh.it>
X-Original-To: Debian Bug Tracking System <submit@bugs.debian.org>
X-Mailbox-Line: From debian-bugs-rc-request@lists.debian.org  Fri Nov 20 02:23:08 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.9
Reply-To: Stuart Prescott <stuart@debian.org>, 1154536@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: stuart@debian.org, team+homeassistant@tracker.debian.org
X-Debian-Pr-Message: report 1154536
X-Debian-Pr-Package: pyrail
X-Debian-Pr-Keywords: ftbfs
X-Debian-Pr-Source: pyrail
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Mailer: reportbug 13.2.0
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-rc@lists.debian.org> archive/latest/838914
List-ID: <debian-bugs-rc.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-rc/>
Approved: robomod@news.nic.it
Lines: 146
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Fri, 20 Nov 2026 13:21:05 +1100
X-Original-Message-ID: <179514126546.615322.7516534030572752153.reportbug@trochilus.nanonanonano.net>