#1139413 python-renault-api: FTBFS with aiohttp 3.14

#1139413#5
Date:
2026-06-08 23:14:46 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-renault-api, 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

[... snipped ...]

/usr/lib/python3/dist-packages/aioresponses/core.py:202: in build_response
    resp = self._build_response(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <aioresponses.core.RequestMatch object at 0x7f3ee47fae10>
url = URL('https://api-wired-prod-1-euw1.wrd-aws.com/commerce/v1/accounts/account-id-1/vehicles/VF1AAAAA555777999/details?country=FR')
method = 'get'
request_headers = {'Content-type': 'application/vnd.api+json', 'apikey': 'YjkKtHmGfaceeuExUDKGxrLZGGvtVS0J', 'x-gigya-id_token': 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE3ODA5NTY5ODB9.9mcu2Cg3yzl2WFWGcpRVkxnH4IKS4y0hWA_NG3p76yI'}
status = 200
body = b'{\n  "vin": "VF1AAAAA555777999",\n  "registrationDate": "2017-08-01",\n  "firstRegistrationDate": "2017-08-01",\n  "...arsOfMaintenance": 12,\n  "deliveryDate": "2017-08-11",\n  "retrievedFromDhs": false,\n  "radioCode": "*PRIVATE*"\n}\n'
content_type = 'application/json', payload = None, headers = None
response_class = <class 'aiohttp.client_reqrep.ClientResponse'>, reason = 'OK'

    def _build_response(self, url: 'Union[URL, str]',
                        method: str = hdrs.METH_GET,
                        request_headers: Optional[Dict] = None,
                        status: int = 200,
                        body: Union[str, bytes] = '',
                        content_type: str = 'application/json',
                        payload: Optional[Dict] = None,
                        headers: Optional[Dict] = None,
                        response_class: Optional[Type[ClientResponse]] = None,
                        reason: Optional[str] = None) -> ClientResponse:
        if response_class is None:
            response_class = ClientResponse
        if payload is not None:
            body = json.dumps(payload)
        if not isinstance(body, bytes):
            body = str.encode(body)
        if request_headers is None:
            request_headers = {}
        loop = Mock()
        loop.get_debug = Mock()
        loop.get_debug.return_value = True
        kwargs = {}  # type: Dict[str, Any]
        kwargs['request_info'] = RequestInfo(
            url=url,
            method=method,
            headers=CIMultiDictProxy(CIMultiDict(**request_headers)),
        )
        kwargs['writer'] = None
        kwargs['continue100'] = None
        kwargs['timer'] = TimerNoop()
        kwargs['traces'] = []
        kwargs['loop'] = loop
        kwargs['session'] = None

        # We need to initialize headers manually
        _headers = CIMultiDict({hdrs.CONTENT_TYPE: content_type})
        if headers:
            _headers.update(headers)
        raw_headers = self._build_raw_headers(_headers)
/usr/lib/python3/dist-packages/aioresponses/core.py:171: TypeError
=============================== warnings summary ===============================
tests/cli/test_account.py: 3 warnings
tests/cli/test_client.py: 2 warnings
tests/cli/test_vehicle.py: 28 warnings
tests/cli/test_vehicle_charge.py: 31 warnings
tests/cli/test_vehicle_hvac.py: 7 warnings
tests/gigya/test_gigya.py: 1 warning
tests/kamereon/test_kamereon.py: 5 warnings
tests/test_credential.py: 1 warning
tests/test_credential_store.py: 3 warnings
tests/test_renault_account.py: 5 warnings
tests/test_renault_client.py: 5 warnings
tests/test_renault_session.py: 4 warnings
tests/test_renault_vehicle.py: 63 warnings
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/fixtures.py:41: DeprecationWarning: datetime.datetime.utcnow() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.now(datetime.UTC).
    payload={"exp": datetime.datetime.utcnow() + timedelta},

tests/cli/test_account.py: 3 warnings
tests/cli/test_client.py: 2 warnings
tests/cli/test_vehicle.py: 28 warnings
tests/cli/test_vehicle_charge.py: 31 warnings
tests/cli/test_vehicle_hvac.py: 7 warnings
tests/gigya/test_gigya.py: 1 warning
tests/kamereon/test_kamereon.py: 5 warnings
tests/test_credential.py: 1 warning
tests/test_credential_store.py: 3 warnings
tests/test_renault_account.py: 4 warnings
tests/test_renault_client.py: 4 warnings
tests/test_renault_session.py: 4 warnings
tests/test_renault_vehicle.py: 62 warnings
  /usr/lib/python3/dist-packages/jwt/api_jwt.py:147: InsecureKeyLengthWarning: The HMAC key is 4 bytes long, which is below the minimum recommended length of 32 bytes for SHA256. See RFC 7518 Section 3.2.
    return self._jws.encode(

tests/cli/test_vehicle_charge.py: 13 warnings
tests/cli/test_vehicle_hvac.py: 7 warnings
  /usr/lib/python3/dist-packages/dateparser/utils/strptime.py:94: DeprecationWarning: Parsing dates involving a day of month without a year specified is ambiguious
  and fails to parse leap day. The default behavior will change in Python 3.15
  to either always raise an exception or to use a different default year (TBD).
  To avoid trouble, add a specific year to the input & format.
  See https://github.com/python/cpython/issues/70647.
    obj = datetime(*__strptime(date_string, format)[:-3])

tests/kamereon/test_kamereon.py::test_set_vehicle_action
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/kamereon/test_kamereon.py:110: DeprecationWarning: You should use the full endpoint: actions/hvac-start.
    assert await kamereon.set_vehicle_action(

tests/kamereon/test_kamereon_vehicle_details.py::test_vehicle_details_response[tests/fixtures/kamereon/vehicle_details/master_iv.1.json]
tests/kamereon/test_kamereon_vehicle_details.py::test_vehicle_details_response[tests/fixtures/kamereon/vehicle_details/zoe_40.1.json]
tests/kamereon/test_kamereon_vehicle_details.py::test_vehicle_details_response[tests/fixtures/kamereon/vehicle_details/megane_e-tech.2.json]
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/kamereon/test_kamereon_vehicle_details.py:43: DeprecationWarning: This method is deprecated, please use get_endpoint.
    "charge-uses-kcm": vehicle_details.controls_action_via_kcm("charge"),

tests/kamereon/test_kamereon_vehicle_gateway.py::test_vehicles_response[tests/fixtures/kamereon/vehicle_gateway/zoe_50.1.json]
tests/kamereon/test_kamereon_vehicle_gateway.py::test_vehicles_response[tests/fixtures/kamereon/vehicle_gateway/zoe_40.1.json]
tests/kamereon/test_kamereon_vehicle_gateway.py::test_vehicles_response[tests/fixtures/kamereon/vehicle_gateway/twingo_ze.1.json]
tests/kamereon/test_kamereon_vehicle_gateway.py::test_vehicles_response[tests/fixtures/kamereon/vehicle_gateway/duster.1.json]
tests/kamereon/test_kamereon_vehicle_gateway.py::test_vehicles_response[tests/fixtures/kamereon/vehicle_gateway/spring.1.json]
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/kamereon/test_kamereon_vehicle_gateway.py:52: DeprecationWarning: This method is deprecated, please use get_endpoint.
    "charge-uses-kcm": vehicle_data.controls_action_via_kcm("charge"),

tests/kamereon/test_kamereon_vehicles.py: 13 warnings
  /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/kamereon/test_kamereon_vehicles.py:58: DeprecationWarning: This method is deprecated, please use get_endpoint.
    "charge-uses-kcm": vehicle_details.controls_action_via_kcm("charge"),