Package: src:python-crispy-bootstrap3 Version: 2024.1-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-bootstrap3, 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-bootstrap3 * Building wheel... No `packages` or `py_modules` configuration, performing automatic discovery. [... snipped ...] 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_modal_no_kwargs ________________ self = <tests.test_layout_objects.TestBootstrapLayoutObjects object at 0x7f0fa15c2090> def test_modal_no_kwargs(self): form = SampleForm() form.helper = FormHelper() form.helper.layout = Layout(Modal(Field("first_name"))) > assert parse_form(form) == parse_expected( ^^^^^^^^^^^^^^^^ "bootstrap3/test_layout_objects/bootstrap_modal_no_kwargs.html" ) tests/test_layout_objects.py:444: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:47: 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_modal_with_kwargs _______________ self = <tests.test_layout_objects.TestBootstrapLayoutObjects object at 0x7f0fa15d9f40> def test_modal_with_kwargs(self): form = SampleForm() form.helper = FormHelper() form.helper.layout = Layout( Modal( Field("first_name"), css_id="id_test", css_class="test-class", title="This is my modal", title_id="id_title_test", title_class="text-center", ) ) > assert parse_form(form) == parse_expected( ^^^^^^^^^^^^^^^^ "bootstrap3/test_layout_objects/bootstrap_modal_with_kwargs.html" ) tests/test_layout_objects.py:462: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:47: 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 __________________ self = <tests.test_layout_objects.TestBootstrapLayoutObjects object at 0x7f0fa15da150> @pytest.mark.skipif( __version__[0] == "1", reason="#1230 is post 1.x and fixed double class attributes bug", ) def test_FormActions(self): form = SampleForm() form.helper = FormHelper() form.helper.field_class = "field-class" form.helper.layout = Layout( FormActions( HTML('<span style="display: hidden;">Information Saved</span>'), Submit("Save", "Save", css_class="btn-primary"), css_class="custom-class", css_id="css-id", data="safe <>& data", ), ) > assert parse_form(form) == parse_expected( ^^^^^^^^^^^^^^^^ "bootstrap3/test_layout_objects/test_FormActions.html" ) tests/test_layout_objects.py:484: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ tests/utils.py:47: 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 ______________ 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 > 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>\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:96: 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_bootstrap3 FAILED tests/test_form_helper.py::test_media_removed_when_include_media_is_false_with_bootstrap3 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_bs3 - Attri... FAILED tests/test_form_helper.py::test_error_text_inline - AttributeError: 's... FAILED tests/test_form_helper.py::test_error_and_help_inline_bootstrap3 - Att... FAILED tests/test_form_helper.py::test_form_show_labels - AttributeError: 'su... FAILED tests/test_form_helper.py::test_label_class_and_field_class - Attribut... FAILED tests/test_form_helper.py::test_passthrough_context - AttributeError: ... FAILED tests/test_form_helper.py::test_bootstrap3_does_add_form_control_class_to_non_multivaluefield FAILED tests/test_form_helper.py::test_bootstrap3_does_not_add_form_control_class_to_multivaluefield 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_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_layout_composition - AttributeError: 'super... FAILED tests/test_layout.py::test_second_layout_multifield_column_buttonholder_submit_div FAILED tests/test_layout.py::test_keepcontext_context_manager - AttributeErro... FAILED tests/test_layout.py::test_multiple_checkboxes_bs3 - AttributeError: '... FAILED tests/test_layout.py::test_no_label_checkboxes_bs3 - AttributeError: '... FAILED tests/test_layout.py::test_radio_bs3 - AttributeError: 'super' object ... FAILED tests/test_layout.py::test_form_inline - AttributeError: 'super' objec... FAILED tests/test_layout.py::test_update_attributes_class - AttributeError: '... FAILED tests/test_layout.py::test_multiple_fields - AttributeError: 'super' o... FAILED tests/test_layout.py::test_radio_attrs - AttributeError: 'super' objec... 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::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_accordion_and_accordiongroup FAILED tests/test_layout_objects.py::TestBootstrapLayoutObjects::test_accordion_active_false_not_rendered FAILED tests/test_layout_objects.py::TestBootstrapLayoutObjects::test_alert FAILED tests/test_layout_objects.py::TestBootstrapLayoutObjects::test_alert_block 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_modal_no_kwargs FAILED tests/test_layout_objects.py::TestBootstrapLayoutObjects::test_modal_with_kwargs FAILED tests/test_layout_objects.py::TestBootstrapLayoutObjects::test_FormActions FAILED tests/test_tags.py::test_as_crispy_errors_formset_with_non_form_errors ======================== 74 failed, 23 passed in 1.43s ========================= E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_crispy-bootstrap3/build; python3.14 -m pytest tests I: pybuild base:317: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_crispy-bootstrap3/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-bootstrap3/build configfile: pyproject.toml plugins: typeguard-4.4.4, django-4.11.1 collected 97 items tests/test_form_helper.py .................................. [ 35%] tests/test_layout.py .......................... [ 61%] tests/test_layout_objects.py ......................... [ 87%] tests/test_tags.py ............ [100%] ============================== 97 passed in 0.40s ============================== 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 --------------------------------------------------------------------------------

