Package: src:python-crispy-bootstrap5 Version: 2025.6-1 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:python-crispy-bootstrap5, so that this is still visible in the BTS web page for this package. Thanks. -------------------------------------------------------------------------------- [...] debian/rules clean dh clean --with python3 --buildsystem=pybuild dh_auto_clean -O--buildsystem=pybuild dh_autoreconf_clean -O--buildsystem=pybuild dh_clean -O--buildsystem=pybuild debian/rules binary dh binary --with python3 --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:131: Building wheel for python3.14 with "build" module I: pybuild base:317: python3.14 -m build --skip-dependency-check --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_crispy-bootstrap5 * Building wheel... No `packages` or `py_modules` configuration, performing automatic discovery. [... snipped ...] HTML("<b>test</b>"), ), ) > assert 'class="mb-3 "' in render_crispy_form(test_form) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_layout_objects.py:688: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/crispy_forms/utils.py:168: in render_crispy_form return node.render(node_context) ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/crispy_forms/templatetags/crispy_forms_tags.py:199: in render c = self.get_render(context).flatten() ^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/crispy_forms/templatetags/crispy_forms_tags.py:109: in get_render node_context = context.__copy__() ^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/template/context.py:158: in __copy__ duplicate = super().__copy__() ^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = [{'True': True, 'False': False, 'None': None}, {'form': <SampleForm bound=False, valid=Unknown, fields=(is_company;email;password1;password2;first_name;last_name;datetime_field)>, 'helper': None}] def __copy__(self): duplicate = copy(super()) > duplicate.dicts = self.dicts[:] ^^^^^^^^^^^^^^^ E AttributeError: 'super' object has no attribute 'dicts' and no __dict__ for setting new attributes /usr/lib/python3/dist-packages/django/template/context.py:39: AttributeError ______________ TestBootstrapLayoutObjects.test_formactions_attrs _______________ self = <tests.test_layout_objects.TestBootstrapLayoutObjects object at 0x7f432db59b80> def test_formactions_attrs(self): test_form = SampleForm() test_form.helper = FormHelper() test_form.helper.form_tag = False test_form.helper.field_class = "field-class" test_form.helper.layout = Layout( FormActions( HTML("<b>test</b>"), css_class="formactions-test-class", css_id="formactions-test-id", test="formactions-test", ), ) > assert parse_form(test_form) == parse_expected("test_formactions.html") ^^^^^^^^^^^^^^^^^^^^^ tests/test_layout_objects.py:704: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:43: in parse_form html = render_crispy_form(form) ^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/crispy_forms/utils.py:168: in render_crispy_form return node.render(node_context) ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/crispy_forms/templatetags/crispy_forms_tags.py:199: in render c = self.get_render(context).flatten() ^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/crispy_forms/templatetags/crispy_forms_tags.py:109: in get_render node_context = context.__copy__() ^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/template/context.py:158: in __copy__ duplicate = super().__copy__() ^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = [{'True': True, 'False': False, 'None': None}, {'form': <SampleForm bound=False, valid=Unknown, fields=(is_company;email;password1;password2;first_name;last_name;datetime_field)>, 'helper': None}] def __copy__(self): duplicate = copy(super()) > duplicate.dicts = self.dicts[:] ^^^^^^^^^^^^^^^ E AttributeError: 'super' object has no attribute 'dicts' and no __dict__ for setting new attributes /usr/lib/python3/dist-packages/django/template/context.py:39: AttributeError _________ TestBootstrapLayoutObjects.test_formactions_horizontal_form __________ self = <tests.test_layout_objects.TestBootstrapLayoutObjects object at 0x7f432db59bd0> def test_formactions_horizontal_form(self): test_form = SampleForm() test_form.helper = FormHelper() test_form.helper.form_tag = False test_form.helper.form_class = "form-horizontal" test_form.helper.layout = Layout( FormActions( HTML("<b>test</b>"), css_class="formactions-test-class", ), ) expected_class = 'class="mb-3 row formactions-test-class "' > assert expected_class in render_crispy_form(test_form) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ tests/test_layout_objects.py:719: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ /usr/lib/python3/dist-packages/crispy_forms/utils.py:168: in render_crispy_form return node.render(node_context) ^^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/crispy_forms/templatetags/crispy_forms_tags.py:199: in render c = self.get_render(context).flatten() ^^^^^^^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/crispy_forms/templatetags/crispy_forms_tags.py:109: in get_render node_context = context.__copy__() ^^^^^^^^^^^^^^^^^^ /usr/lib/python3/dist-packages/django/template/context.py:158: in __copy__ duplicate = super().__copy__() ^^^^^^^^^^^^^^^^^^ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = [{'True': True, 'False': False, 'None': None}, {'form': <SampleForm bound=False, valid=Unknown, fields=(is_company;email;password1;password2;first_name;last_name;datetime_field)>, 'helper': None}] def __copy__(self): duplicate = copy(super()) > duplicate.dicts = self.dicts[:] ^^^^^^^^^^^^^^^ E AttributeError: 'super' object has no attribute 'dicts' and no __dict__ for setting new attributes /usr/lib/python3/dist-packages/django/template/context.py:39: AttributeError ______________ test_as_crispy_errors_formset_with_non_form_errors ______________ def test_as_crispy_errors_formset_with_non_form_errors(): template = Template( """ {% load crispy_forms_tags %} {{ formset|as_crispy_errors }} """ ) SampleFormset = formset_factory(SampleForm, max_num=1, validate_max=True) formset = SampleFormset( { "form-TOTAL_FORMS": "2", "form-INITIAL_FORMS": "0", "form-MAX_NUM_FORMS": "", "form-0-password1": "god", "form-0-password2": "wargame", } ) formset.is_valid() c = Context({"formset": formset}) html = template.render(c) assert "errorMsg" in html or "alert" in html if django.VERSION < (3, 2): assert "<li>Please submit 1 or fewer forms.</li>" in html else: > assert "<li>Please submit at most 1 form.</li>" in html E assert '<li>Please submit at most 1 form.</li>' in '\n \n \n <div class="alert alert-block alert-danger">\n \n <ul class="m-0">\n \t<li>Por favor, envÃe 1 formulario como máximo.</li>\n </ul>\n </div>\n\n\n\n ' tests/test_tags.py:100: AssertionError =========================== short test summary info ============================ FAILED tests/test_form_helper.py::test_inputs - AttributeError: 'super' objec... FAILED tests/test_form_helper.py::test_form_with_helper_without_layout - Attr... FAILED tests/test_form_helper.py::test_form_show_errors_non_field_errors - At... FAILED tests/test_form_helper.py::test_html5_required - AttributeError: 'supe... FAILED tests/test_form_helper.py::test_media_is_included_by_default_with_bootstrap5 FAILED tests/test_form_helper.py::test_media_removed_when_include_media_is_false_with_bootstrap5 FAILED tests/test_form_helper.py::test_attrs - AttributeError: 'super' object... FAILED tests/test_form_helper.py::test_without_helper - AttributeError: 'supe... FAILED tests/test_form_helper.py::test_formset_with_helper_without_layout - A... FAILED tests/test_form_helper.py::test_CSRF_token_POST_form - AttributeError:... FAILED tests/test_form_helper.py::test_CSRF_token_GET_form - AttributeError: ... FAILED tests/test_form_helper.py::test_disable_csrf - AttributeError: 'super'... FAILED tests/test_form_helper.py::test_render_unmentioned_fields - AttributeE... FAILED tests/test_form_helper.py::test_render_unmentioned_fields_order - Attr... FAILED tests/test_form_helper.py::test_render_hidden_fields - AttributeError:... FAILED tests/test_form_helper.py::test_render_required_fields - AttributeErro... FAILED tests/test_form_helper.py::test_helper_custom_template - AttributeErro... FAILED tests/test_form_helper.py::test_helper_custom_field_template - Attribu... FAILED tests/test_form_helper.py::test_helper_custom_field_template_no_layout FAILED tests/test_form_helper.py::test_helper_std_field_template_no_layout - ... FAILED tests/test_form_helper.py::test_bootstrap_form_show_errors_bs5 - Attri... FAILED tests/test_form_helper.py::test_error_text_inline - AttributeError: 's... FAILED tests/test_form_helper.py::test_error_and_help_inline - AttributeError... FAILED tests/test_form_helper.py::test_form_show_labels - AttributeError: 'su... FAILED tests/test_form_helper.py::test_label_class_and_field_class_bs5 - Attr... FAILED tests/test_form_helper.py::test_label_class_and_field_class_bs5_offset_when_horizontal FAILED tests/test_form_helper.py::test_form_group_with_form_inline_bs5 - Attr... FAILED tests/test_form_helper.py::test_passthrough_context - AttributeError: ... FAILED tests/test_layout.py::test_unicode_form_field - AttributeError: 'super... FAILED tests/test_layout.py::test_meta_extra_fields_with_missing_fields - Att... FAILED tests/test_layout.py::test_context_pollution - AttributeError: 'super'... FAILED tests/test_layout.py::test_layout_fieldset_row_html_with_unicode_fieldnames FAILED tests/test_layout.py::test_change_layout_dynamically_delete_field - At... FAILED tests/test_layout.py::test_column_has_css_classes - AttributeError: 's... FAILED tests/test_layout.py::test_bs5_column_css_classes - AttributeError: 's... FAILED tests/test_layout.py::test_bs5_field_with_buttons_css_classes - Attrib... FAILED tests/test_layout.py::test_field_with_buttons_select - AttributeError:... FAILED tests/test_layout.py::test_formset_layout - AttributeError: 'super' ob... FAILED tests/test_layout.py::test_modelformset_layout - AttributeError: 'supe... FAILED tests/test_layout.py::test_i18n - AttributeError: 'super' object has n... FAILED tests/test_layout.py::test_modelform_layout_without_meta - AttributeEr... FAILED tests/test_layout.py::test_specialspaceless_not_screwing_intended_spaces FAILED tests/test_layout.py::test_choice_with_none_is_selected - AttributeErr... FAILED tests/test_layout.py::test_keepcontext_context_manager - AttributeErro... FAILED tests/test_layout.py::test_bootstrap5_form_inline - AttributeError: 's... FAILED tests/test_layout.py::test_select - AttributeError: 'super' object has... FAILED tests/test_layout.py::test_select_prepended - AttributeError: 'super' ... FAILED tests/test_layout.py::test_update_attributes_class - AttributeError: '... FAILED tests/test_layout.py::test_file_field - AttributeError: 'super' object... FAILED tests/test_layout.py::test_row - AttributeError: 'super' object has no... FAILED tests/test_layout.py::test_html_label_escape - AttributeError: 'super'... FAILED tests/test_layout.py::test_tabular_formset_layout - AttributeError: 's... FAILED tests/test_layout.py::test_flat_attrs_safe - AttributeError: 'super' o... FAILED tests/test_layout.py::test_help_text_no_escape - AttributeError: 'supe... FAILED tests/test_layout_objects.py::test_field_with_custom_template - Attrib... FAILED tests/test_layout_objects.py::test_multiwidget_field - AttributeError:... FAILED tests/test_layout_objects.py::test_field_type_hidden - AttributeError:... FAILED tests/test_layout_objects.py::test_field_wrapper_class - AttributeErro... FAILED tests/test_layout_objects.py::test_html_with_carriage_returns - Attrib... FAILED tests/test_layout_objects.py::test_i18n - AttributeError: 'super' obje... FAILED tests/test_layout_objects.py::test_remove_labels - AttributeError: 'su... FAILED tests/test_layout_objects.py::test_inputs[text_input-text_input.html] FAILED tests/test_layout_objects.py::test_inputs[text_area-text_area.html] - ... FAILED tests/test_layout_objects.py::test_inputs[checkboxes-checkboxes.html] FAILED tests/test_layout_objects.py::test_inputs[radio-radio.html] - Attribut... FAILED tests/test_layout_objects.py::test_inputs[single_checkbox-single_checkbox.html] FAILED tests/test_layout_objects.py::TestBootstrapLayoutObjects::test_custom_django_widget FAILED tests/test_layout_objects.py::TestBootstrapLayoutObjects::test_prepended_appended_text FAILED tests/test_layout_objects.py::TestBootstrapLayoutObjects::test_inline_radios FAILED tests/test_layout_objects.py::TestBootstrapLayoutObjects::test_inline_checkboxes FAILED tests/test_layout_objects.py::TestBootstrapLayoutObjects::test_inline_radios_failing FAILED tests/test_layout_objects.py::TestBootstrapLayoutObjects::test_inline_checkboxes_failing FAILED tests/test_layout_objects.py::TestBootstrapLayoutObjects::test_accordion_and_accordiongroup FAILED tests/test_layout_objects.py::TestBootstrapLayoutObjects::test_accordion_css_class_is_applied FAILED tests/test_layout_objects.py::TestBootstrapLayoutObjects::test_accordion_group_css_class_is_applied FAILED tests/test_layout_objects.py::TestBootstrapLayoutObjects::test_accordion_active_false_not_rendered FAILED tests/test_layout_objects.py::TestBootstrapLayoutObjects::test_bs5accordion FAILED tests/test_layout_objects.py::TestBootstrapLayoutObjects::test_bs5accordion_active_false_not_rendered FAILED tests/test_layout_objects.py::TestBootstrapLayoutObjects::test_bs5accordion_flush FAILED tests/test_layout_objects.py::TestBootstrapLayoutObjects::test_bs5accordion_always_open FAILED tests/test_layout_objects.py::TestBootstrapLayoutObjects::test_alert FAILED tests/test_layout_objects.py::TestBootstrapLayoutObjects::test_tab_and_tab_holder FAILED tests/test_layout_objects.py::TestBootstrapLayoutObjects::test_tab_helper_reuse FAILED tests/test_layout_objects.py::TestBootstrapLayoutObjects::test_radio_attrs FAILED tests/test_layout_objects.py::TestBootstrapLayoutObjects::test_field_with_buttons FAILED tests/test_layout_objects.py::TestBootstrapLayoutObjects::test_hidden_fields FAILED tests/test_layout_objects.py::TestBootstrapLayoutObjects::test_multiplecheckboxes FAILED tests/test_layout_objects.py::TestBootstrapLayoutObjects::test_multiple_checkboxes_unique_ids FAILED tests/test_layout_objects.py::TestBootstrapLayoutObjects::test_inline_field FAILED tests/test_layout_objects.py::TestBootstrapLayoutObjects::test_float_field FAILED tests/test_layout_objects.py::TestBootstrapLayoutObjects::test_grouped_checkboxes_radios FAILED tests/test_layout_objects.py::TestBootstrapLayoutObjects::test_switch FAILED tests/test_layout_objects.py::TestBootstrapLayoutObjects::test_switch_horizontal FAILED tests/test_layout_objects.py::TestBootstrapLayoutObjects::test_modal FAILED tests/test_layout_objects.py::TestBootstrapLayoutObjects::test_formactions FAILED tests/test_layout_objects.py::TestBootstrapLayoutObjects::test_formactions_attrs FAILED tests/test_layout_objects.py::TestBootstrapLayoutObjects::test_formactions_horizontal_form FAILED tests/test_tags.py::test_as_crispy_errors_formset_with_non_form_errors ======================== 98 failed, 21 passed in 1.85s ========================= E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_crispy-bootstrap5/build; python3.14 -m pytest tests I: pybuild base:317: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_crispy-bootstrap5/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, settings: tests.test_settings (from ini) rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_crispy-bootstrap5/build configfile: pyproject.toml plugins: typeguard-4.4.4, django-4.11.1 collected 119 items tests/test_form_helper.py ................................. [ 27%] tests/test_layout.py ............................... [ 53%] tests/test_layout_objects.py ........................................... [ 89%] [ 89%] tests/test_tags.py ............ [100%] ============================= 119 passed in 0.50s ============================== 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 --------------------------------------------------------------------------------

