Package: src:djangorestframework Version: 3.16.1-4 Severity: serious Tags: ftbfs forky sid
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/202608/ 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:djangorestframework, 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 debian/rules execute_after_dh_auto_clean make[1]: Entering directory '/<<PKGBUILDDIR>>' rm -rf docs.debian rm -rf .mypy_cache make[1]: Leaving directory '/<<PKGBUILDDIR>>' 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 [... snipped ...] tests/test_encoders.py .......... [ 15%] tests/test_exceptions.py ........ [ 16%] tests/test_fields.py ...................... [ 17%] tests/test_filters.py ...................................... [ 20%] tests/test_generics.py .......................................... [ 22%] tests/test_htmlrenderer.py ......... [ 23%] tests/test_lazy_hyperlinks.py . [ 23%] tests/test_metadata.py .... [ 23%] tests/test_middleware.py ...... [ 24%] tests/test_model_serializer.py ..................s...................... [ 26%] ................. [ 27%] tests/test_multitable_inheritance.py ... [ 28%] tests/test_negotiation.py ........... [ 28%] tests/test_one_to_one_with_inheritance.py . [ 28%] tests/test_pagination.py ........... [ 29%] tests/test_parsers.py ............ [ 30%] tests/test_permissions.py .............................................. [ 33%] .... [ 33%] tests/test_prefetch_related.py ... [ 33%] tests/test_relations_hyperlink.py ...................... [ 35%] tests/test_relations_pk.py .................................... [ 37%] tests/test_relations_slug.py ............... [ 38%] tests/test_renderers.py ............................................... [ 41%] tests/test_request.py ........................... [ 43%] tests/test_requests_client.py .......... [ 43%] tests/test_response.py ................... [ 44%] tests/test_reverse.py ... [ 45%] tests/test_routers.py .................................................. [ 48%] .......... [ 48%] tests/test_serializer_bulk_update.py ..... [ 49%] tests/test_serializer_lists.py . [ 49%] tests/test_serializer_nested.py .. [ 49%] tests/test_settings.py ..... [ 49%] tests/test_status.py . [ 49%] tests/test_templatetags.py .......................... [ 51%] tests/test_testing.py ........................ [ 53%] tests/test_throttling.py ............................. [ 54%] tests/test_urlpatterns.py ........... [ 55%] tests/test_utils.py ........................ [ 57%] tests/test_validation.py .............. [ 58%] tests/test_validation_error.py ..... [ 58%] tests/test_validators.py ............................................... [ 61%] .... [ 61%] tests/test_versioning.py .......... [ 62%] tests/test_views.py ....... [ 62%] tests/test_viewsets.py .................. [ 63%] tests/test_write_only_fields.py .. [ 64%] tests/test_atomic_requests.py . [ 64%] tests/importable/test_installed.py ... [ 64%] tests/schemas/test_coreapi.py ..... [ 64%] tests/test_bound_fields.py ........... [ 65%] tests/test_description.py . [ 65%] tests/test_exceptions.py .. [ 65%] tests/test_fields.py ................................................... [ 68%] ........................................................................ [ 73%] ..............................................sss....................... [ 78%] ........................................................................ [ 82%] ............................ [ 84%] tests/test_filters.py .... [ 84%] tests/test_metadata.py .......... [ 85%] tests/test_pagination.py ......................................... [ 87%] tests/test_relations.py ................................................ [ 91%] ...... [ 91%] tests/test_renderers.py ......... [ 91%] tests/test_serializer.py ............................................... [ 95%] ......... [ 95%] tests/test_serializer_lists.py .................................. [ 97%] tests/test_serializer_nested.py ................ [ 98%] tests/test_templates.py .. [ 98%] tests/test_testing.py . [ 98%] tests/test_versioning.py ................ [100%] =================================== FAILURES =================================== ____________________ APIClientTests.test_multipart_encoding ____________________ tests/test_api_client.py:282: in test_multipart_encoding data = client.action(schema, ['encoding', 'multipart'], params={'example': temp}) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/coreapi/client.py:178: in action return transport.transition(link, self.decoders, params=params, link_ancestors=link_ancestors) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/coreapi/transports/http.py:378: in transition request = _build_http_request(session, url, method, headers, encoding, params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/coreapi/transports/http.py:231: in _build_http_request return session.prepare_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/requests/sessions.py:541: in prepare_request p.prepare( /usr/lib/python3/dist-packages/requests/models.py:442: in prepare self.prepare_body(data, files, json) /usr/lib/python3/dist-packages/requests/models.py:635: in prepare_body (body, content_type) = self._encode_files(files, raw_data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/requests/models.py:250: in _encode_files body, content_type = encode_multipart_formdata(new_fields) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/urllib3/filepost.py:81: in encode_multipart_formdata body.write(data) E TypeError: a bytes-like object is required, not '_TemporaryFileWrapper' =============================== warnings summary =============================== rest_framework/fields.py:990 /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_djangorestframework/build/rest_framework/fields.py:990: UserWarning: max_value should be an integer or Decimal instance. warnings.warn("max_value should be an integer or Decimal instance.") rest_framework/fields.py:992 /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_djangorestframework/build/rest_framework/fields.py:992: UserWarning: min_value should be an integer or Decimal instance. warnings.warn("min_value should be an integer or Decimal instance.") tests/test_authtoken.py::AuthTokenTests::test_authtoken_can_be_imported_when_not_included_in_installed_apps /usr/lib/python3/dist-packages/django/db/models/base.py:368: RuntimeWarning: Model 'authtoken.token' was already registered. Reloading models is not advised as it can lead to inconsistencies, most notably with related models. new_class._meta.apps.register_model(new_class._meta.app_label, new_class) tests/test_authtoken.py::AuthTokenTests::test_authtoken_can_be_imported_when_not_included_in_installed_apps /usr/lib/python3/dist-packages/django/db/models/base.py:368: RuntimeWarning: Model 'authtoken.tokenproxy' was already registered. Reloading models is not advised as it can lead to inconsistencies, most notably with related models. new_class._meta.apps.register_model(new_class._meta.app_label, new_class) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ SKIPPED [1] tests/test_model_serializer.py:457: has models.JSONField SKIPPED [1] tests/test_fields.py:655: Django 5.0 has removed pytz; this test should eventually be able to get removed. SKIPPED [1] tests/test_fields.py:663: Django 5.0 has removed pytz; this test should eventually be able to get removed. SKIPPED [1] tests/test_fields.py:673: Django 5.0 has removed pytz; this test should eventually be able to get removed. FAILED tests/test_api_client.py::APIClientTests::test_multipart_encoding - Ty... ============ 1 failed, 1555 passed, 4 skipped, 4 warnings in 4.87s ============= E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_djangorestframework/build; python3.13 -m pytest tests I: pybuild base:385: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_djangorestframework/build; python3.14 -m pytest tests ============================= test session starts ============================== platform linux -- Python 3.14.6, pytest-9.1.1, pluggy-1.6.0 django: version: 5.2.16 rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_djangorestframework/build configfile: setup.cfg plugins: cov-5.0.0, django-4.12.0, typeguard-4.4.4 collected 1560 items tests/authentication/test_authentication.py ............................ [ 1%] ............................... [ 3%] tests/browsable_api/test_browsable_api.py ......... [ 4%] tests/browsable_api/test_browsable_nested_api.py . [ 4%] tests/browsable_api/test_form_rendering.py ... [ 4%] tests/generic_relations/test_generic_relations.py .. [ 4%] tests/schemas/test_coreapi.py ............................. [ 6%] tests/schemas/test_get_schema_view.py .. [ 6%] tests/schemas/test_managementcommand.py ........ [ 7%] tests/schemas/test_openapi.py .......................................... [ 9%] ................. [ 11%] tests/test_api_client.py ....F............... [ 12%] tests/test_atomic_requests.py .... [ 12%] tests/test_authtoken.py ........... [ 13%] tests/test_decorators.py ................... [ 14%] tests/test_description.py .......... [ 15%] tests/test_encoders.py .......... [ 15%] tests/test_exceptions.py ........ [ 16%] tests/test_fields.py ...................... [ 17%] tests/test_filters.py ...................................... [ 20%] tests/test_generics.py .......................................... [ 22%] tests/test_htmlrenderer.py ......... [ 23%] tests/test_lazy_hyperlinks.py . [ 23%] tests/test_metadata.py .... [ 23%] tests/test_middleware.py ...... [ 24%] tests/test_model_serializer.py ..................s...................... [ 26%] ................. [ 27%] tests/test_multitable_inheritance.py ... [ 28%] tests/test_negotiation.py ........... [ 28%] tests/test_one_to_one_with_inheritance.py . [ 28%] tests/test_pagination.py ........... [ 29%] tests/test_parsers.py ............ [ 30%] tests/test_permissions.py .............................................. [ 33%] .... [ 33%] tests/test_prefetch_related.py ... [ 33%] tests/test_relations_hyperlink.py ...................... [ 35%] tests/test_relations_pk.py .................................... [ 37%] tests/test_relations_slug.py ............... [ 38%] tests/test_renderers.py ............................................... [ 41%] tests/test_request.py ........................... [ 43%] tests/test_requests_client.py .......... [ 43%] tests/test_response.py ................... [ 44%] tests/test_reverse.py ... [ 45%] tests/test_routers.py .................................................. [ 48%] .......... [ 48%] tests/test_serializer_bulk_update.py ..... [ 49%] tests/test_serializer_lists.py . [ 49%] tests/test_serializer_nested.py .. [ 49%] tests/test_settings.py ..... [ 49%] tests/test_status.py . [ 49%] tests/test_templatetags.py .......................... [ 51%] tests/test_testing.py ........................ [ 53%] tests/test_throttling.py ............................. [ 54%] tests/test_urlpatterns.py ........... [ 55%] tests/test_utils.py ........................ [ 57%] tests/test_validation.py .............. [ 58%] tests/test_validation_error.py ..... [ 58%] tests/test_validators.py ............................................... [ 61%] .... [ 61%] tests/test_versioning.py .......... [ 62%] tests/test_views.py ....... [ 62%] tests/test_viewsets.py .................. [ 63%] tests/test_write_only_fields.py .. [ 64%] tests/test_atomic_requests.py . [ 64%] tests/importable/test_installed.py ... [ 64%] tests/schemas/test_coreapi.py ..... [ 64%] tests/test_bound_fields.py ........... [ 65%] tests/test_description.py . [ 65%] tests/test_exceptions.py .. [ 65%] tests/test_fields.py ................................................... [ 68%] ........................................................................ [ 73%] ..............................................sss....................... [ 78%] ........................................................................ [ 82%] ............................ [ 84%] tests/test_filters.py .... [ 84%] tests/test_metadata.py .......... [ 85%] tests/test_pagination.py ......................................... [ 87%] tests/test_relations.py ................................................ [ 91%] ...... [ 91%] tests/test_renderers.py ......... [ 91%] tests/test_serializer.py ............................................... [ 95%] ......... [ 95%] tests/test_serializer_lists.py .................................. [ 97%] tests/test_serializer_nested.py ................ [ 98%] tests/test_templates.py .. [ 98%] tests/test_testing.py . [ 98%] tests/test_versioning.py ................ [100%] =================================== FAILURES =================================== ____________________ APIClientTests.test_multipart_encoding ____________________ tests/test_api_client.py:282: in test_multipart_encoding data = client.action(schema, ['encoding', 'multipart'], params={'example': temp}) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/coreapi/client.py:178: in action return transport.transition(link, self.decoders, params=params, link_ancestors=link_ancestors) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/coreapi/transports/http.py:378: in transition request = _build_http_request(session, url, method, headers, encoding, params) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/coreapi/transports/http.py:231: in _build_http_request return session.prepare_request(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/requests/sessions.py:541: in prepare_request p.prepare( /usr/lib/python3/dist-packages/requests/models.py:442: in prepare self.prepare_body(data, files, json) /usr/lib/python3/dist-packages/requests/models.py:635: in prepare_body (body, content_type) = self._encode_files(files, raw_data) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/requests/models.py:250: in _encode_files body, content_type = encode_multipart_formdata(new_fields) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/urllib3/filepost.py:81: in encode_multipart_formdata body.write(data) E TypeError: a bytes-like object is required, not '_TemporaryFileWrapper' =============================== warnings summary =============================== rest_framework/fields.py:990 /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_djangorestframework/build/rest_framework/fields.py:990: UserWarning: max_value should be an integer or Decimal instance. warnings.warn("max_value should be an integer or Decimal instance.") rest_framework/fields.py:992 /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_djangorestframework/build/rest_framework/fields.py:992: UserWarning: min_value should be an integer or Decimal instance. warnings.warn("min_value should be an integer or Decimal instance.") tests/test_authtoken.py::AuthTokenTests::test_authtoken_can_be_imported_when_not_included_in_installed_apps /usr/lib/python3/dist-packages/django/db/models/base.py:368: RuntimeWarning: Model 'authtoken.token' was already registered. Reloading models is not advised as it can lead to inconsistencies, most notably with related models. new_class._meta.apps.register_model(new_class._meta.app_label, new_class) tests/test_authtoken.py::AuthTokenTests::test_authtoken_can_be_imported_when_not_included_in_installed_apps /usr/lib/python3/dist-packages/django/db/models/base.py:368: RuntimeWarning: Model 'authtoken.tokenproxy' was already registered. Reloading models is not advised as it can lead to inconsistencies, most notably with related models. new_class._meta.apps.register_model(new_class._meta.app_label, new_class) -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html =========================== short test summary info ============================ SKIPPED [1] tests/test_model_serializer.py:457: has models.JSONField SKIPPED [1] tests/test_fields.py:655: Django 5.0 has removed pytz; this test should eventually be able to get removed. SKIPPED [1] tests/test_fields.py:663: Django 5.0 has removed pytz; this test should eventually be able to get removed. SKIPPED [1] tests/test_fields.py:673: Django 5.0 has removed pytz; this test should eventually be able to get removed. FAILED tests/test_api_client.py::APIClientTests::test_multipart_encoding - Ty... ============ 1 failed, 1555 passed, 4 skipped, 4 warnings in 4.93s ============= E: pybuild pybuild:485: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_djangorestframework/build; python3.14 -m pytest tests dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.13 3.14" --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 --------------------------------------------------------------------------------

