Package: src:djangorestframework Version: 3.16.1-3 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/202512/ 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 ...] /usr/lib/python3/dist-packages/django/test/client.py:457: in get return self.generic( /usr/lib/python3/dist-packages/django/test/client.py:609: in generic return self.request(**r) ^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/test/client.py:886: in request response = self.handler(environ) ^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/test/client.py:176: in __call__ response = self.get_response(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/core/handlers/base.py:140: in get_response response = self._middleware_chain(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/core/handlers/exception.py:57: in inner response = response_for_exception(request, exc) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/core/handlers/exception.py:141: in response_for_exception response = handle_uncaught_exception( /usr/lib/python3/dist-packages/django/core/handlers/exception.py:55: in inner response = get_response(request) ^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/utils/deprecation.py:134: in __call__ response = response or self.get_response(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/core/handlers/exception.py:57: in inner response = response_for_exception(request, exc) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/core/handlers/exception.py:141: in response_for_exception response = handle_uncaught_exception( /usr/lib/python3/dist-packages/django/core/handlers/exception.py:55: in inner response = get_response(request) ^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/utils/deprecation.py:134: in __call__ response = response or self.get_response(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/core/handlers/exception.py:57: in inner response = response_for_exception(request, exc) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/core/handlers/exception.py:141: in response_for_exception response = handle_uncaught_exception( /usr/lib/python3/dist-packages/django/core/handlers/exception.py:55: in inner response = get_response(request) ^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/utils/deprecation.py:134: in __call__ response = response or self.get_response(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/core/handlers/exception.py:57: in inner response = response_for_exception(request, exc) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/core/handlers/exception.py:141: in response_for_exception response = handle_uncaught_exception( /usr/lib/python3/dist-packages/django/core/handlers/exception.py:55: in inner response = get_response(request) ^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/utils/deprecation.py:134: in __call__ response = response or self.get_response(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/core/handlers/exception.py:57: in inner response = response_for_exception(request, exc) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/core/handlers/exception.py:68: in response_for_exception response = get_exception_response( /usr/lib/python3/dist-packages/django/core/handlers/exception.py:168: in get_exception_response response = handle_uncaught_exception(request, resolver, sys.exc_info()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/core/handlers/exception.py:165: in get_exception_response response = callback(request, exception=exception) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/utils/decorators.py:134: in _wrapper_view response = view_func(request, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/views/defaults.py:78: in page_not_found body = template.render(Context(context)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/template/base.py:175: in render return self._render(context) ^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/test/utils.py:111: in instrumented_test_render template_rendered.send(sender=self, template=self, context=context) /usr/lib/python3/dist-packages/django/dispatch/dispatcher.py:177: in send (receiver, receiver(signal=self, sender=sender, **named)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/test/client.py:267: in store_rendered_templates store["context"].append(copy(context)) ^^^^^^^^^^^^^ /usr/lib/python3.14/copy.py:82: in copy return copier(x) ^^^^^^^^^ /usr/lib/python3/dist-packages/django/template/context.py:158: in __copy__ duplicate = super().__copy__() ^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/template/context.py:39: in __copy__ duplicate.dicts = self.dicts[:] ^^^^^^^^^^^^^^^ E AttributeError: 'super' object has no attribute 'dicts' and no __dict__ for setting new attributes =============================== 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:366: 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:366: 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_middleware.py:134: Only for Django 5.1+ SKIPPED [1] tests/test_middleware.py:138: Only for Django 5.1+ SKIPPED [1] tests/test_middleware.py:142: Only for Django 5.1+ SKIPPED [1] tests/test_middleware.py:146: Only for Django 5.1+ SKIPPED [1] tests/test_model_serializer.py:457: has models.JSONField SKIPPED [1] tests/test_views.py:145: Only for Django 5.1+ SKIPPED [1] tests/test_views.py:149: Only for Django 5.1+ SKIPPED [1] tests/test_viewsets.py:201: Only for Django 5.1+ FAILED tests/authentication/test_authentication.py::SessionAuthTests::test_login_view_renders_on_get FAILED tests/browsable_api/test_browsable_api.py::AnonymousUserTests::test_get_returns_http_forbidden_when_anonymous_user FAILED tests/browsable_api/test_browsable_api.py::DropdownWithAuthTests::test_dropdown_contains_logout_form FAILED tests/browsable_api/test_browsable_api.py::DropdownWithAuthTests::test_login_shown_when_logged_out FAILED tests/browsable_api/test_browsable_api.py::DropdownWithAuthTests::test_logout_shown_when_logged_in FAILED tests/browsable_api/test_browsable_api.py::DropdownWithAuthTests::test_name_shown_when_logged_in FAILED tests/browsable_api/test_browsable_api.py::NoDropdownWithoutAuthTests::test_dropdown_not_shown_when_logged_in FAILED tests/browsable_api/test_browsable_api.py::NoDropdownWithoutAuthTests::test_dropdown_not_shown_when_logged_out FAILED tests/browsable_api/test_browsable_api.py::NoDropdownWithoutAuthTests::test_name_shown_when_logged_in FAILED tests/browsable_api/test_browsable_nested_api.py::DropdownWithAuthTests::test_login FAILED tests/test_htmlrenderer.py::TemplateHTMLRendererTests::test_not_found_html_view FAILED tests/test_htmlrenderer.py::TemplateHTMLRendererTests::test_permission_denied_html_view FAILED tests/test_htmlrenderer.py::TemplateHTMLRendererTests::test_simple_html_view FAILED tests/test_htmlrenderer.py::TemplateHTMLRendererTests::test_validation_error_html_view FAILED tests/test_htmlrenderer.py::TemplateHTMLRendererExceptionTests::test_not_found_html_view_with_template FAILED tests/test_htmlrenderer.py::TemplateHTMLRendererExceptionTests::test_permission_denied_html_view_with_template FAILED tests/test_renderers.py::RendererEndToEndTests::test_contains_headers_of_api_response FAILED tests/test_renderers.py::RendererEndToEndTests::test_parse_error_renderers_browsable_api FAILED tests/test_response.py::Issue122Tests::test_html_renderer_is_first - A... FAILED tests/test_response.py::Issue122Tests::test_only_html_renderer - Attri... FAILED tests/test_response.py::Issue467Tests::test_form_has_label_and_help_text FAILED tests/test_response.py::Issue807Tests::test_form_has_label_and_help_text FAILED tests/test_testing.py::TestExistingPatterns::test_urlpatterns - Attrib... FAILED tests/test_renderers.py::BrowsableAPIRendererTests::test_extra_actions_dropdown FAILED tests/test_renderers.py::BrowsableAPIRendererTests::test_extra_actions_dropdown_not_authed ============ 25 failed, 1527 passed, 8 skipped, 4 warnings in 6.32s ============ E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_djangorestframework/build; python3.14 -m pytest tests I: pybuild base:317: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_djangorestframework/build; python3.13 -m pytest tests ============================= test session starts ============================== platform linux -- Python 3.13.11, pytest-9.0.2, pluggy-1.6.0 django: version: 4.2.26 rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_djangorestframework/build configfile: setup.cfg plugins: cov-5.0.0, typeguard-4.4.4, django-4.11.1 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 .................... [ 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 ..ssss [ 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 .....ss [ 62%] tests/test_viewsets.py .....s............ [ 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%] ........................................................................ [ 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%] =============================== 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:366: 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:366: 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_middleware.py:134: Only for Django 5.1+ SKIPPED [1] tests/test_middleware.py:138: Only for Django 5.1+ SKIPPED [1] tests/test_middleware.py:142: Only for Django 5.1+ SKIPPED [1] tests/test_middleware.py:146: Only for Django 5.1+ SKIPPED [1] tests/test_model_serializer.py:457: has models.JSONField SKIPPED [1] tests/test_views.py:145: Only for Django 5.1+ SKIPPED [1] tests/test_views.py:149: Only for Django 5.1+ SKIPPED [1] tests/test_viewsets.py:201: Only for Django 5.1+ ================= 1552 passed, 8 skipped, 4 warnings in 4.27s ================== dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.14 3.13" returned exit code 13 make: *** [debian/rules:9: binary] Error 25 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 --------------------------------------------------------------------------------

