Package: src:python-bring-api Version: 0.9.0-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-bring-api, 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 ...] 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 __________ TestSetListArticleLanguage.test_set_list_article_language ___________ self = <tests.test_bring.TestSetListArticleLanguage object at 0x7fe1bc678550> mocked = <aioresponses.core.aioresponses object at 0x7fe1bc4dd050> bring = <bring_api.bring.Bring object at 0x7fe1bc22d9c0> monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fe1bbefef20> async def test_set_list_article_language(self, mocked, bring, monkeypatch): """Test set list article language.""" mocked.post( f"https://api.getbring.com/rest/bringusersettings/{UUID}/{UUID}/listArticleLanguage", status=HTTPStatus.OK, ) monkeypatch.setattr(bring, "uuid", UUID) async def mocked__load_user_list_settings(*args, **kwargs): """Mock __load_user_list_settings.""" return {UUID: {"listArticleLanguage": "de-DE"}} monkeypatch.setattr( Bring, "_Bring__load_user_list_settings", mocked__load_user_list_settings ) > resp = await bring.set_list_article_language(UUID, "de-DE") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_bring.py:1420: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ bring_api/bring.py:1543: in set_list_article_language async with self._session.post(url, headers=self.headers, data=data) as r: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /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 0x7fe1bc35a750> url = URL('https://api.getbring.com/rest/bringusersettings/00000000-00000000-00000000-00000000/00000000-00000000-00000000-00000000/listArticleLanguage') method = 'post' request_headers = {'Authorization': 'Bearer', 'X-BRING-API-KEY': 'cof4Nc6D8saplXjE3h3HXqHH8m7VU2i1Gs0g85Sp', 'X-BRING-APPLICATION': 'bring', 'X-BRING-CLIENT': 'android', ...} status = <HTTPStatus.OK: 200>, body = b'', 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 _________________ TestSetListArticleLanguage.test_unauthorized _________________ self = <tests.test_bring.TestSetListArticleLanguage object at 0x7fe1bc6543e0> mocked = <aioresponses.core.aioresponses object at 0x7fe1bc5717d0> bring = <bring_api.bring.Bring object at 0x7fe1bc22efc0> monkeypatch = <_pytest.monkeypatch.MonkeyPatch object at 0x7fe1bbfc1b00> async def test_unauthorized(self, mocked, bring, monkeypatch): """Test unauthorized exception.""" mocked.post( f"https://api.getbring.com/rest/bringusersettings/{UUID}/{UUID}/listArticleLanguage", status=HTTPStatus.UNAUTHORIZED, ) monkeypatch.setattr(bring, "uuid", UUID) with pytest.raises(BringAuthException): > await bring.set_list_article_language(UUID, "de-DE") tests/test_bring.py:1451: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ bring_api/bring.py:1543: in set_list_article_language async with self._session.post(url, headers=self.headers, data=data) as r: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /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 0x7fe1bc35bc50> url = URL('https://api.getbring.com/rest/bringusersettings/00000000-00000000-00000000-00000000/00000000-00000000-00000000-00000000/listArticleLanguage') method = 'post' request_headers = {'Authorization': 'Bearer', 'X-BRING-API-KEY': 'cof4Nc6D8saplXjE3h3HXqHH8m7VU2i1Gs0g85Sp', 'X-BRING-APPLICATION': 'bring', 'X-BRING-CLIENT': 'android', ...} status = <HTTPStatus.UNAUTHORIZED: 401>, body = b'' content_type = 'application/json', payload = None, headers = None response_class = <class 'aiohttp.client_reqrep.ClientResponse'> reason = 'Unauthorized' 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_bring.py::TestDoesUserExist::test_mail_invalid - TypeError:... FAILED tests/test_bring.py::TestDoesUserExist::test_unknown_user - TypeError:... FAILED tests/test_bring.py::TestDoesUserExist::test_user_exist_with_parameter FAILED tests/test_bring.py::TestDoesUserExist::test_user_exist_without_parameter FAILED tests/test_bring.py::TestLogin::test_mail_invalid - TypeError: ClientR... FAILED tests/test_bring.py::TestLogin::test_unauthorized - TypeError: ClientR... FAILED tests/test_bring.py::TestLogin::test_parse_exception[200] - TypeError:... FAILED tests/test_bring.py::TestLogin::test_parse_exception[401] - TypeError:... FAILED tests/test_bring.py::TestLogin::test_login - TypeError: ClientResponse... FAILED tests/test_bring.py::TestLoadLists::test_load_lists - TypeError: Clien... FAILED tests/test_bring.py::TestLoadLists::test_parse_exception[200] - TypeEr... FAILED tests/test_bring.py::TestLoadLists::test_parse_exception[401] - TypeEr... FAILED tests/test_bring.py::TestLoadLists::test_unauthorized - TypeError: Cli... FAILED tests/test_bring.py::TestNotifications::test_notify[BringNotificationType.GOING_SHOPPING-] FAILED tests/test_bring.py::TestNotifications::test_notify[BringNotificationType.CHANGED_LIST-] FAILED tests/test_bring.py::TestNotifications::test_notify[BringNotificationType.SHOPPING_DONE-] FAILED tests/test_bring.py::TestNotifications::test_notify[BringNotificationType.URGENT_MESSAGE-WITH_ITEM_NAME] FAILED tests/test_bring.py::TestNotifications::test_unauthorized - TypeError:... FAILED tests/test_bring.py::TestNotifications::test_parse_exception - TypeErr... FAILED tests/test_bring.py::TestGetList::test_unauthorized - TypeError: Clien... FAILED tests/test_bring.py::TestGetList::test_parse_exception[200] - TypeErro... FAILED tests/test_bring.py::TestGetList::test_parse_exception[401] - TypeErro... FAILED tests/test_bring.py::TestGetList::test_get_list - TypeError: ClientRes... FAILED tests/test_bring.py::TestGetAllItemDetails::test_get_all_item_details FAILED tests/test_bring.py::TestGetAllItemDetails::test_list_not_found - Type... FAILED tests/test_bring.py::TestGetAllItemDetails::test_unauthorized - TypeEr... FAILED tests/test_bring.py::TestGetAllItemDetails::test_parse_exception[200] FAILED tests/test_bring.py::TestGetAllItemDetails::test_parse_exception[401] FAILED tests/test_bring.py::TestArticleTranslations::test_load_fallback_to_download FAILED tests/test_bring.py::TestArticleTranslations::test_parse_exception - T... FAILED tests/test_bring.py::TestGetUserAccount::test_get_user_account - TypeE... FAILED tests/test_bring.py::TestGetUserAccount::test_unauthorized - TypeError... FAILED tests/test_bring.py::TestGetUserAccount::test_parse_exception[200] - T... FAILED tests/test_bring.py::TestGetUserAccount::test_parse_exception[401] - T... FAILED tests/test_bring.py::TestGetAllUserSettings::test_get_all_user_settings FAILED tests/test_bring.py::TestGetAllUserSettings::test_unauthorized - TypeE... FAILED tests/test_bring.py::TestGetAllUserSettings::test_parse_exception[200] FAILED tests/test_bring.py::TestGetAllUserSettings::test_parse_exception[401] FAILED tests/test_bring.py::TestBatchUpdateList::test_batch_update_list_single_item[item0-TO_PURCHASE] FAILED tests/test_bring.py::TestBatchUpdateList::test_batch_update_list_single_item[item1-TO_RECENTLY] FAILED tests/test_bring.py::TestBatchUpdateList::test_batch_update_list_single_item[item2-REMOVE] FAILED tests/test_bring.py::TestBatchUpdateList::test_batch_update_list_single_item[item3-None] FAILED tests/test_bring.py::TestBatchUpdateList::test_batch_update_list_single_item[item4-None] FAILED tests/test_bring.py::TestBatchUpdateList::test_batch_update_list_single_item[item5-None] FAILED tests/test_bring.py::TestBatchUpdateList::test_batch_update_list_single_item[item6-None] FAILED tests/test_bring.py::TestBatchUpdateList::test_batch_update_list_single_item[item7-None] FAILED tests/test_bring.py::TestBatchUpdateList::test_batch_update_list_single_item[item8-None] FAILED tests/test_bring.py::TestBatchUpdateList::test_batch_update_list_single_item[item9-None] FAILED tests/test_bring.py::TestBatchUpdateList::test_batch_update_list_single_item[item10-TO_PURCHASE] FAILED tests/test_bring.py::TestBatchUpdateList::test_batch_update_list_single_item[item11-TO_PURCHASE] FAILED tests/test_bring.py::TestBatchUpdateList::test_batch_update_list_single_item[item12-TO_PURCHASE] FAILED tests/test_bring.py::TestBatchUpdateList::test_batch_update_list_single_item[item13-TO_PURCHASE] FAILED tests/test_bring.py::TestBatchUpdateList::test_batch_update_list_single_item[item14-TO_PURCHASE] FAILED tests/test_bring.py::TestBatchUpdateList::test_batch_update_list_single_item[item15-TO_PURCHASE] FAILED tests/test_bring.py::TestBatchUpdateList::test_batch_update_list_single_item[item16-TO_PURCHASE] FAILED tests/test_bring.py::TestBatchUpdateList::test_batch_update_list_multiple_items FAILED tests/test_bring.py::TestBatchUpdateList::test_unauthorized - TypeErro... FAILED tests/test_bring.py::TestBatchUpdateList::test_parse_exception - TypeE... FAILED tests/test_bring.py::TestRetrieveNewAccessToken::test_retrieve_new_access_token FAILED tests/test_bring.py::TestRetrieveNewAccessToken::test_auth_exception FAILED tests/test_bring.py::TestRetrieveNewAccessToken::test_parse_exception[200] FAILED tests/test_bring.py::TestRetrieveNewAccessToken::test_parse_exception[401] FAILED tests/test_bring.py::TestSetListArticleLanguage::test_set_list_article_language FAILED tests/test_bring.py::TestSetListArticleLanguage::test_unauthorized - T... ======================== 64 failed, 67 passed in 4.00s ========================= E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build; python3.13 -m pytest -v 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 --------------------------------------------------------------------------------

