Package: src:pypaperless
Version: 5.2.2-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:pypaperless, 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 ...]

        self, resp: aioresponses, api: Paperless
    ) -> None:
        """Test generate api token with custom session."""
        session = aiohttp.ClientSession()
    
        resp.post(
            f"{PAPERLESS_TEST_URL}{API_PATH['token']}",
            status=200,
            payload=DATA_TOKEN,
        )
>       token = await api.generate_api_token(
            PAPERLESS_TEST_URL,
            PAPERLESS_TEST_USER,
            PAPERLESS_TEST_PASSWORD,
            session=session,
        )

tests/test_common.py:333: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
pypaperless/api.py:223: in generate_api_token
    res = await session.request("post", f"{url}{API_PATH['token']}", json=json)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
<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 0x7f7fe3f1df20>
url = URL('https://paperless.not-existing.internal/api/token/'), method = 'post'
request_headers = {}, status = 200, body = b'{"token": "abcdef0123456789"}'
content_type = 'application/json', payload = {'token': 'abcdef0123456789'}
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_common.py::TestPaperless::test_init - TypeError: ClientResp...
FAILED tests/test_common.py::TestPaperless::test_context - TypeError: ClientR...
FAILED tests/test_common.py::TestPaperless::test_init_error - TypeError: Clie...
FAILED tests/test_common.py::TestPaperless::test_request - TypeError: ClientR...
FAILED tests/test_common.py::TestPaperless::test_request_json - TypeError: Cl...
FAILED tests/test_common.py::TestPaperless::test_generate_api_token - TypeErr...
FAILED tests/test_common.py::TestPaperless::test_generate_api_token_with_session
ERROR 
tests/test_common.py::TestPaperless::test_custom_field_draft_value_wo_cache
ERROR 
tests/test_common.py::TestPaperless::test_custom_field_draft_value_wslash_cache
ERROR tests/test_models_matrix.py::TestReadOnly::test_pages[mapping0] - TypeE...
ERROR tests/test_models_matrix.py::TestReadOnly::test_as_dict[mapping0] - Typ...
ERROR tests/test_models_matrix.py::TestReadOnly::test_as_list[mapping0] - Typ...
ERROR tests/test_models_matrix.py::TestReadOnly::test_iter[mapping0] - TypeEr...
ERROR tests/test_models_matrix.py::TestReadOnly::test_all[mapping0] - TypeErr...
ERROR tests/test_models_matrix.py::TestReadOnly::test_call[mapping0] - TypeEr...
ERROR tests/test_models_matrix.py::TestReadOnly::test_pages[mapping1] - TypeE...
ERROR tests/test_models_matrix.py::TestReadOnly::test_as_dict[mapping1] - Typ...
ERROR tests/test_models_matrix.py::TestReadOnly::test_as_list[mapping1] - Typ...
ERROR tests/test_models_matrix.py::TestReadOnly::test_iter[mapping1] - TypeEr...
ERROR tests/test_models_matrix.py::TestReadOnly::test_all[mapping1] - TypeErr...
ERROR tests/test_models_matrix.py::TestReadOnly::test_call[mapping1] - TypeEr...
ERROR tests/test_models_matrix.py::TestReadOnly::test_pages[mapping2] - TypeE...
ERROR tests/test_models_matrix.py::TestReadOnly::test_as_dict[mapping2] - Typ...
ERROR tests/test_models_matrix.py::TestReadOnly::test_as_list[mapping2] - Typ...
ERROR tests/test_models_matrix.py::TestReadOnly::test_iter[mapping2] - TypeEr...
ERROR tests/test_models_matrix.py::TestReadOnly::test_all[mapping2] - TypeErr...
ERROR tests/test_models_matrix.py::TestReadOnly::test_call[mapping2] - TypeEr...
ERROR tests/test_models_matrix.py::TestReadOnly::test_pages[mapping3] - TypeE...
ERROR tests/test_models_matrix.py::TestReadOnly::test_as_dict[mapping3] - Typ...
ERROR tests/test_models_matrix.py::TestReadOnly::test_as_list[mapping3] - Typ...
ERROR tests/test_models_matrix.py::TestReadOnly::test_iter[mapping3] - TypeEr...
ERROR tests/test_models_matrix.py::TestReadOnly::test_all[mapping3] - TypeErr...
ERROR tests/test_models_matrix.py::TestReadOnly::test_call[mapping3] - TypeEr...
ERROR tests/test_models_matrix.py::TestReadOnly::test_pages[mapping4] - TypeE...
ERROR tests/test_models_matrix.py::TestReadOnly::test_as_dict[mapping4] - Typ...
ERROR tests/test_models_matrix.py::TestReadOnly::test_as_list[mapping4] - Typ...
ERROR tests/test_models_matrix.py::TestReadOnly::test_iter[mapping4] - TypeEr...
ERROR tests/test_models_matrix.py::TestReadOnly::test_all[mapping4] - TypeErr...
ERROR tests/test_models_matrix.py::TestReadOnly::test_call[mapping4] - TypeEr...
ERROR tests/test_models_matrix.py::TestReadOnly::test_pages[mapping5] - TypeE...
ERROR tests/test_models_matrix.py::TestReadOnly::test_as_dict[mapping5] - Typ...
ERROR tests/test_models_matrix.py::TestReadOnly::test_as_list[mapping5] - Typ...
ERROR tests/test_models_matrix.py::TestReadOnly::test_iter[mapping5] - TypeEr...
ERROR tests/test_models_matrix.py::TestReadOnly::test_all[mapping5] - TypeErr...
ERROR tests/test_models_matrix.py::TestReadOnly::test_call[mapping5] - TypeEr...
ERROR tests/test_models_matrix.py::TestReadOnly::test_pages[mapping6] - TypeE...
ERROR tests/test_models_matrix.py::TestReadOnly::test_as_dict[mapping6] - Typ...
ERROR tests/test_models_matrix.py::TestReadOnly::test_as_list[mapping6] - Typ...
ERROR tests/test_models_matrix.py::TestReadOnly::test_iter[mapping6] - TypeEr...
ERROR tests/test_models_matrix.py::TestReadOnly::test_all[mapping6] - TypeErr...
ERROR tests/test_models_matrix.py::TestReadOnly::test_call[mapping6] - TypeEr...
ERROR tests/test_models_matrix.py::TestReadOnly::test_pages[mapping7] - TypeE...
ERROR tests/test_models_matrix.py::TestReadOnly::test_as_dict[mapping7] - Typ...
ERROR tests/test_models_matrix.py::TestReadOnly::test_as_list[mapping7] - Typ...
ERROR tests/test_models_matrix.py::TestReadOnly::test_iter[mapping7] - TypeEr...
ERROR tests/test_models_matrix.py::TestReadOnly::test_all[mapping7] - TypeErr...
ERROR tests/test_models_matrix.py::TestReadOnly::test_call[mapping7] - TypeEr...
ERROR tests/test_models_matrix.py::TestReadOnly::test_pages[mapping8] - TypeE...
ERROR tests/test_models_matrix.py::TestReadOnly::test_as_dict[mapping8] - Typ...
ERROR tests/test_models_matrix.py::TestReadOnly::test_as_list[mapping8] - Typ...
ERROR tests/test_models_matrix.py::TestReadOnly::test_iter[mapping8] - TypeEr...
ERROR tests/test_models_matrix.py::TestReadOnly::test_all[mapping8] - TypeErr...
ERROR tests/test_models_matrix.py::TestReadOnly::test_call[mapping8] - TypeEr...
ERROR tests/test_models_matrix.py::TestReadOnly::test_pages[mapping9] - TypeE...
ERROR tests/test_models_matrix.py::TestReadOnly::test_as_dict[mapping9] - Typ...
ERROR tests/test_models_matrix.py::TestReadOnly::test_as_list[mapping9] - Typ...
ERROR tests/test_models_matrix.py::TestReadOnly::test_iter[mapping9] - TypeEr...
ERROR tests/test_models_matrix.py::TestReadOnly::test_all[mapping9] - TypeErr...
ERROR tests/test_models_matrix.py::TestReadOnly::test_call[mapping9] - TypeEr...
ERROR tests/test_models_matrix.py::TestReadOnly::test_pages[mapping10] - Type...
ERROR tests/test_models_matrix.py::TestReadOnly::test_as_dict[mapping10] - Ty...
ERROR tests/test_models_matrix.py::TestReadOnly::test_as_list[mapping10] - Ty...
ERROR tests/test_models_matrix.py::TestReadOnly::test_iter[mapping10] - TypeE...
ERROR tests/test_models_matrix.py::TestReadOnly::test_all[mapping10] - TypeEr...
ERROR tests/test_models_matrix.py::TestReadOnly::test_call[mapping10] - TypeE...
ERROR tests/test_models_matrix.py::TestReadOnly::test_pages[mapping11] - Type...
ERROR tests/test_models_matrix.py::TestReadOnly::test_as_dict[mapping11] - Ty...
ERROR tests/test_models_matrix.py::TestReadOnly::test_as_list[mapping11] - Ty...
ERROR tests/test_models_matrix.py::TestReadOnly::test_iter[mapping11] - 
TypeE...Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7f7fe3c44a50>
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7f7fe3e91a90>
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7f7fe3e90a50>
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7f7fe3e92ad0>
Unclosed client session
client_session: <aiohttp.client.ClientSession object at 0x7f7fe3e93ed0>

ERROR tests/test_models_matrix.py::TestReadOnly::test_all[mapping11] - TypeEr...
ERROR tests/test_models_matrix.py::TestReadOnly::test_call[mapping11] - TypeE...
ERROR tests/test_models_matrix.py::TestReadOnly::test_pages[mapping12] - Type...
ERROR tests/test_models_matrix.py::TestReadOnly::test_as_dict[mapping12] - Ty...
ERROR tests/test_models_matrix.py::TestReadOnly::test_as_list[mapping12] - Ty...
ERROR tests/test_models_matrix.py::TestReadOnly::test_iter[mapping12] - TypeE...
ERROR tests/test_models_matrix.py::TestReadOnly::test_all[mapping12] - TypeEr...
ERROR tests/test_models_matrix.py::TestReadOnly::test_call[mapping12] - TypeE...
ERROR tests/test_models_matrix.py::TestReadOnly::test_pages[mapping13] - Type...
ERROR tests/test_models_matrix.py::TestReadOnly::test_as_dict[mapping13] - Ty...
ERROR tests/test_models_matrix.py::TestReadOnly::test_as_list[mapping13] - Ty...
ERROR tests/test_models_matrix.py::TestReadOnly::test_iter[mapping13] - TypeE...
ERROR tests/test_models_matrix.py::TestReadOnly::test_all[mapping13] - TypeEr...
ERROR tests/test_models_matrix.py::TestReadOnly::test_call[mapping13] - TypeE...
ERROR tests/test_models_matrix.py::TestReadWrite::test_pages[mapping0] - Type...
ERROR tests/test_models_matrix.py::TestReadWrite::test_iter[mapping0] - TypeE...
ERROR tests/test_models_matrix.py::TestReadWrite::test_all[mapping0] - TypeEr...
ERROR tests/test_models_matrix.py::TestReadWrite::test_reduce[mapping0] - Typ...
ERROR tests/test_models_matrix.py::TestReadWrite::test_call[mapping0] - TypeE...
ERROR tests/test_models_matrix.py::TestReadWrite::test_create[mapping0] - Typ...
ERROR tests/test_models_matrix.py::TestReadWrite::test_udpate[mapping0] - Typ...
ERROR tests/test_models_matrix.py::TestReadWrite::test_delete[mapping0] - Typ...
ERROR tests/test_models_matrix.py::TestReadWrite::test_pages[mapping1] - Type...
ERROR tests/test_models_matrix.py::TestReadWrite::test_iter[mapping1] - TypeE...
ERROR tests/test_models_matrix.py::TestReadWrite::test_all[mapping1] - TypeEr...
ERROR tests/test_models_matrix.py::TestReadWrite::test_reduce[mapping1] - Typ...
ERROR tests/test_models_matrix.py::TestReadWrite::test_call[mapping1] - TypeE...
ERROR tests/test_models_matrix.py::TestReadWrite::test_create[mapping1] - Typ...
ERROR tests/test_models_matrix.py::TestReadWrite::test_udpate[mapping1] - Typ...
ERROR tests/test_models_matrix.py::TestReadWrite::test_delete[mapping1] - Typ...
ERROR tests/test_models_matrix.py::TestReadWrite::test_pages[mapping2] - Type...
ERROR tests/test_models_matrix.py::TestReadWrite::test_iter[mapping2] - TypeE...
ERROR tests/test_models_matrix.py::TestReadWrite::test_all[mapping2] - TypeEr...
ERROR tests/test_models_matrix.py::TestReadWrite::test_reduce[mapping2] - Typ...
ERROR tests/test_models_matrix.py::TestReadWrite::test_call[mapping2] - TypeE...
ERROR tests/test_models_matrix.py::TestReadWrite::test_create[mapping2] - Typ...
ERROR tests/test_models_matrix.py::TestReadWrite::test_udpate[mapping2] - Typ...
ERROR tests/test_models_matrix.py::TestReadWrite::test_delete[mapping2] - Typ...
ERROR tests/test_models_matrix.py::TestReadWrite::test_pages[mapping3] - Type...
ERROR tests/test_models_matrix.py::TestReadWrite::test_iter[mapping3] - TypeE...
ERROR tests/test_models_matrix.py::TestReadWrite::test_all[mapping3] - TypeEr...
ERROR tests/test_models_matrix.py::TestReadWrite::test_reduce[mapping3] - Typ...
ERROR tests/test_models_matrix.py::TestReadWrite::test_call[mapping3] - TypeE...
ERROR tests/test_models_matrix.py::TestReadWrite::test_create[mapping3] - Typ...
ERROR tests/test_models_matrix.py::TestReadWrite::test_udpate[mapping3] - Typ...
ERROR tests/test_models_matrix.py::TestReadWrite::test_delete[mapping3] - Typ...
ERROR tests/test_models_matrix.py::TestReadWrite::test_pages[mapping4] - Type...
ERROR tests/test_models_matrix.py::TestReadWrite::test_iter[mapping4] - TypeE...
ERROR tests/test_models_matrix.py::TestReadWrite::test_all[mapping4] - TypeEr...
ERROR tests/test_models_matrix.py::TestReadWrite::test_reduce[mapping4] - Typ...
ERROR tests/test_models_matrix.py::TestReadWrite::test_call[mapping4] - TypeE...
ERROR tests/test_models_matrix.py::TestReadWrite::test_create[mapping4] - Typ...
ERROR tests/test_models_matrix.py::TestReadWrite::test_udpate[mapping4] - Typ...
ERROR tests/test_models_matrix.py::TestReadWrite::test_delete[mapping4] - Typ...
ERROR tests/test_models_matrix.py::TestReadWrite::test_pages[mapping5] - Type...
ERROR tests/test_models_matrix.py::TestReadWrite::test_iter[mapping5] - TypeE...
ERROR tests/test_models_matrix.py::TestReadWrite::test_all[mapping5] - TypeEr...
ERROR tests/test_models_matrix.py::TestReadWrite::test_reduce[mapping5] - Typ...
ERROR tests/test_models_matrix.py::TestReadWrite::test_call[mapping5] - TypeE...
ERROR tests/test_models_matrix.py::TestReadWrite::test_create[mapping5] - Typ...
ERROR tests/test_models_matrix.py::TestReadWrite::test_udpate[mapping5] - Typ...
ERROR tests/test_models_matrix.py::TestReadWrite::test_delete[mapping5] - Typ...
ERROR 
tests/test_models_matrix.py::TestSecurableMixin::test_permissions[mapping0]
ERROR 
tests/test_models_matrix.py::TestSecurableMixin::test_permission_change[mapping0]
ERROR 
tests/test_models_matrix.py::TestSecurableMixin::test_permissions[mapping1]
ERROR 
tests/test_models_matrix.py::TestSecurableMixin::test_permission_change[mapping1]
ERROR 
tests/test_models_matrix.py::TestSecurableMixin::test_permissions[mapping2]
ERROR 
tests/test_models_matrix.py::TestSecurableMixin::test_permission_change[mapping2]
ERROR 
tests/test_models_matrix.py::TestSecurableMixin::test_permissions[mapping3]
ERROR 
tests/test_models_matrix.py::TestSecurableMixin::test_permission_change[mapping3]
ERROR 
tests/test_models_matrix.py::TestSecurableMixin::test_permissions[mapping4]
ERROR 
tests/test_models_matrix.py::TestSecurableMixin::test_permission_change[mapping4]
ERROR tests/test_models_specific.py::TestModelConfig::test_call - TypeError: ...
ERROR tests/test_models_specific.py::TestModelDocuments::test_lazy - TypeErro...
ERROR tests/test_models_specific.py::TestModelDocuments::test_create - TypeEr...
ERROR 
tests/test_models_specific.py::TestModelDocuments::test_create_date_property
ERROR tests/test_models_specific.py::TestModelDocuments::test_udpate - TypeEr...
ERROR tests/test_models_specific.py::TestModelDocuments::test_delete - TypeEr...
ERROR tests/test_models_specific.py::TestModelDocuments::test_meta - TypeErro...
ERROR tests/test_models_specific.py::TestModelDocuments::test_files - TypeErr...
ERROR tests/test_models_specific.py::TestModelDocuments::test_suggestions - T...
ERROR tests/test_models_specific.py::TestModelDocuments::test_get_next_an - T...
ERROR tests/test_models_specific.py::TestModelDocuments::test_searching - Typ...
ERROR tests/test_models_specific.py::TestModelDocuments::test_note_call - Typ...
ERROR tests/test_models_specific.py::TestModelDocuments::test_note_create - T...
ERROR tests/test_models_specific.py::TestModelDocuments::test_note_delete - T...
ERROR 
tests/test_models_specific.py::TestModelDocuments::test_custom_field_list_wo_cache
ERROR 
tests/test_models_specific.py::TestModelDocuments::test_custom_field_list_wslash_cache
ERROR tests/test_models_specific.py::TestModelDocuments::test_email - TypeErr...
ERROR tests/test_models_specific.py::TestModelVersion::test_call - TypeError:...
ERROR tests/test_models_specific.py::TestModelStatistics::test_call - TypeErr...
ERROR tests/test_models_specific.py::TestModelStatus::test_call - TypeError: ...
ERROR tests/test_models_specific.py::TestModelStatus::test_has_errors - TypeE...
ERROR tests/test_models_specific.py::TestModelTasks::test_iter - TypeError: C...
ERROR tests/test_models_specific.py::TestModelTasks::test_call - TypeError: C...
ERROR tests/test_models_specific.py::TestModelWorkflows::test_helpers - TypeE...
================== 7 failed, 14 passed, 168 errors in 15.09s ===================
E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build; python3.13 -m pytest --no-cov
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:5: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess failed with exit 
status 2
--------------------------------------------------------------------------------

Reply via email to