Package: src:python-aio-geojson-nsw-rfs-incidents Version: 0.7-3 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-aio-geojson-nsw-rfs-incidents, 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 ...] 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_empty_feed ________________________________ mock_aioresponse = <aioresponses.core.aioresponses object at 0x7feb80f22210> @pytest.mark.asyncio async def test_empty_feed(mock_aioresponse): """Test updating feed is ok when feed does not contain any entries.""" home_coordinates = (-41.2, 174.7) mock_aioresponse.get( "https://www.rfs.nsw.gov.au/feeds/majorIncidents.json", status=HTTPStatus.OK, body=load_fixture("incidents-2.json"), ) async with aiohttp.ClientSession(loop=asyncio.get_running_loop()) as websession: feed = NswRuralFireServiceIncidentsFeed(websession, home_coordinates) assert ( repr(feed) == "<NswRuralFireServiceIncidentsFeed(" "home=(-41.2, 174.7), " "url=https://www.rfs.nsw.gov.au" "/feeds/majorIncidents.json, " "radius=None, categories=None)>" ) > status, entries = await feed.update() ^^^^^^^^^^^^^^^^^^^ tests/test_feed.py:127: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/aio_geojson_client/feed.py:104: in update return await self._update_internal( /usr/lib/python3/dist-packages/aio_geojson_client/feed.py:69: in _update_internal status, data = await self._fetch() ^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/aio_geojson_client/feed.py:124: in _fetch async with self._websession.request( /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 0x7feb80f220d0> url = URL('https://www.rfs.nsw.gov.au/feeds/majorIncidents.json') method = 'get', request_headers = {}, status = <HTTPStatus.OK: 200> body = b'{\n "type": "FeatureCollection",\n "features": []\n}\n' 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 ______________________________ test_feed_manager _______________________________ mock_aioresponse = <aioresponses.core.aioresponses object at 0x7feb810d5a70> @pytest.mark.asyncio async def test_feed_manager(mock_aioresponse): """Test the feed manager.""" home_coordinates = (-31.0, 151.0) mock_aioresponse.get( "https://www.rfs.nsw.gov.au/feeds/majorIncidents.json", status=HTTPStatus.OK, body=load_fixture("incidents-1.json"), ) async with aiohttp.ClientSession(loop=asyncio.get_running_loop()) as websession: # This will just record calls and keep track of external ids. generated_entity_external_ids = [] updated_entity_external_ids = [] removed_entity_external_ids = [] async def _generate_entity(external_id): """Generate new entity.""" generated_entity_external_ids.append(external_id) async def _update_entity(external_id): """Update entity.""" updated_entity_external_ids.append(external_id) async def _remove_entity(external_id): """Remove entity.""" removed_entity_external_ids.append(external_id) feed_manager = NswRuralFireServiceIncidentsFeedManager( websession, _generate_entity, _update_entity, _remove_entity, home_coordinates, None, ) assert ( repr(feed_manager) == "<NswRuralFireServiceIncidents" "FeedManager(" "feed=<NswRuralFireService" "IncidentsFeed(" "home=(-31.0, 151.0), url=https://" "www.rfs.nsw.gov.au" "/feeds/majorIncidents.json, " "radius=None, categories=None)>)>" ) > await feed_manager.update() tests/test_feed_manager.py:61: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/aio_geojson_client/feed_manager.py:76: in update status, feed_entries = await self._feed.update() ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/aio_geojson_client/feed.py:104: in update return await self._update_internal( /usr/lib/python3/dist-packages/aio_geojson_client/feed.py:69: in _update_internal status, data = await self._fetch() ^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/aio_geojson_client/feed.py:124: in _fetch async with self._websession.request( /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 0x7feb810d5ba0> url = URL('https://www.rfs.nsw.gov.au/feeds/majorIncidents.json') method = 'get', request_headers = {}, status = <HTTPStatus.OK: 200> body = b'{\n "type": "FeatureCollection",\n "features": [\n {\n "type": "Feature",\n "geometry": {\n "t...ZE: 315512 ha <br />RESPONSIBLE AGENCY: Rural Fire Service <br />UPDATED: 18 Feb 2018 11:11"\n }\n }\n ]\n}\n' 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 =========================== short test summary info ============================ FAILED tests/test_feed.py::test_update_ok - TypeError: ClientResponse.__init_... FAILED tests/test_feed.py::test_update_ok_with_categories - TypeError: Client... FAILED tests/test_feed.py::test_empty_feed - TypeError: ClientResponse.__init... FAILED tests/test_feed_manager.py::test_feed_manager - TypeError: ClientRespo... ========================= 4 failed, 1 passed in 0.24s ========================== 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 --------------------------------------------------------------------------------

