Package: src:aioimmich Version: 0.14.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:aioimmich, 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 ...] async def test_get_server_version_check( mock_immich_with_data, snapshot: SnapshotAssertion ): """Test async_get_version_check.""" api = await mock_immich_with_data() > version_check_result = await api.server.async_get_version_check() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_server.py:49: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aioimmich/server/__init__.py:53: in async_get_version_check result = await self.api.async_do_request("server/version-check") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ aioimmich/api.py:77: in async_do_request resp = await self.session.request( <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 0x7f11f7e219d0> url = URL('https://localhost:2283/api/server/version-check'), method = 'get' request_headers = {'Accept': 'application/json', 'x-api-key': 'abcdef1234567890'} status = 200 body = b'{"checkedAt": "2025-05-30T20:51:00.325Z", "releaseVersion": "v1.134.0"}' 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_all_tags _______________________________ mock_immich_with_data = <function mock_immich_with_data.<locals>.data_to_immich at 0x7f11f7b25080> snapshot = SnapshotAssertion(name='snapshot', num_executions=0) async def test_get_all_tags(mock_immich_with_data, snapshot: SnapshotAssertion): """Test async_get_all_tags.""" api = await mock_immich_with_data() > tags = await api.tags.async_get_all_tags() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_tags.py:11: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aioimmich/tags/__init__.py:16: in async_get_all_tags result = await self.api.async_do_request("tags") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ aioimmich/api.py:77: in async_do_request resp = await self.session.request( <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 0x7f11f7b18e90> url = URL('https://localhost:2283/api/tags'), method = 'get' request_headers = {'Accept': 'application/json', 'x-api-key': 'abcdef1234567890'} status = 200 body = b'[{"id": "14ce3af3-67be-41c6-b77c-b25abddaf546", "name": "My 30th birthday", "value": "My 30th birthday", "createdAt"...": "Holidays", "value": "Holidays", "createdAt": "2025-05-12T20:00:49.967Z", "updatedAt": "2025-05-12T20:00:55.575Z"}]' 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_my_user _______________________________ mock_immich_with_data = <function mock_immich_with_data.<locals>.data_to_immich at 0x7f11f7b25580> snapshot = SnapshotAssertion(name='snapshot', num_executions=0) async def test_get_my_user(mock_immich_with_data, snapshot: SnapshotAssertion): """Test async_get_my_user.""" api = await mock_immich_with_data() > user = await api.users.async_get_my_user() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_users.py:13: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ aioimmich/users/__init__.py:16: in async_get_my_user result = await self.api.async_do_request("users/me") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ aioimmich/api.py:77: in async_do_request resp = await self.session.request( <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 0x7f11f7b19b50> url = URL('https://localhost:2283/api/users/me'), method = 'get' request_headers = {'Accept': 'application/json', 'x-api-key': 'abcdef1234567890'} status = 200 body = b'{"id": "e7ef5713-9dab-4bd4-b899-715b0ca4379e", "email": "[email protected]", "name": "admin", "profileImagePath": "...47Z", "oauthId": "", "quotaSizeInBytes": null, "quotaUsageInBytes": 119526467534, "status": "active", "license": null}' 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 --------------------------- snapshot report summary ---------------------------- 14 snapshots unused. Re-run pytest with --snapshot-update to delete unused snapshots. =========================== short test summary info ============================ FAILED tests/test_aioimmich.py::test_errors - TypeError: ClientResponse.__ini... FAILED tests/test_albums.py::test_get_all_albums - TypeError: ClientResponse.... FAILED tests/test_albums.py::test_get_album_info - TypeError: ClientResponse.... FAILED tests/test_albums.py::test_add_assets_to_album - TypeError: ClientResp... FAILED tests/test_assets.py::test_view_asset - TypeError: ClientResponse.__in... FAILED tests/test_assets.py::test_upload_asset - TypeError: ClientResponse.__... FAILED tests/test_people.py::test_get_all_people - TypeError: ClientResponse.... FAILED tests/test_people.py::test_get_people_count - TypeError: ClientRespons... FAILED tests/test_search.py::test_get_all_assets - TypeError: ClientResponse.... FAILED tests/test_search.py::test_get_all_favorite_assets - TypeError: Client... FAILED tests/test_search.py::test_get_all_by_tag_ids - TypeError: ClientRespo... FAILED tests/test_search.py::test_get_all_by_person_ids - TypeError: ClientRe... FAILED tests/test_server.py::test_get_about_info - TypeError: ClientResponse.... FAILED tests/test_server.py::test_get_storage_info - TypeError: ClientRespons... FAILED tests/test_server.py::test_get_server_statistics - TypeError: ClientRe... FAILED tests/test_server.py::test_get_server_version_check - TypeError: Clien... FAILED tests/test_tags.py::test_get_all_tags - TypeError: ClientResponse.__in... FAILED tests/test_users.py::test_get_my_user - TypeError: ClientResponse.__in... ============================== 18 failed in 0.70s ============================== 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 --------------------------------------------------------------------------------

