#1139392 python-firebase-messaging: FTBFS with aiohttp 3.14

#1139392#5
Date:
2026-06-08 23:14:07 UTC
From:
To:
Dear maintainer:

During a rebuild of all packages in unstable, this package failed to build.

Below you will find the last part of the build log (probably the most
relevant part, but not necessarily). If required, the full build log
is available here:

https://people.debian.org/~sanvila/build-logs/202606/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you cannot reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:python-firebase-messaging, so that this is still
visible in the BTS web page for this package.

Thanks.
--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
   dh_autoreconf_clean -O--buildsystem=pybuild
   dh_clean -O--buildsystem=pybuild
 debian/rules binary
dh binary --buildsystem=pybuild
   dh_update_autotools_config -O--buildsystem=pybuild
   dh_autoreconf -O--buildsystem=pybuild
   dh_auto_configure -O--buildsystem=pybuild
   dh_auto_build -O--buildsystem=pybuild
I: pybuild plugin_pyproject:142: Building wheel for python3.14 with "build" module
I: pybuild base:385: python3.14 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_python-firebase-messaging

[... snipped ...]

             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/aioresponses/core.py", line 512, in _request_mock
    response = await self.match(method, url, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/aioresponses/core.py", line 456, in match
    response_or_exc = await matcher.build_response(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        url, allow_redirects=allow_redirects, **kwargs
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/lib/python3/dist-packages/aioresponses/core.py", line 202, in build_response
    resp = self._build_response(
        url=url,
    ...<7 lines>...
        response_class=result.response_class,
        reason=result.reason)
  File "/usr/lib/python3/dist-packages/aioresponses/core.py", line 171, in _build_response
    resp = response_class(method, url, **kwargs)
TypeError: ClientResponse.__init__() missing 1 required keyword-only argument: 'stream_writer'
WARNING  firebase_messaging.fcmregister:fcmregister.py:163 Error during gcm checkin post attempt 2 out of 3
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_python-firebase-messaging/build/firebase_messaging/fcmregister.py", line 136, in gcm_check_in
    async with self._session.post(
               ~~~~~~~~~~~~~~~~~~^
        url=GCM_CHECKIN_URL,
        ^^^^^^^^^^^^^^^^^^^^
    ...<2 lines>...
        timeout=self.CLIENT_TIMEOUT,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ) as resp:
    ^
  File "/usr/lib/python3/dist-packages/aiohttp/client.py", line 1683, in __aenter__
    self._resp: _RetType_co = await self._coro
                              ^^^^^^^^^^^^^^^^
  File "<string>", line 3, in _request
  File "/usr/lib/python3.13/unittest/mock.py", line 2332, in _execute_mock_call
    result = await effect(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/aioresponses/core.py", line 512, in _request_mock
    response = await self.match(method, url, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/aioresponses/core.py", line 456, in match
    response_or_exc = await matcher.build_response(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        url, allow_redirects=allow_redirects, **kwargs
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/lib/python3/dist-packages/aioresponses/core.py", line 202, in build_response
    resp = self._build_response(
        url=url,
    ...<7 lines>...
        response_class=result.response_class,
        reason=result.reason)
  File "/usr/lib/python3/dist-packages/aioresponses/core.py", line 171, in _build_response
    resp = response_class(method, url, **kwargs)
TypeError: ClientResponse.__init__() missing 1 required keyword-only argument: 'stream_writer'
WARNING  firebase_messaging.fcmregister:fcmregister.py:163 Error during gcm checkin post attempt 3 out of 3
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_python-firebase-messaging/build/firebase_messaging/fcmregister.py", line 136, in gcm_check_in
    async with self._session.post(
               ~~~~~~~~~~~~~~~~~~^
        url=GCM_CHECKIN_URL,
        ^^^^^^^^^^^^^^^^^^^^
    ...<2 lines>...
        timeout=self.CLIENT_TIMEOUT,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ) as resp:
    ^
  File "/usr/lib/python3/dist-packages/aiohttp/client.py", line 1683, in __aenter__
    self._resp: _RetType_co = await self._coro
                              ^^^^^^^^^^^^^^^^
  File "<string>", line 3, in _request
  File "/usr/lib/python3.13/unittest/mock.py", line 2332, in _execute_mock_call
    result = await effect(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/aioresponses/core.py", line 512, in _request_mock
    response = await self.match(method, url, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/aioresponses/core.py", line 456, in match
    response_or_exc = await matcher.build_response(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        url, allow_redirects=allow_redirects, **kwargs
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/lib/python3/dist-packages/aioresponses/core.py", line 202, in build_response
    resp = self._build_response(
        url=url,
    ...<7 lines>...
        response_class=result.response_class,
        reason=result.reason)
  File "/usr/lib/python3/dist-packages/aioresponses/core.py", line 171, in _build_response
    resp = response_class(method, url, **kwargs)
TypeError: ClientResponse.__init__() missing 1 required keyword-only argument: 'stream_writer'
ERROR    firebase_messaging.fcmregister:fcmregister.py:172 Unable to checkin to gcm after 3 retries

                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/test_fcmpushclient.py:137:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
tests/conftest.py:79: in _logged_in_push_client
    await pr.checkin_or_register()
firebase_messaging/fcmpushclient.py:738: in checkin_or_register
    self.credentials = await self.register.checkin_or_register()
                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
firebase_messaging/fcmregister.py:458: in checkin_or_register
    self.credentials = await self.register()
                       ^^^^^^^^^^^^^^^^^^^^^
firebase_messaging/fcmregister.py:477: in register
    gcm_data = await self.gcm_check_in_and_register()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <firebase_messaging.fcmregister.FcmRegister object at 0x7f878d1d2350>

    async def gcm_check_in_and_register(
        self,
    ) -> dict[str, Any] | None:
        options = await self.gcm_check_in()
        if not options:
firebase_messaging/fcmregister.py:108: RuntimeError
------------------------------ Captured log call -------------------------------
WARNING  firebase_messaging.fcmregister:fcmregister.py:163 Error during gcm checkin post attempt 1 out of 3
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_python-firebase-messaging/build/firebase_messaging/fcmregister.py", line 136, in gcm_check_in
    async with self._session.post(
               ~~~~~~~~~~~~~~~~~~^
        url=GCM_CHECKIN_URL,
        ^^^^^^^^^^^^^^^^^^^^
    ...<2 lines>...
        timeout=self.CLIENT_TIMEOUT,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ) as resp:
    ^
  File "/usr/lib/python3/dist-packages/aiohttp/client.py", line 1683, in __aenter__
    self._resp: _RetType_co = await self._coro
                              ^^^^^^^^^^^^^^^^
  File "<string>", line 3, in _request
  File "/usr/lib/python3.13/unittest/mock.py", line 2332, in _execute_mock_call
    result = await effect(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/aioresponses/core.py", line 512, in _request_mock
    response = await self.match(method, url, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/aioresponses/core.py", line 456, in match
    response_or_exc = await matcher.build_response(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        url, allow_redirects=allow_redirects, **kwargs
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/lib/python3/dist-packages/aioresponses/core.py", line 202, in build_response
    resp = self._build_response(
        url=url,
    ...<7 lines>...
        response_class=result.response_class,
        reason=result.reason)
  File "/usr/lib/python3/dist-packages/aioresponses/core.py", line 171, in _build_response
    resp = response_class(method, url, **kwargs)
TypeError: ClientResponse.__init__() missing 1 required keyword-only argument: 'stream_writer'
WARNING  firebase_messaging.fcmregister:fcmregister.py:163 Error during gcm checkin post attempt 2 out of 3
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_python-firebase-messaging/build/firebase_messaging/fcmregister.py", line 136, in gcm_check_in
    async with self._session.post(
               ~~~~~~~~~~~~~~~~~~^
        url=GCM_CHECKIN_URL,
        ^^^^^^^^^^^^^^^^^^^^
    ...<2 lines>...
        timeout=self.CLIENT_TIMEOUT,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ) as resp:
    ^
  File "/usr/lib/python3/dist-packages/aiohttp/client.py", line 1683, in __aenter__
    self._resp: _RetType_co = await self._coro
                              ^^^^^^^^^^^^^^^^
  File "<string>", line 3, in _request
  File "/usr/lib/python3.13/unittest/mock.py", line 2332, in _execute_mock_call
    result = await effect(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/aioresponses/core.py", line 512, in _request_mock
    response = await self.match(method, url, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/aioresponses/core.py", line 456, in match
    response_or_exc = await matcher.build_response(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        url, allow_redirects=allow_redirects, **kwargs
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/lib/python3/dist-packages/aioresponses/core.py", line 202, in build_response
    resp = self._build_response(
        url=url,
    ...<7 lines>...
        response_class=result.response_class,
        reason=result.reason)
  File "/usr/lib/python3/dist-packages/aioresponses/core.py", line 171, in _build_response
    resp = response_class(method, url, **kwargs)
TypeError: ClientResponse.__init__() missing 1 required keyword-only argument: 'stream_writer'
WARNING  firebase_messaging.fcmregister:fcmregister.py:163 Error during gcm checkin post attempt 3 out of 3
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_python-firebase-messaging/build/firebase_messaging/fcmregister.py", line 136, in gcm_check_in
    async with self._session.post(
               ~~~~~~~~~~~~~~~~~~^
        url=GCM_CHECKIN_URL,
        ^^^^^^^^^^^^^^^^^^^^
    ...<2 lines>...
        timeout=self.CLIENT_TIMEOUT,
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    ) as resp:
    ^
  File "/usr/lib/python3/dist-packages/aiohttp/client.py", line 1683, in __aenter__
    self._resp: _RetType_co = await self._coro
                              ^^^^^^^^^^^^^^^^
  File "<string>", line 3, in _request
  File "/usr/lib/python3.13/unittest/mock.py", line 2332, in _execute_mock_call
    result = await effect(*args, **kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/aioresponses/core.py", line 512, in _request_mock
    response = await self.match(method, url, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/aioresponses/core.py", line 456, in match
    response_or_exc = await matcher.build_response(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        url, allow_redirects=allow_redirects, **kwargs
        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    )
    ^
  File "/usr/lib/python3/dist-packages/aioresponses/core.py", line 202, in build_response
    resp = self._build_response(
        url=url,
    ...<7 lines>...
        response_class=result.response_class,
        reason=result.reason)
  File "/usr/lib/python3/dist-packages/aioresponses/core.py", line 171, in _build_response
    resp = response_class(method, url, **kwargs)
TypeError: ClientResponse.__init__() missing 1 required keyword-only argument: 'stream_writer'
ERROR    firebase_messaging.fcmregister:fcmregister.py:172 Unable to checkin to gcm after 3 retriesUnclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7f878d125450>
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7f878d178e10>
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7f878d127110>

=============================== warnings summary ===============================
../../../../../../usr/lib/python3/dist-packages/google/protobuf/internal/well_known_types.py:91
  /usr/lib/python3/dist-packages/google/protobuf/internal/well_known_types.py:91: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC).
    _EPOCH_DATETIME_NAIVE = datetime.datetime.utcfromtimestamp(0)