Package: src:python-crispy-bootstrap4
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-bootstrap4, 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-bootstrap4  
* Building wheel...
No `packages` or `py_modules` configuration, performing automatic discovery.

[... snipped ...]

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
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': 
<GroupedChoiceForm bound=False, valid=Unknown, 
fields=(checkbox_select_multiple;radio)>, '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_bs4_modal_no_kwargs ______________

self = <tests.test_layout_objects.TestBootstrapLayoutObjects object at 
0x7f79a29845d0>

    def test_bs4_modal_no_kwargs(self):
        form = SampleForm()
        form.helper = FormHelper()
        form.helper.layout = Layout(Modal(Field("first_name")))
    
>       print(parse_form(form))
              ^^^^^^^^^^^^^^^^

tests/test_layout_objects.py:511: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
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_bs4_modal_with_kwargs _____________

self = <tests.test_layout_objects.TestBootstrapLayoutObjects object at 
0x7f79a2986650>

    def test_bs4_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(
               ^^^^^^^^^^^^^^^^
            "bootstrap4/test_layout_objects/bootstrap_modal_with_kwargs.html"
        )

tests/test_layout_objects.py:530: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
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 __________________

self = <tests.test_layout_objects.TestBootstrapLayoutObjects object at 
0x7f79a29d18d0>
settings = <pytest_django.fixtures.SettingsWrapper object at 0x7f79a23ca750>

    @pytest.mark.skipif(
        __version__[0] == "1",
        reason="#1230 is post 1.x and fixed double class attributes bug",
    )
    def test_FormActions(self, settings):
        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",
            ),
        )
    
        template_pack = settings.CRISPY_TEMPLATE_PACK
>       assert parse_form(form) == parse_expected(
               ^^^^^^^^^^^^^^^^
            f"{template_pack}/test_layout_objects/test_FormActions.html"
        )

tests/test_layout_objects.py:553: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
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
=========================== 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_media_is_included_by_default_with_bootstrap4
FAILED 
tests/test_form_helper.py::test_media_removed_when_include_media_is_false_with_bootstrap4
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_bs4 - 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_bs4 - Attr...
FAILED 
tests/test_form_helper.py::test_label_class_and_field_class_bs4_offset_when_horizontal
FAILED tests/test_form_helper.py::test_form_group_with_form_inline_bs4 - 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_bs4_column_css_classes - AttributeError: 's...
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_use_custom_control_is_used_in_checkboxes - ...
FAILED tests/test_layout.py::test_use_custom_control_is_used_in_radio - Attri...
FAILED 
tests/test_layout.py::test_use_custom_control_in_select[True-bootstrap4/test_layout/test_use_custom_control_in_select_true.html]
FAILED 
tests/test_layout.py::test_use_custom_control_in_select[False-bootstrap4/test_layout/test_use_custom_control_in_select_false.html]
FAILED tests/test_layout.py::test_bootstrap4_form_inline - AttributeError: 's...
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_file_field_with_custom_class - AttributeErr...
FAILED tests/test_layout.py::test_form_control_size - AttributeError: 'super'...
FAILED tests/test_layout.py::test_uneditable_field - AttributeError: 'super' ...
FAILED 
tests/test_layout.py::test_use_custom_control_in_uneditable_select[True-bootstrap4/test_layout/test_use_custom_control_in_uneditable_select_true.html]
FAILED 
tests/test_layout.py::test_use_custom_control_in_uneditable_select[False-bootstrap4/test_layout/test_use_custom_control_in_uneditable_select_false.html]
FAILED tests/test_layout.py::test_multiple_fields - AttributeError: 'super' o...
FAILED tests/test_layout.py::test_table_inline_formset_checkbox - AttributeEr...
FAILED tests/test_layout.py::test_radio_attrs - AttributeError: 'super' objec...
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_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_prepended_wrapper_class
FAILED 
tests/test_layout_objects.py::TestBootstrapLayoutObjects::test_prepended_appended_text_in_select
FAILED 
tests/test_layout_objects.py::TestBootstrapLayoutObjects::test_prepended_appended_text_input_size
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_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_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_multiple_checkboxes_unique_ids
FAILED 
tests/test_layout_objects.py::TestBootstrapLayoutObjects::test_grouped_checkboxes_radios
FAILED 
tests/test_layout_objects.py::TestBootstrapLayoutObjects::test_bs4_modal_no_kwargs
FAILED 
tests/test_layout_objects.py::TestBootstrapLayoutObjects::test_bs4_modal_with_kwargs
FAILED 
tests/test_layout_objects.py::TestBootstrapLayoutObjects::test_FormActions
================= 82 failed, 22 passed, 2 deselected in 1.71s ==================
E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.14_crispy-bootstrap4/build; python3.14 -m 
pytest -k "not test_multiplecheckboxes and not test_fundamentals" 
I: pybuild base:317: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13_crispy-bootstrap4/build; python3.13 -m 
pytest -k "not test_multiplecheckboxes and not test_fundamentals" 
============================= 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>>
configfile: pyproject.toml
plugins: cov-5.0.0, typeguard-4.4.4, django-4.11.1
collected 106 items / 2 deselected / 104 selected

tests/test_form_helper.py ...............................                [ 29%]
tests/test_layout.py ..................................                  [ 62%]
tests/test_layout_objects.py ...........................                 [ 88%]
tests/test_tags.py ............                                          [100%]

====================== 104 passed, 2 deselected in 0.48s =======================
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.14 
3.13" returned exit code 13
make: *** [debian/rules:10: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

Reply via email to