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,
)
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": "foo@bar.org", "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': 'foo@bar.org', '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)
/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):
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}"
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)