Package: src:python-aioshelly Version: 13.23.1-1 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-aioshelly, so that this is still visible in the BTS web page for this package. Thanks. -------------------------------------------------------------------------------- [...] debian/rules clean make: pyversions: No such file or directory py3versions: no X-Python3-Version in control file, using supported versions dh clean --buildsystem=pybuild dh_auto_clean -O--buildsystem=pybuild dh_autoreconf_clean -O--buildsystem=pybuild dh_clean -O--buildsystem=pybuild debian/rules binary make: pyversions: No such file or directory py3versions: no X-Python3-Version in control file, using supported versions dh binary --buildsystem=pybuild dh_update_autotools_config -O--buildsystem=pybuild dh_autoreconf -O--buildsystem=pybuild [... snipped ...] ) 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 =============================== warnings summary =============================== tests/rpc_device/test_device.py: 94 warnings tests/test_common.py: 1 warning /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/aioshelly/common.py:64: DeprecationWarning: BasicAuth is deprecated and will be removed in aiohttp 4.0; use aiohttp.encode_basic_auth() with headers={'Authorization': ...} instead object.__setattr__(self, "auth", BasicAuth(self.username, self.password)) tests/test_common.py::test_process_ip_or_options /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build/tests/test_common.py:63: DeprecationWarning: BasicAuth is deprecated and will be removed in aiohttp 4.0; use aiohttp.encode_basic_auth() with headers={'Authorization': ...} instead assert options.auth == BasicAuth("user", "pass") -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/test_common.py::test_get_info - TypeError: ClientResponse.__init... FAILED tests/test_common.py::test_get_info_mac_mismatch - TypeError: ClientRe... ================== 2 failed, 228 passed, 96 warnings in 1.52s ================== E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14/build; python3.14 -m pytest tests I: pybuild base:385: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build; python3.13 -m pytest tests ============================= test session starts ============================== platform linux -- Python 3.13.12, pytest-9.0.3, pluggy-1.6.0 rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build configfile: pyproject.toml plugins: asyncio-1.4.0, typeguard-4.4.4 asyncio: mode=Mode.STRICT, debug=False, asyncio_default_fixture_loop_scope=function, asyncio_default_test_loop_scope=function collected 230 items tests/ble/backend/test_scanner.py . [ 0%] tests/ble/test_init.py ........... [ 5%] tests/ble/test_manufacturer_data.py .................. [ 13%] tests/ble/test_parser.py .. [ 13%] tests/ble/test_provisioning.py ..... [ 16%] tests/block_device/test_device.py ..... [ 18%] tests/block_device/test_init.py . [ 18%] tests/rpc_device/test_blerpc.py ............................. [ 31%] tests/rpc_device/test_device.py ........................................ [ 48%] ........................................................................ [ 80%] . [ 80%] tests/rpc_device/test_init.py . [ 80%] tests/rpc_device/test_utils.py . [ 81%] tests/rpc_device/test_wsrpc.py ... [ 82%] tests/test_common.py ........FF...... [ 89%] tests/test_const.py .... [ 91%] tests/test_exceptions.py . [ 91%] tests/test_json.py ........ [ 95%] tests/test_zeroconf.py ........... [100%] =================================== FAILURES =================================== ________________________________ test_get_info _________________________________ @pytest.mark.asyncio async def test_get_info() -> None: """Test get_info function.""" mock_response = await load_device_fixture("shellyplus2pm", "shelly.json") ip_address = "10.10.10.10" session = ClientSession() with aioresponses() as session_mock: session_mock.get( URL.build( scheme="http", host=ip_address, port=DEFAULT_HTTP_PORT, path="/shelly" ), payload=mock_response, ) > result = await get_info(session, ip_address, "AABBCCDDEEFF") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_common.py:86: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aioshelly/common.py:99: in get_info async with aiohttp_session.get( /usr/lib/python3/dist-packages/aiohttp/client.py:1683: in __aenter__ self._resp: _RetType_co = await self._coro ^^^^^^^^^^^^^^^^ <string>:3: in _request ??? /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 0x7fcd67d478c0> url = URL('http://10.10.10.10/shelly'), method = 'get', request_headers = {} status = 200 body = b'{"name": "Shelly Plus 2PM", "id": "shellyplus2pm-aabbccddeeff", "mac": "AABBCCDDEEFF", "slot": 1, "model": "SNSW-102..., "ver": "1.4.2", "app": "Plus2PM", "auth_en": true, "auth_domain": "shellyplus2pm-aabbccddeeff", "profile": "switch"}' content_type = 'application/json' payload = {'app': 'Plus2PM', 'auth_domain': 'shellyplus2pm-aabbccddeeff', 'auth_en': True, 'fw_id': '20240819-074337/1.4.2-gc2639da', ...} 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 __________________________ test_get_info_mac_mismatch __________________________ @pytest.mark.asyncio async def test_get_info_mac_mismatch() -> None: """Test get_info function with MAC mismatch.""" mock_response = await load_device_fixture("shellyplus2pm", "shelly.json") ip_address = "10.10.10.10" session = ClientSession() with aioresponses() as session_mock: session_mock.get( URL.build( scheme="http", host=ip_address, port=DEFAULT_HTTP_PORT, path="/shelly" ), payload=mock_response, ) with pytest.raises( MacAddressMismatchError, match="Input MAC: 112233445566, Shelly MAC: AABBCCDDEEFF", ): > await get_info(session, ip_address, "112233445566") tests/test_common.py:113: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aioshelly/common.py:99: in get_info async with aiohttp_session.get( /usr/lib/python3/dist-packages/aiohttp/client.py:1683: in __aenter__ self._resp: _RetType_co = await self._coro ^^^^^^^^^^^^^^^^ <string>:3: in _request ??? /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 0x7fcd67944cd0> url = URL('http://10.10.10.10/shelly'), method = 'get', request_headers = {} status = 200 body = b'{"name": "Shelly Plus 2PM", "id": "shellyplus2pm-aabbccddeeff", "mac": "AABBCCDDEEFF", "slot": 1, "model": "SNSW-102..., "ver": "1.4.2", "app": "Plus2PM", "auth_en": true, "auth_domain": "shellyplus2pm-aabbccddeeff", "profile": "switch"}' content_type = 'application/json' payload = {'app': 'Plus2PM', 'auth_domain': 'shellyplus2pm-aabbccddeeff', 'auth_en': True, 'fw_id': '20240819-074337/1.4.2-gc2639da', ...} 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)),Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7fcd679442d0> ) 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 =============================== warnings summary =============================== tests/rpc_device/test_device.py: 94 warnings tests/test_common.py: 1 warning /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/aioshelly/common.py:64: DeprecationWarning: BasicAuth is deprecated and will be removed in aiohttp 4.0; use aiohttp.encode_basic_auth() with headers={'Authorization': ...} instead object.__setattr__(self, "auth", BasicAuth(self.username, self.password)) tests/test_common.py::test_process_ip_or_options /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build/tests/test_common.py:63: DeprecationWarning: BasicAuth is deprecated and will be removed in aiohttp 4.0; use aiohttp.encode_basic_auth() with headers={'Authorization': ...} instead assert options.auth == BasicAuth("user", "pass") -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/test_common.py::test_get_info - TypeError: ClientResponse.__init... FAILED tests/test_common.py::test_get_info_mac_mismatch - TypeError: ClientRe... ================== 2 failed, 228 passed, 96 warnings in 1.47s ================== E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/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:7: binary] Error 25 dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2 --------------------------------------------------------------------------------

