Package: src:python-foobot-async Version: 1.0.1-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-foobot-async, 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 ...] self = <aioresponses.core.RequestMatch object at 0x7f9420c0c8d0> url = URL('https://api.foobot.io/v2/device/1234127987696AB/datapoint/600/last/601/') method = 'get' request_headers = {'X-API-KEY-TOKEN': 'token', 'content-type': 'application/json'} status = 200 body = b'{"uuid": "1234127987696AB",\n "start": 1518131274,\n "end": 1518131874,\n ...points": [ [ 1518131274, 135.70001, 21.046001, 46.6885, 1178.0,\n 325.5, 131.19643 ] ] }' 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_get_historical_data_request _______________________ def test_get_historical_data_request(): body = '''{"uuid": "1234127987696AB", "start": 1518131274, "end": 1518131874, "sensors": ["time", "pm", "tmp", "hum", "co2", "voc", "allpollu"], "units": [ "s", "ugm3", "C", "pc", "ppm", "ppb", "%" ], "datapoints": [ [ 1518131274, 135.70001, 21.046001, 46.6885, 1178.0, 325.5, 131.19643 ] ] }''' with aioresponses() as mocked: mocked.get('https://api.foobot.io/v2/device/1234127987696AB/datapoint/1518121274/1518131274/3600/', status=200, body=body) > resp = > loop.run_until_complete(client.get_historical_data("1234127987696AB", datetime.utcfromtimestamp(1518121274), datetime.utcfromtimestamp(1518131274), 3600)) ../../../foobot_async/tests/test_foobot_async.py:142: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/asyncio/base_events.py:725: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ ../../../foobot_async/__init__.py:117: in get_historical_data return self.parse_data((await self._get( ../../../foobot_async/__init__.py:159: in _get resp = await self._session.get( <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 0x7f94207b8450> url = URL('https://api.foobot.io/v2/device/1234127987696AB/datapoint/1518121274/1518131274/3600/') method = 'get' request_headers = {'X-API-KEY-TOKEN': 'token', 'content-type': 'application/json'} status = 200 body = b'{"uuid": "1234127987696AB",\n "start": 1518131274,\n "end": 1518131874,\n ...points": [ [ 1518131274, 135.70001, 21.046001, 46.6885, 1178.0,\n 325.5, 131.19643 ] ] }' 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_get_bad_data_request ___________________________ def test_get_bad_data_request(): body = '''{"uuid": "1234127987696AB", "start": 1518131274, "end": 1518131874}''' with aioresponses() as mocked: mocked.get('https://api.foobot.io/v2/device/1234127987696AB/datapoint/1518121274/1518131274/3600/', status=200, body=body) with pytest.raises(FoobotClient.InvalidData): > > loop.run_until_complete(client.get_historical_data("1234127987696AB", datetime.utcfromtimestamp(1518121274), datetime.utcfromtimestamp(1518131274), 3600)) ../../../foobot_async/tests/test_foobot_async.py:165: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3.13/asyncio/base_events.py:725: in run_until_complete return future.result() ^^^^^^^^^^^^^^^ ../../../foobot_async/__init__.py:117: in get_historical_data return self.parse_data((await self._get( ../../../foobot_async/__init__.py:159: in _get resp = await self._session.get( <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 0x7f94207b8850> url = URL('https://api.foobot.io/v2/device/1234127987696AB/datapoint/1518121274/1518131274/3600/') method = 'get' request_headers = {'X-API-KEY-TOKEN': 'token', 'content-type': 'application/json'} status = 200 body = b'{"uuid": "1234127987696AB",\n "start": 1518131274,\n "end": 1518131874}' 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 =============================== warnings summary =============================== foobot_async/tests/test_foobot_async.py::test_get_historical_data_request /<<PKGBUILDDIR>>/foobot_async/tests/test_foobot_async.py:143: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC). datetime.utcfromtimestamp(1518121274), foobot_async/tests/test_foobot_async.py::test_get_historical_data_request /<<PKGBUILDDIR>>/foobot_async/tests/test_foobot_async.py:144: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC). datetime.utcfromtimestamp(1518131274), foobot_async/tests/test_foobot_async.py::test_get_bad_data_request /<<PKGBUILDDIR>>/foobot_async/tests/test_foobot_async.py:166: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC). datetime.utcfromtimestamp(1518121274), foobot_async/tests/test_foobot_async.py::test_get_bad_data_request /<<PKGBUILDDIR>>/foobot_async/tests/test_foobot_async.py:167: DeprecationWarning: datetime.datetime.utcfromtimestamp() is deprecated and scheduled for removal in a future version. Use timezone-aware objects to represent datetimes in UTC: datetime.datetime.fromtimestamp(timestamp, datetime.UTC). datetime.utcfromtimestamp(1518131274), -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ FAILED ../../../foobot_async/tests/test_foobot_async.py::test_get_devices_request FAILED ../../../foobot_async/tests/test_foobot_async.py::test_failed_auth_request FAILED ../../../foobot_async/tests/test_foobot_async.py::test_failed_bad_format_request FAILED ../../../foobot_async/tests/test_foobot_async.py::test_forbidden_access_request FAILED ../../../foobot_async/tests/test_foobot_async.py::test_overquota_request FAILED ../../../foobot_async/tests/test_foobot_async.py::test_internal_error_request FAILED ../../../foobot_async/tests/test_foobot_async.py::test_unhandled_error_request FAILED ../../../foobot_async/tests/test_foobot_async.py::test_get_last_data_request FAILED ../../../foobot_async/tests/test_foobot_async.py::test_get_historical_data_request FAILED ../../../foobot_async/tests/test_foobot_async.py::test_get_bad_data_request ======================== 10 failed, 4 warnings in 0.66s ======================== Unclosed client session client_session: <aiohttp.client.ClientSession object at 0x7f9420e33cb0> E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build; python3.13 -m pytest -v /<<PKGBUILDDIR>>/foobot_async/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 --------------------------------------------------------------------------------

