Package: src:aioelectricitymaps Version: 1.1.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:aioelectricitymaps, 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 ...] 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 0x7ff7159e5f50> url = URL('https://api.electricitymaps.com/v3/power-breakdown/history?zone=DE') method = 'get', request_headers = {'auth-token': 'abc123'}, status = 200 body = b'{\n "zone": "DE",\n "history": [\n {\n "zone": "DE",\n "datetime": "2024-03-05T20:00:00.000Z",\n ...powerExportTotal": 1467,\n "isEstimated": true,\n "estimationMethod": "TIME_SLICER_AVERAGE"\n }\n ]\n}\n' content_type = 'application/json', payload = None headers = {'Content-Type': 'application/json'} 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_latest_carbon_intensity _________________________ electricitymaps_client = ElectricityMaps(token='abc123', session=<aiohttp.client.ClientSession object at 0x7ff71596e350>, _close_session=False) responses = <aioresponses.core.aioresponses object at 0x7ff715941e50> snapshot = SnapshotAssertion(name='snapshot', num_executions=0) async def test_latest_carbon_intensity( electricitymaps_client: ElectricityMaps, responses: aioresponses, snapshot: SnapshotAssertion, ) -> None: """Test latest_power_breakdown.""" responses.get( "https://api.electricitymaps.com/v3/carbon-intensity/latest?zone=DE", status=200, headers={"Content-Type": "application/json"}, body=load_fixture("latest_carbon_intensity.json"), ) assert ( > await electricitymaps_client.latest_carbon_intensity( ZoneRequest("DE"), ) == snapshot ) tests/test_electricitymaps.py:191: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aioelectricitymaps/electricitymaps.py:109: in latest_carbon_intensity result = await self._get( aioelectricitymaps/electricitymaps.py:64: in _get async with self.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 0x7ff715941220> url = URL('https://api.electricitymaps.com/v3/carbon-intensity/latest?zone=DE') method = 'get', request_headers = {'auth-token': 'abc123'}, status = 200 body = b'{\n "zone": "US-CAR-DUK",\n "carbonIntensity": 216,\n "datetime": "2024-03-06T19:00:00.000Z",\n "updatedAt": "20...265Z",\n "emissionFactorType": "lifecycle",\n "isEstimated": true,\n "estimationMethod": "TIME_SLICER_AVERAGE"\n}\n' content_type = 'application/json', payload = None headers = {'Content-Type': 'application/json'} 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_carbon_intensity_history _________________________ electricitymaps_client = ElectricityMaps(token='abc123', session=<aiohttp.client.ClientSession object at 0x7ff71596e0d0>, _close_session=False) responses = <aioresponses.core.aioresponses object at 0x7ff7158c49b0> snapshot = SnapshotAssertion(name='snapshot', num_executions=0) async def test_carbon_intensity_history( electricitymaps_client: ElectricityMaps, responses: aioresponses, snapshot: SnapshotAssertion, ) -> None: """Test power_breakdown_history.""" responses.get( "https://api.electricitymaps.com/v3/carbon-intensity/history?zone=DE", status=200, headers={"Content-Type": "application/json"}, body=load_fixture("carbon_intensity_history.json"), ) assert ( > await electricitymaps_client.carbon_intensity_history( ZoneRequest("DE"), ) == snapshot ) tests/test_electricitymaps.py:211: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aioelectricitymaps/electricitymaps.py:120: in carbon_intensity_history result = await self._get( aioelectricitymaps/electricitymaps.py:64: in _get async with self.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 0x7ff715942f30> url = URL('https://api.electricitymaps.com/v3/carbon-intensity/history?zone=DE') method = 'get', request_headers = {'auth-token': 'abc123'}, status = 200 body = b'{\n "zone": "DE",\n "history": [\n {\n "zone": "DE",\n "carbonIntensity": 599,\n "datetime": "20...actorType": "lifecycle",\n "isEstimated": true,\n "estimationMethod": "TIME_SLICER_AVERAGE"\n }\n ]\n}\n' content_type = 'application/json', payload = None headers = {'Content-Type': 'application/json'} 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 --------------------------- snapshot report summary ---------------------------- 7 snapshots unused. Re-run pytest with --snapshot-update to delete unused snapshots. =========================== short test summary info ============================ FAILED tests/test_electricitymaps.py::test_json_request_without_session - Typ... FAILED tests/test_electricitymaps.py::test_carbon_intensity_by_coordinates - ... FAILED tests/test_electricitymaps.py::test_catching_client_error - TypeError:... FAILED tests/test_electricitymaps.py::test_zones_request - TypeError: ClientR... FAILED tests/test_electricitymaps.py::test_invalid_token - TypeError: ClientR... FAILED tests/test_electricitymaps.py::test_not_ok_responses[no-data-response.json-ElectricityMapsNoDataError] FAILED tests/test_electricitymaps.py::test_not_ok_responses[unknown-response.json-ElectricityMapsError] FAILED tests/test_electricitymaps.py::test_latest_power_breakdown - TypeError... FAILED tests/test_electricitymaps.py::test_power_breakdown_history - TypeErro... FAILED tests/test_electricitymaps.py::test_latest_carbon_intensity - TypeErro... FAILED tests/test_electricitymaps.py::test_carbon_intensity_history - TypeErr... ========================= 11 failed, 1 passed in 0.53s ========================= 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:5: binary] Error 25 dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2 --------------------------------------------------------------------------------

