Package: src:python-ring-doorbell Version: 0.9.13-4 Severity: serious Tags: ftbfs forky sid User: [email protected] Usertags: aiohttp-3.14
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-ring-doorbell, so that this is still visible in the BTS web page for this package. Thanks. -------------------------------------------------------------------------------- [...] debian/rules clean dh clean --with sphinxdoc --buildsystem=pybuild dh_auto_clean -O--buildsystem=pybuild dh_autoreconf_clean -O--buildsystem=pybuild dh_clean -O--buildsystem=pybuild debian/rules binary dh binary --with sphinxdoc --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-ring-doorbell [... snipped ...] *, raise_for_status: bool = True, ) -> Auth.Response: """Query data from Ring API.""" if timeout is None: timeout = TIMEOUT params = {} if extra_params: params.update(extra_params) kwargs: dict[str, Any] = { "params": params, "timeout": timeout, } headers = {"User-Agent": self.user_agent, "hardware_id": self.get_hardware_id()} # Ring servers started requiring a null json value for PUT requests in 2024-10 if json is not None or method == "PUT": kwargs["json"] = json headers["Content-Type"] = "application/json" try: try: url, headers, data = self._oauth_client.add_token( url, http_method=method, body=data, headers=headers, ) > resp = await self._session.request( method, url, headers=headers, data=data, **kwargs ) ring_doorbell/auth.py:217: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/unittest/mock.py:2332: in _execute_mock_call result = await effect(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/aioresponses/core.py:512: in _request_mock response = await self.match(method, url, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/aioresponses/core.py:456: in match response_or_exc = await matcher.build_response( /usr/lib/python3/dist-packages/aioresponses/core.py:202: in build_response resp = self._build_response( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <aioresponses.core.RequestMatch object at 0x7fc757393050> url = URL('https://api.ring.com/clients_api/session'), method = 'post' request_headers = {'Authorization': 'Bearer dummyBearerToken', 'Content-Type': 'application/json', 'User-Agent': 'android:com.ringapp', 'hardware_id': '21ac3af1-0eac-5fbd-8b0f-0b784889bfbd'} status = 200 body = b'{"profile": {"authentication_token": "12345678910", "email": "[email protected]", "features": {"chime_dnd_enabled": false,..., "video_search_enabled": false, "vod_enabled": false}, "first_name": "Home", "id": 999999, "last_name": "Assistant"}}' content_type = 'application/json' payload = {'profile': {'authentication_token': '12345678910', 'email': '[email protected]', 'features': {'chime_dnd_enabled': False, '...pro_enabled': True, 'delete_all_enabled': True, 'delete_all_settings_enabled': False, ...}, 'first_name': 'Home', ...}} 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) > resp = response_class(method, url, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: ClientResponse.__init__() missing 1 required keyword-only argument: 'stream_writer' /usr/lib/python3/dist-packages/aioresponses/core.py:171: TypeError The above exception was the direct cause of the following exception: def test_sync_queries_with_no_event_loop(): auth = Auth(USER_AGENT, token=load_fixture_as_dict("ring_oauth.json")) ring = Ring(auth) assert not ring.devices_data msg = "Ring.update_devices is deprecated, use Ring.async_update_devices" with pytest.deprecated_call(match=msg): > ring.update_devices() tests/test_ring.py:287: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ ring_doorbell/util.py:113: in wrapper return asyncio.run( /usr/lib/python3.13/asyncio/runners.py:195: in run return runner.run(main) ^^^^^^^^^^^^^^^^ /usr/lib/python3.13/asyncio/runners.py:118: in run return self._loop.run_until_complete(task) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3.13/asyncio/base_events.py:725: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ ring_doorbell/util.py:75: in run_and_close_session res = await async_method(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ring_doorbell/ring.py:101: in async_update_devices await self.async_create_session() ring_doorbell/ring.py:90: in async_create_session resp = await self._async_query( ring_doorbell/ring.py:176: in _async_query return await self.auth.async_query( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <ring_doorbell.auth.Auth object at 0x7fc756cc59f0> url = 'https://api.ring.com/clients_api/session', method = 'POST' extra_params = None, data = None json = {'device': {'hardware_id': '21ac3af1-0eac-5fbd-8b0f-0b784889bfbd', 'metadata': {'api_version': '11', 'device_model': 'ring-doorbell:android:com.ringapp'}, 'os': 'android'}} timeout = 10 async def async_query( # noqa: C901, PLR0913 self, url: str, method: str = "GET", extra_params: dict[str, Any] | None = None, data: bytes | None = None, json: dict[Any, Any] | None = None, timeout: float | None = None, *, raise_for_status: bool = True, ) -> Auth.Response: """Query data from Ring API.""" if timeout is None: timeout = TIMEOUT params = {} if extra_params: params.update(extra_params) kwargs: dict[str, Any] = { "params": params, "timeout": timeout, } headers = {"User-Agent": self.user_agent, "hardware_id": self.get_hardware_id()} # Ring servers started requiring a null json value for PUT requests in 2024-10 if json is not None or method == "PUT": kwargs["json"] = json headers["Content-Type"] = "application/json" try: try: url, headers, data = self._oauth_client.add_token( url, http_method=method, body=data, headers=headers, ) resp = await self._session.request( method, url, headers=headers, data=data, **kwargs )Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fc75759f390> Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fc7573b60d0> Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fc7573b5810> except TokenExpiredError: self._token = await self.async_refresh_tokens() url, headers, data = self._oauth_client.add_token( url, http_method=method, body=data, headers=headers, ) resp = await self._session.request( method, url, headers=headers, data=data, **kwargs ) except AuthenticationError: raise # refresh_tokens will return this error if not valid except TimeoutError as ex: msg = f"Timeout error during query of url {url}: {ex}" raise RingTimeout(msg) from ex except ClientError as ex: msg = f"aiohttp Client error during query of url {url}: {ex}" raise RingError(msg) from ex except Exception as ex: msg = f"Unknown error during query of url {url}: {ex}" > raise RingError(msg) from ex E ring_doorbell.exceptions.RingError: Unknown error during query of url https://api.ring.com/clients_api/session: ClientResponse.__init__() missing 1 required keyword-only argument: 'stream_writer' ring_doorbell/auth.py:241: RingError =============================== 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) tests/test_cli.py: 15 warnings tests/test_listen.py: 6 warnings tests/test_other.py: 4 warnings tests/test_ring.py: 12 warnings /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_python-ring-doorbell/build/ring_doorbell/auth.py:68: DeprecationWarning: BasicAuth is deprecated and will be removed in aiohttp 4.0; use aiohttp.encode_basic_auth() with headers={'Authorization': ...} instead self._auth = BasicAuth(OAuth.CLIENT_ID, "") tests/test_cli.py: 13 warnings tests/test_listen.py: 6 warnings tests/test_other.py: 4 warnings tests/test_ring.py: 9 warnings /usr/lib/python3.13/copyreg.py:99: DeprecationWarning: BasicAuth is deprecated and will be removed in aiohttp 4.0; use aiohttp.encode_basic_auth() with headers={'Authorization': ...} instead return cls.__new__(cls, *args) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/test_cli.py::test_auth[No 2FA] - assert 1 == 0 FAILED tests/test_cli.py::test_auth[Require 2FA] - assert 1 == 0 FAILED tests/test_cli.py::test_auth[Invalid Grant] - assert 1 == 0 FAILED tests/test_ring.py::test_sync_queries_from_executor - ring_doorbell.ex... FAILED tests/test_ring.py::test_sync_queries_with_no_event_loop - ring_doorbe... ERROR tests/test_cli.py::test_cli_default - TypeError: ClientResponse.__init_... ERROR tests/test_cli.py::test_show - TypeError: ClientResponse.__init__() mis... ERROR tests/test_cli.py::test_devices - TypeError: ClientResponse.__init__() ... ERROR tests/test_cli.py::test_list - TypeError: ClientResponse.__init__() mis... ERROR tests/test_cli.py::test_videos - TypeError: ClientResponse.__init__() m... ERROR tests/test_cli.py::test_motion_detection - TypeError: ClientResponse.__... ERROR tests/test_cli.py::test_listen_store_credentials - TypeError: ClientRes... ERROR tests/test_cli.py::test_listen_event_handler - TypeError: ClientRespons... ERROR tests/test_cli.py::test_in_home_chime - TypeError: ClientResponse.__ini... ERROR tests/test_cli.py::test_open_door - TypeError: ClientResponse.__init__(... ERROR tests/test_cli.py::test_get_device - TypeError: ClientResponse.__init__... ERROR tests/test_listen.py::test_listen - TypeError: ClientResponse.__init__(... ERROR tests/test_listen.py::test_active_dings - TypeError: ClientResponse.__i... ERROR tests/test_listen.py::test_ding_expirey - TypeError: ClientResponse.__i... ERROR tests/test_listen.py::test_listen_subscribe_fail - TypeError: ClientRes... ERROR tests/test_listen.py::test_listen_gcm_fail - TypeError: ClientResponse.... ERROR tests/test_listen.py::test_listen_fcm_fail - TypeError: ClientResponse.... ERROR tests/test_other.py::test_other_attributes - TypeError: ClientResponse.... ERROR tests/test_other.py::test_other_controls - TypeError: ClientResponse.__... ERROR tests/test_other.py::test_other_invitations - TypeError: ClientResponse... ERROR tests/test_other.py::test_other_open_door - TypeError: ClientResponse._... ERROR tests/test_ring.py::test_basic_attributes - TypeError: ClientResponse._... ERROR tests/test_ring.py::test_chime_attributes - TypeError: ClientResponse._... ERROR tests/test_ring.py::test_doorbell_attributes - TypeError: ClientRespons... ERROR tests/test_ring.py::test_shared_doorbell_attributes - TypeError: Client... ERROR tests/test_ring.py::test_stickup_cam_attributes - TypeError: ClientResp... ERROR tests/test_ring.py::test_stickup_cam_controls - TypeError: ClientRespon... ERROR tests/test_ring.py::test_light_groups - TypeError: ClientResponse.__ini... ERROR tests/test_ring.py::test_motion_detection_enable - TypeError: ClientRes... ERROR tests/test_ring.py::test_set_existing_doorbell_type - TypeError: Client... ============= 5 failed, 5 passed, 70 warnings, 30 errors in 2.55s ============== E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_python-ring-doorbell/build; python3.13 -m pytest tests dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.14 3.13" --parallel=2 returned exit code 13 make: *** [debian/rules:6: binary] Error 25 dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2 --------------------------------------------------------------------------------

