Package: src:python-airly Version: 1.1.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-airly, 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 ...] 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 =============================== warnings summary =============================== ../../../../../../usr/lib/python3/dist-packages/aiounittest/case.py:90 ../../../../../../usr/lib/python3/dist-packages/aiounittest/case.py:90 ../../../../../../usr/lib/python3/dist-packages/aiounittest/case.py:90 ../../../../../../usr/lib/python3/dist-packages/aiounittest/case.py:90 .pybuild/cpython3_3.14/build/tests/test__private.py::RemainingRequestsTestCase::test_invalid_remaining_requests_headers .pybuild/cpython3_3.14/build/tests/test__private.py::RemainingRequestsTestCase::test_valid_remaining_requests_headers /usr/lib/python3/dist-packages/aiounittest/case.py:90: DeprecationWarning: 'asyncio.iscoroutinefunction' is deprecated and slated for removal in Python 3.16; use inspect.iscoroutinefunction() instead if name.startswith('test_') and asyncio.iscoroutinefunction(attr): -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED tests/test__private.py::RemainingRequestsTestCase::test_invalid_remaining_requests_headers FAILED tests/test__private.py::RemainingRequestsTestCase::test_valid_remaining_requests_headers =================== 2 failed, 11 passed, 6 warnings in 0.22s =================== 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>> configfile: pyproject.toml plugins: typeguard-4.4.4 collected 13 items tests/test__private.py ..FF [ 30%] tests/test_installations.py ... [ 53%] tests/test_measurements.py ...... [100%] =================================== FAILURES =================================== ______ RemainingRequestsTestCase.test_invalid_remaining_requests_headers _______ self = <test__private.RemainingRequestsTestCase testMethod=test_invalid_remaining_requests_headers> async def test_invalid_remaining_requests_headers(self): with open("data/measurements_typical.json") as file: data = json.load(file) headers = {} session = aiohttp.ClientSession() with aioresponses() as session_mock: session_mock.get( 'https://airapi.airly.eu/v2/measurements/point?lat=12.000000&lng=21.000000', payload=data, headers=headers, ) airly = Airly("abcdef", session) measurements = airly.create_measurements_session_point(LATITUDE, LONGITUDE) > await measurements.update() tests/test__private.py:69: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ airly/measurements.py:117: in update data = await self.requests_handler.get(self.request_path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ airly/_private.py:36: in get async with self.session.get(url, headers=self.headers) as response: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /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 0x7f31895f9160> url = URL('https://airapi.airly.eu/v2/measurements/point?lat=12.000000&lng=21.000000') method = 'get' request_headers = {'Accept': 'application/json', 'Accept-Encoding': 'gzip', 'apikey': 'abcdef'} status = 200 body = b'{"current": {"fromDateTime": "2019-02-13T21:00:00Z", "tillDateTime": "2019-02-13T22:00:00Z", "values": [{"name": "PM...fortunately forecast for this station is not available yet.", "advice": null, "color": "#999999"}], "standards": []}]}' content_type = 'application/json' payload = {'current': {'fromDateTime': '2019-02-13T21:00:00Z', 'indexes': [{'advice': 'Good day for outdoor activities', 'color'...imit': 50.0, 'name': 'WHO', 'percent': 45.0, 'pollutant': 'PM10'}], 'tillDateTime': '2019-02-13T04:00:00Z', ...}, ...]} headers = {}, 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 _______ RemainingRequestsTestCase.test_valid_remaining_requests_headers ________ self = <test__private.RemainingRequestsTestCase testMethod=test_valid_remaining_requests_headers> async def test_valid_remaining_requests_headers(self): with open("data/measurements_typical.json") as file: data = json.load(file) headers = {"X-RateLimit-Limit-day": "1000", "X-RateLimit-Remaining-day": "993"} session = aiohttp.ClientSession() with aioresponses() as session_mock: session_mock.get( 'https://airapi.airly.eu/v2/measurements/point?lat=12.000000&lng=21.000000', payload=data, headers=headers, ) airly = Airly("abcdef", session) measurements = airly.create_measurements_session_point(LATITUDE, LONGITUDE) > await measurements.update() tests/test__private.py:47: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ airly/measurements.py:117: in update data = await self.requests_handler.get(self.request_path) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ airly/_private.py:36: in get async with self.session.get(url, headers=self.headers) as response: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /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 0x7f318959b610> url = URL('https://airapi.airly.eu/v2/measurements/point?lat=12.000000&lng=21.000000') method = 'get' request_headers = {'Accept': 'application/json', 'Accept-Encoding': 'gzip', 'apikey': 'abcdef'} status = 200 body = b'{"current": {"fromDateTime": "2019-02-13T21:00:00Z", "tillDateTime": "2019-02-13T22:00:00Z", "values": [{"name": "PM...fortunately forecast for this station is not available yet.", "advice": null, "color": "#999999"}], "standards": []}]}' content_type = 'application/json' payload = {'current': {'fromDateTime': '2019-02-13T21:00:00Z', 'indexes': [{'advice': 'Good day for outdoor activities', 'color'...imit': 50.0, 'name': 'WHO', 'percent': 45.0, 'pollutant': 'PM10'}], 'tillDateTime': '2019-02-13T04:00:00Z', ...}, ...]} headers = {'X-RateLimit-Limit-day': '1000', 'X-RateLimit-Remaining-day': '993'} response_class = <class 'aiohttp.client_reqrep.ClientResponse'>, reason = 'OK' def _build_response(self, url: 'Union[URL, str]', method: str = hdrs.METH_GET,Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7f3189ce8830> Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7f318959ae90> 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 =========================== short test summary info ============================ FAILED tests/test__private.py::RemainingRequestsTestCase::test_invalid_remaining_requests_headers FAILED tests/test__private.py::RemainingRequestsTestCase::test_valid_remaining_requests_headers ========================= 2 failed, 11 passed in 0.21s ========================= 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:3: binary] Error 25 dpkg-buildpackage: error: debian/rules binary subprocess failed with exit status 2 --------------------------------------------------------------------------------

