Package: src:python-hdfury Version: 1.6.0-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-hdfury, 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 ...] 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: client = <hdfury.api.HDFuryAPI object at 0x7fca2f1de890> endpoint = 'reboottimer', method = 'set_reboot_timer', value = '30' @pytest.mark.asyncio @pytest.mark.parametrize( ("endpoint", "method", "value"), [ ("reboottimer", "set_reboot_timer", "30"), ("reboottimer", "set_reboot_timer", "60"), ], ) async def test_set_reboot_timer(client: HDFuryAPI, endpoint: str, method: str, value: str): """Verify set_reboot_timer sends the correct command for each Reboot Timer state.""" with aioresponses() as mock: mock.get(f"http://192.168.1.123/cmd?{endpoint}={value}", status=200) > await getattr(client, method)(value) tests/test_api.py:428: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hdfury/api.py:201: in set_reboot_timer await self._send_command("reboottimer", state) hdfury/api.py:100: in _send_command await self._request(f"/cmd?{command}={option}") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <hdfury.api.HDFuryAPI object at 0x7fca2f1de890> endpoint = '/cmd?reboottimer=30' async def _request(self, endpoint: str) -> str: """Handle a request to the HDFury device.""" url = f"http://{self.host}{endpoint}" try: async with self._session.get(url, timeout=ClientTimeout(total=10)) as response: if response.status != 200: raise HDFuryConnectionError( f"Unexpected response from: {url} (Status: {response.status})" ) return await response.text() except TimeoutError as err: raise HDFuryConnectionError(f"Timeout while fetching: {url}") from err except (ClientError, ClientResponseError) as err: raise HDFuryConnectionError(f"Request failed ({url}): {err}") from err except Exception as err: > raise HDFuryConnectionError(f"Unexpected error ({url}): {err}") > from err E hdfury.exceptions.HDFuryConnectionError: Unexpected error (http://192.168.1.123/cmd?reboottimer=30): ClientResponse.__init__() missing 1 required keyword-only argument: 'stream_writer' hdfury/api.py:62: HDFuryConnectionError ____________ test_set_reboot_timer[reboottimer-set_reboot_timer-60] ____________ self = <hdfury.api.HDFuryAPI object at 0x7fca2eea0210> endpoint = '/cmd?reboottimer=60' async def _request(self, endpoint: str) -> str: """Handle a request to the HDFury device.""" url = f"http://{self.host}{endpoint}" try: > async with self._session.get(url, timeout=ClientTimeout(total=10)) > as response: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ hdfury/api.py:50: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/aiohttp/client.py:1683: in __aenter__ self._resp: _RetType_co = await self._coro ^^^^^^^^^^^^^^^^ /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 0x7fca2f696d50> url = URL('http://192.168.1.123/cmd?reboottimer=60'), method = 'get' request_headers = {}, status = 200, body = b'' 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) > 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: client = <hdfury.api.HDFuryAPI object at 0x7fca2eea0210> endpoint = 'reboottimer', method = 'set_reboot_timer', value = '60' @pytest.mark.asyncio @pytest.mark.parametrize( ("endpoint", "method", "value"), [ ("reboottimer", "set_reboot_timer", "30"), ("reboottimer", "set_reboot_timer", "60"), ], ) async def test_set_reboot_timer(client: HDFuryAPI, endpoint: str, method: str, value: str): """Verify set_reboot_timer sends the correct command for each Reboot Timer state.""" with aioresponses() as mock: mock.get(f"http://192.168.1.123/cmd?{endpoint}={value}", status=200) > await getattr(client, method)(value) tests/test_api.py:428: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ hdfury/api.py:201: in set_reboot_timer await self._send_command("reboottimer", state) hdfury/api.py:100: in _send_command await self._request(f"/cmd?{command}={option}") _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <hdfury.api.HDFuryAPI object at 0x7fca2eea0210> endpoint = '/cmd?reboottimer=60' async def _request(self, endpoint: str) -> str: """Handle a request to the HDFury device.""" url = f"http://{self.host}{endpoint}" try: async with self._session.get(url, timeout=ClientTimeout(total=10)) as response: if response.status != 200: raise HDFuryConnectionError( f"Unexpected response from: {url} (Status: {response.status})" ) return await response.text() except TimeoutError as err: raise HDFuryConnectionError(f"Timeout while fetching: {url}") from err except (ClientError, ClientResponseError) as err: raise HDFuryConnectionError(f"Request failed ({url}): {err}") from err except Exception as err: > raise HDFuryConnectionError(f"Unexpected error ({url}): {err}") > from err E hdfury.exceptions.HDFuryConnectionError: Unexpected error (http://192.168.1.123/cmd?reboottimer=60): ClientResponse.__init__() missing 1 required keyword-only argument: 'stream_writer' hdfury/api.py:62: HDFuryConnectionError =========================== short test summary info ============================ FAILED tests/test_api.py::test_request_json_success - hdfury.exceptions.HDFur... FAILED tests/test_api.py::test_request_json_invalid_json_raises - hdfury.exce... FAILED tests/test_api.py::test_request_non_200_raises_connection_error - asse... FAILED tests/test_api.py::test_get_info_success - hdfury.exceptions.HDFuryCon... FAILED tests/test_api.py::test_get_board_success - hdfury.exceptions.HDFuryCo... FAILED tests/test_api.py::test_get_config_merges_cec_and_config - hdfury.exce... FAILED tests/test_api.py::test_get_config_cec_failure_is_ignored - hdfury.exc... FAILED tests/test_api.py::test_get_config_cec_invalid_json_is_ignored - hdfur... FAILED tests/test_api.py::test_issue_reboot - hdfury.exceptions.HDFuryConnect... FAILED tests/test_api.py::test_issue_hotplug - hdfury.exceptions.HDFuryConnec... FAILED tests/test_api.py::test_set_operation_mode - hdfury.exceptions.HDFuryC... FAILED tests/test_api.py::test_set_port_selection - hdfury.exceptions.HDFuryC... FAILED tests/test_api.py::test_set_auto_switch_inputs[autosw-set_auto_switch_inputs-on] FAILED tests/test_api.py::test_set_auto_switch_inputs[autosw-set_auto_switch_inputs-off] FAILED tests/test_api.py::test_set_audio_unmute[unmutecnt-set_audio_unmute-30] FAILED tests/test_api.py::test_set_audio_unmute[unmutecnt-set_audio_unmute-60] FAILED tests/test_api.py::test_set_earc_unmute[earcunmutecnt-set_earc_unmute-30] FAILED tests/test_api.py::test_set_earc_unmute[earcunmutecnt-set_earc_unmute-60] FAILED tests/test_api.py::test_set_htpc_mode[htpcmode0-set_htpc_mode_rx0-on] FAILED tests/test_api.py::test_set_htpc_mode[htpcmode1-set_htpc_mode_rx1-on] FAILED tests/test_api.py::test_set_htpc_mode[htpcmode2-set_htpc_mode_rx2-on] FAILED tests/test_api.py::test_set_htpc_mode[htpcmode3-set_htpc_mode_rx3-on] FAILED tests/test_api.py::test_set_htpc_mode[htpcmode0-set_htpc_mode_rx0-off] FAILED tests/test_api.py::test_set_htpc_mode[htpcmode1-set_htpc_mode_rx1-off] FAILED tests/test_api.py::test_set_htpc_mode[htpcmode2-set_htpc_mode_rx2-off] FAILED tests/test_api.py::test_set_htpc_mode[htpcmode3-set_htpc_mode_rx3-off] FAILED tests/test_api.py::test_set_mute_tx_audio[mutetx0audio-set_mute_tx0_audio-on] FAILED tests/test_api.py::test_set_mute_tx_audio[mutetx1audio-set_mute_tx1_audio-on] FAILED tests/test_api.py::test_set_mute_tx_audio[mutetx0audio-set_mute_tx0_audio-off] FAILED tests/test_api.py::test_set_mute_tx_audio[mutetx1audio-set_mute_tx1_audio-off] FAILED tests/test_api.py::test_set_tx_force_5v[tx0plus5-set_tx0_force_5v-on] FAILED tests/test_api.py::test_set_tx_force_5v[tx1plus5-set_tx1_force_5v-on] FAILED tests/test_api.py::test_set_tx_force_5v[tx0plus5-set_tx0_force_5v-off] FAILED tests/test_api.py::test_set_tx_force_5v[tx1plus5-set_tx1_force_5v-off] FAILED tests/test_api.py::test_set_oled[oled-set_oled-on] - hdfury.exceptions... FAILED tests/test_api.py::test_set_oled[oled-set_oled-off] - hdfury.exception... FAILED tests/test_api.py::test_set_oled_fade[oledfade-set_oled_fade-30] - hdf... FAILED tests/test_api.py::test_set_oled_fade[oledfade-set_oled_fade-60] - hdf... FAILED tests/test_api.py::test_set_ir_active[iractive-set_ir_active-on] - hdf... FAILED tests/test_api.py::test_set_ir_active[iractive-set_ir_active-off] - hd... FAILED tests/test_api.py::test_set_relay[relay-set_relay-on] - hdfury.excepti... FAILED tests/test_api.py::test_set_relay[relay-set_relay-off] - hdfury.except... FAILED tests/test_api.py::test_set_cec_rx[cec-set_cec-off] - hdfury.exception... FAILED tests/test_api.py::test_set_cec_rx[cec0en-set_cec_rx0-1] - hdfury.exce... FAILED tests/test_api.py::test_set_cec_rx[cec1en-set_cec_rx1-1] - hdfury.exce... FAILED tests/test_api.py::test_set_cec_rx[cec2en-set_cec_rx2-0] - hdfury.exce... FAILED tests/test_api.py::test_set_cec_rx[cec3en-set_cec_rx3-0] - hdfury.exce... FAILED tests/test_api.py::test_set_reboot_timer[reboottimer-set_reboot_timer-30] FAILED tests/test_api.py::test_set_reboot_timer[reboottimer-set_reboot_timer-60] ======================== 49 failed, 18 passed in 2.84s ========================= E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build; python3.13 -m pytest --no-cov 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:4: binary] Error 25 dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2 --------------------------------------------------------------------------------

