Package: src:python-intellifire4py Version: 4.1.9-2 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-intellifire4py, 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 --with python3 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 --with python3 dh_update_autotools_config -O--buildsystem=pybuild dh_autoreconf -O--buildsystem=pybuild [... snipped ...] read_mode=IntelliFireApiMode.NONE, control_mode=IntelliFireApiMode.NONE, verify_ssl=verify_ssl, use_http=use_http, ) local_connect, cloud_connect = await instance.async_validate_connectivity( timeout=30 ) instance.local_connectivity = local_connect instance.cloud_connectivity = cloud_connect # Everything must be local if local_connect and not cloud_connect: await instance._switch_read_mode(IntelliFireApiMode.LOCAL) await instance.set_control_mode(IntelliFireApiMode.LOCAL) # Everything must be cloud elif cloud_connect and not local_connect: await instance._switch_read_mode(IntelliFireApiMode.CLOUD) await instance.set_control_mode(IntelliFireApiMode.CLOUD) elif not cloud_connect and not local_connect: LOGGER.error("No connectivity to fireplace") > raise aiohttp.ClientError( "No connectivity to fireplace via either Local or Cloud" ) E aiohttp.client_exceptions.ClientError: No connectivity to fireplace via either Local or Cloud intellifire4py/unified_fireplace.py:414: ClientError ----------------------------- Captured stdout call ----------------------------- ClientResponse.__init__() missing 1 required keyword-only argument: 'stream_writer' ------------------------------ Captured log call ------------------------------- ERROR intellifire4py.unified_fireplace:unified_fireplace.py:413 No connectivity to fireplace __________________ test_build_with_user_data_cloud_and_local ___________________ [gw0] linux -- Python 3.13.12 /usr/bin/python3.13 mock_user_data = IntelliFireUserData(auth_cookie='XXXX1B56D18B52DC8F94DC0E5DC89A90', user_id='XXXXE5DA5C74BD88ED1BC00716791092DE495232B...mode=<IntelliFireApiMode.LOCAL: 'local'>, control_mode=<IntelliFireApiMode.LOCAL: 'local'>)], username='', password='') mock_login_flow_with_local_and_cloud = <aioresponses.core.aioresponses object at 0x7ff1589e7bd0> @pytest.mark.asyncio async def test_build_with_user_data_cloud_and_local( mock_user_data, mock_login_flow_with_local_and_cloud ): """Test build with user data.""" fp = ( > await > UnifiedFireplace.build_fireplaces_from_user_data(user_data=mock_user_data) )[0] tests/test_unified.py:83: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ intellifire4py/unified_fireplace.py:497: in build_fireplaces_from_user_data return list(await asyncio.gather(*tasks)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ cls = <class 'intellifire4py.unified_fireplace.UnifiedFireplace'> fireplace_data = IntelliFireCommonFireplaceData(auth_cookie='XXXX1B56D18B52DC8F94DC0E5DC89A90', user_id='XXXXE5DA5C74BD88ED1BC007167910...9D849CBB15CDDBAFF381', read_mode=<IntelliFireApiMode.LOCAL: 'local'>, control_mode=<IntelliFireApiMode.LOCAL: 'local'>) desired_read_mode = <IntelliFireApiMode.LOCAL: 'local'> desired_control_mode = <IntelliFireApiMode.LOCAL: 'local'>, use_http = False verify_ssl = True @classmethod async def _create_async_instance( cls, fireplace_data: IntelliFireCommonFireplaceData, desired_read_mode: IntelliFireApiMode | None = None, desired_control_mode: IntelliFireApiMode | None = None, use_http: bool = False, verify_ssl: bool = True, ) -> UnifiedFireplace: """Asynchronously creates an instance of the class with specified fireplace data and operating modes. This class method facilitates the asynchronous instantiation of the class, initializing it with given fireplace data, read mode, and control mode. It also ensures that the instance is properly set up with the specified read mode before it's returned for use. Args: fireplace_data (IntelliFireCommonFireplaceData): Data related to the fireplace, necessary for initializing the instance. This includes details like IP address, serial number, user ID, API key, etc. desired_read_mode (IntelliFireApiMode, optional): The mode of reading data from the fireplace, either local or cloud. Defaults to IntelliFireApiMode.LOCAL. desired_control_mode (IntelliFireApiMode, optional): The mode of controlling the fireplace, either local or cloud. Defaults to IntelliFireApiMode.LOCAL. use_http (bool, optional): Indicates whether to use HTTP (True) or HTTPS (False) for communication. verify_ssl (bool, optional): Toggles SSL certificate verification. Returns: [cls]: An initialized instance of the class with the specified configuration. """ desired_read_mode = desired_read_mode or fireplace_data.read_mode desired_control_mode = desired_control_mode or fireplace_data.control_mode # Create a fireplace with no connectivity LOGGER.debug("Constructing a new universal fireplace") instance = cls( fireplace_data, read_mode=IntelliFireApiMode.NONE, control_mode=IntelliFireApiMode.NONE, verify_ssl=verify_ssl, use_http=use_http, ) local_connect, cloud_connect = await instance.async_validate_connectivity( timeout=30 ) instance.local_connectivity = local_connect instance.cloud_connectivity = cloud_connect # Everything must be local if local_connect and not cloud_connect: await instance._switch_read_mode(IntelliFireApiMode.LOCAL) await instance.set_control_mode(IntelliFireApiMode.LOCAL) # Everything must be cloud elif cloud_connect and not local_connect: await instance._switch_read_mode(IntelliFireApiMode.CLOUD) await instance.set_control_mode(IntelliFireApiMode.CLOUD) elif not cloud_connect and not local_connect: LOGGER.error("No connectivity to fireplace") > raise aiohttp.ClientError( "No connectivity to fireplace via either Local or Cloud" ) E aiohttp.client_exceptions.ClientError: No connectivity to fireplace via either Local or Cloud intellifire4py/unified_fireplace.py:414: ClientError ----------------------------- Captured stdout call ----------------------------- ClientResponse.__init__() missing 1 required keyword-only argument: 'stream_writer' ClientResponse.__init__() missing 1 required keyword-only argument: 'stream_writer' ------------------------------ Captured log call ------------------------------- ERROR intellifire4py.unified_fireplace:unified_fireplace.py:413 No connectivity to fireplace __________________________ test_unified_connectivity ___________________________ [gw0] linux -- Python 3.13.12 /usr/bin/python3.13 mock_cloud_login_flow_connectivity_testing = <aioresponses.core.aioresponses object at 0x7ff158717a50> @pytest.mark.asyncio async def test_unified_connectivity(mock_cloud_login_flow_connectivity_testing): # type: ignore """Test connectivity.""" username = "user" password = "pass" # noqa: S105 async with IntelliFireCloudInterface() as cloud_interface: > await cloud_interface.login_with_credentials( username=username, password=password ) tests/test_unified.py:101: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ intellifire4py/cloud_interface.py:187: in login_with_credentials async with self._session.post( # type: ignore[union-attr] /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 0x7ff1586b6750> url = URL('https://iftapi.net/a/login'), method = 'post', request_headers = {} status = 204, body = b'', content_type = 'application/json', payload = None headers = [('set-cookie', 'auth_cookie=XXXX1B56D18B52DC8F94DC0E5DC89A90'), ('set-cookie', 'user=XXXXE5DA5C74BD88ED1BC00716791092DE495232B69B4631CD79F90ADC10580E'), ('set-cookie', 'web_client_id=XXXX21C9A75384EA726071BFCC95E3F6')] response_class = <class 'aiohttp.client_reqrep.ClientResponse'> reason = 'No Content' 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_control_direct ______________________________ [gw1] linux -- Python 3.13.12 /usr/bin/python3.13 user_id = 'XXXXE5DA5C74BD88ED1BC00716791092DE495232B69B4631CD79F90ADC10580E' api_key = '12345BDB2D97B3DC7CEE8A8B05DD5FFA' challenge_text = '82FC7D369EC9B59B1A054ADE85F2AF76' @pytest.mark.asyncio async def test_control_direct(user_id: str, api_key: str, challenge_text: str) -> None: """Test local control.""" with aioresponses() as mocked: api = IntelliFireAPILocal(fireplace_ip=IP, user_id=user_id, api_key=api_key) mocked.get(f"http://{IP}/get_challenge", body=challenge_text, repeat=True) mocked.post(f"http://{IP}/post", status=200, repeat=True) > await api.pilot_on() tests/test_local_api.py:112: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ intellifire4py/control.py:33: in pilot_on await self.send_command(command=IntelliFireCommand.PILOT, value=1) intellifire4py/local_api.py:246: in send_command await self._send_local_command(command=command, value=value) intellifire4py/local_api.py:298: in _send_local_command data = self._construct_payload( _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <intellifire4py.local_api.IntelliFireAPILocal object at 0x7ff03ac00a50> command = 'pilot', value = 1, challenge = None def _construct_payload(self, command: str, value: int, challenge: str) -> str: """Construct a payload.""" payload = f"post:command={command}&value={value}" api_bytes = bytes.fromhex(self._api_key) > challenge_bytes = bytes.fromhex(challenge) ^^^^^^^^^^^^^^^^^^^^^^^^ E TypeError: fromhex() argument must be str, not None intellifire4py/local_api.py:256: TypeError ------------------------------ Captured log call ------------------------------- ERROR intellifire4py.local_api:local_api.py:385 time[0.00] get_challenge returned exception [<class 'TypeError'>] =========================== short test summary info ============================ FAILED tests/test_cloud_api.py::test_bad_command_param - TypeError: ClientRes... FAILED tests/test_cloud_api.py::test_cloud_login - TypeError: ClientResponse.... FAILED tests/test_local_api.py::test_poll - TypeError: ClientResponse.__init_... FAILED tests/test_cloud_api.py::test_control - TypeError: ClientResponse.__in... FAILED tests/test_local_api.py::test_local_control - TypeError: ClientRespons... FAILED tests/test_cloud_api.py::test_incorrect_login_credentials - TypeError:... FAILED tests/test_unified.py::test_build_from_common_data_local_with_local_connectivity FAILED tests/test_unified.py::test_build_from_common_data_local_with_local_connectivity1 FAILED tests/test_unified.py::test_build_from_common_data_local_without_local_connectivity2 FAILED tests/test_unified.py::test_build_with_user_data_cloud_only - aiohttp.... FAILED tests/test_unified.py::test_build_with_user_data_cloud_and_local - aio... FAILED tests/test_unified.py::test_unified_connectivity - TypeError: ClientRe... FAILED tests/test_local_api.py::test_control_direct - TypeError: fromhex() ar... ======================== 13 failed, 14 passed in 1.71s ========================= E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build; python3.13 -m pytest -v -n `nproc` 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:9: binary] Error 25 dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2 --------------------------------------------------------------------------------

