Source: django-filter Version: 2.4.0-2 Severity: serious Justification: FTBFS Tags: bookworm sid ftbfs User: lu...@debian.org Usertags: ftbfs-20220624 ftbfs-bookworm
Hi, During a rebuild of all packages in sid, your package failed to build on amd64. Relevant part (hopefully): > make[1]: Entering directory '/<<PKGBUILDDIR>>' > dh_auto_test -- --system=custom --test-args="{interpreter} ./runtests.py" > I: pybuild base:239: python3.9 ./runtests.py > Creating test database for alias 'default'... > Found 512 test(s). > System check identified some issues: > > WARNINGS: > drf_test_app.BaseFilterableItem: (models.W042) Auto-created primary key used > when not defining a primary key type, by default 'django.db.models.AutoField'. > HINT: Configure the DEFAULT_AUTO_FIELD setting or the > RestFrameworkTestConfig.default_auto_field attribute to point to a subclass > of AutoField, e.g. 'django.db.models.BigAutoField'. > drf_test_app.BasicModel: (models.W042) Auto-created primary key used when not > defining a primary key type, by default 'django.db.models.AutoField'. > HINT: Configure the DEFAULT_AUTO_FIELD setting or the > RestFrameworkTestConfig.default_auto_field attribute to point to a subclass > of AutoField, e.g. 'django.db.models.BigAutoField'. > drf_test_app.DjangoFilterOrderingModel: (models.W042) Auto-created primary > key used when not defining a primary key type, by default > 'django.db.models.AutoField'. > HINT: Configure the DEFAULT_AUTO_FIELD setting or the > RestFrameworkTestConfig.default_auto_field attribute to point to a subclass > of AutoField, e.g. 'django.db.models.BigAutoField'. > tests.Account: (models.W042) Auto-created primary key used when not defining > a primary key type, by default 'django.db.models.AutoField'. > HINT: Configure the DEFAULT_AUTO_FIELD setting or the > AppConfig.default_auto_field attribute to point to a subclass of AutoField, > e.g. 'django.db.models.BigAutoField'. > tests.AdminUser: (models.W042) Auto-created primary key used when not > defining a primary key type, by default 'django.db.models.AutoField'. > HINT: Configure the DEFAULT_AUTO_FIELD setting or the > AppConfig.default_auto_field attribute to point to a subclass of AutoField, > e.g. 'django.db.models.BigAutoField'. > tests.Article: (models.W042) Auto-created primary key used when not defining > a primary key type, by default 'django.db.models.AutoField'. > HINT: Configure the DEFAULT_AUTO_FIELD setting or the > AppConfig.default_auto_field attribute to point to a subclass of AutoField, > e.g. 'django.db.models.BigAutoField'. > tests.Book: (models.W042) Auto-created primary key used when not defining a > primary key type, by default 'django.db.models.AutoField'. > HINT: Configure the DEFAULT_AUTO_FIELD setting or the > AppConfig.default_auto_field attribute to point to a subclass of AutoField, > e.g. 'django.db.models.BigAutoField'. > tests.Business: (models.W042) Auto-created primary key used when not defining > a primary key type, by default 'django.db.models.AutoField'. > HINT: Configure the DEFAULT_AUTO_FIELD setting or the > AppConfig.default_auto_field attribute to point to a subclass of AutoField, > e.g. 'django.db.models.BigAutoField'. > tests.Comment: (models.W042) Auto-created primary key used when not defining > a primary key type, by default 'django.db.models.AutoField'. > HINT: Configure the DEFAULT_AUTO_FIELD setting or the > AppConfig.default_auto_field attribute to point to a subclass of AutoField, > e.g. 'django.db.models.BigAutoField'. > tests.Company: (models.W042) Auto-created primary key used when not defining > a primary key type, by default 'django.db.models.AutoField'. > HINT: Configure the DEFAULT_AUTO_FIELD setting or the > AppConfig.default_auto_field attribute to point to a subclass of AutoField, > e.g. 'django.db.models.BigAutoField'. > tests.DirectedNode: (models.W042) Auto-created primary key used when not > defining a primary key type, by default 'django.db.models.AutoField'. > HINT: Configure the DEFAULT_AUTO_FIELD setting or the > AppConfig.default_auto_field attribute to point to a subclass of AutoField, > e.g. 'django.db.models.BigAutoField'. > tests.HiredWorker: (models.W042) Auto-created primary key used when not > defining a primary key type, by default 'django.db.models.AutoField'. > HINT: Configure the DEFAULT_AUTO_FIELD setting or the > AppConfig.default_auto_field attribute to point to a subclass of AutoField, > e.g. 'django.db.models.BigAutoField'. > tests.Location: (models.W042) Auto-created primary key used when not defining > a primary key type, by default 'django.db.models.AutoField'. > HINT: Configure the DEFAULT_AUTO_FIELD setting or the > AppConfig.default_auto_field attribute to point to a subclass of AutoField, > e.g. 'django.db.models.BigAutoField'. > tests.ManagerGroup: (models.W042) Auto-created primary key used when not > defining a primary key type, by default 'django.db.models.AutoField'. > HINT: Configure the DEFAULT_AUTO_FIELD setting or the > AppConfig.default_auto_field attribute to point to a subclass of AutoField, > e.g. 'django.db.models.BigAutoField'. > tests.NetworkSetting: (models.W042) Auto-created primary key used when not > defining a primary key type, by default 'django.db.models.AutoField'. > HINT: Configure the DEFAULT_AUTO_FIELD setting or the > AppConfig.default_auto_field attribute to point to a subclass of AutoField, > e.g. 'django.db.models.BigAutoField'. > tests.Node: (models.W042) Auto-created primary key used when not defining a > primary key type, by default 'django.db.models.AutoField'. > HINT: Configure the DEFAULT_AUTO_FIELD setting or the > AppConfig.default_auto_field attribute to point to a subclass of AutoField, > e.g. 'django.db.models.BigAutoField'. > tests.Profile: (models.W042) Auto-created primary key used when not defining > a primary key type, by default 'django.db.models.AutoField'. > HINT: Configure the DEFAULT_AUTO_FIELD setting or the > AppConfig.default_auto_field attribute to point to a subclass of AutoField, > e.g. 'django.db.models.BigAutoField'. > tests.Restaurant: (models.W042) Auto-created primary key used when not > defining a primary key type, by default 'django.db.models.AutoField'. > HINT: Configure the DEFAULT_AUTO_FIELD setting or the > AppConfig.default_auto_field attribute to point to a subclass of AutoField, > e.g. 'django.db.models.BigAutoField'. > tests.SpacewalkRecord: (models.W042) Auto-created primary key used when not > defining a primary key type, by default 'django.db.models.AutoField'. > HINT: Configure the DEFAULT_AUTO_FIELD setting or the > AppConfig.default_auto_field attribute to point to a subclass of AutoField, > e.g. 'django.db.models.BigAutoField'. > tests.UUIDTestModel: (models.W042) Auto-created primary key used when not > defining a primary key type, by default 'django.db.models.AutoField'. > HINT: Configure the DEFAULT_AUTO_FIELD setting or the > AppConfig.default_auto_field attribute to point to a subclass of AutoField, > e.g. 'django.db.models.BigAutoField'. > tests.User: (models.W042) Auto-created primary key used when not defining a > primary key type, by default 'django.db.models.AutoField'. > HINT: Configure the DEFAULT_AUTO_FIELD setting or the > AppConfig.default_auto_field attribute to point to a subclass of AutoField, > e.g. 'django.db.models.BigAutoField'. > tests.Worker: (models.W042) Auto-created primary key used when not defining a > primary key type, by default 'django.db.models.AutoField'. > HINT: Configure the DEFAULT_AUTO_FIELD setting or the > AppConfig.default_auto_field attribute to point to a subclass of AutoField, > e.g. 'django.db.models.BigAutoField'. > > System check identified 22 issues (0 silenced). > ............sssssss.....................................................................................EEEE.............s..x...u....ss..x..x..........................................................................................................................................................................................................................................s.....................sss..................................EE............................................................................ > ====================================================================== > ERROR: test_filtering_dst_end > (tests.test_filtering.DateFromToRangeFilterTests) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/usr/lib/python3/dist-packages/django/test/utils.py", line 460, in > inner > return func(*args, **kwargs) > File "/<<PKGBUILDDIR>>/tests/test_filtering.py", line 936, in > test_filtering_dst_end > Article.objects.create(published=tz.localize(datetime.datetime(2017, 10, > 28, 23, 59))) > AttributeError: 'zoneinfo.ZoneInfo' object has no attribute 'localize' > > ====================================================================== > ERROR: test_filtering_dst_ends_midnight > (tests.test_filtering.DateFromToRangeFilterTests) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/usr/lib/python3/dist-packages/django/test/utils.py", line 460, in > inner > return func(*args, **kwargs) > File "/<<PKGBUILDDIR>>/tests/test_filtering.py", line 895, in > test_filtering_dst_ends_midnight > Article.objects.create(published=tz.localize(datetime.datetime(2017, 2, > 19, 0, 0))) > AttributeError: 'zoneinfo.ZoneInfo' object has no attribute 'localize' > > ====================================================================== > ERROR: test_filtering_dst_start > (tests.test_filtering.DateFromToRangeFilterTests) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/usr/lib/python3/dist-packages/django/test/utils.py", line 460, in > inner > return func(*args, **kwargs) > File "/<<PKGBUILDDIR>>/tests/test_filtering.py", line 915, in > test_filtering_dst_start > Article.objects.create(published=tz.localize(datetime.datetime(2017, 3, > 25, 23, 59))) > AttributeError: 'zoneinfo.ZoneInfo' object has no attribute 'localize' > > ====================================================================== > ERROR: test_filtering_dst_start_midnight > (tests.test_filtering.DateFromToRangeFilterTests) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/usr/lib/python3/dist-packages/django/test/utils.py", line 460, in > inner > return func(*args, **kwargs) > File "/<<PKGBUILDDIR>>/tests/test_filtering.py", line 875, in > test_filtering_dst_start_midnight > Article.objects.create(published=tz.localize(datetime.datetime(2017, 10, > 14, 23, 59))) > AttributeError: 'zoneinfo.ZoneInfo' object has no attribute 'localize' > > ====================================================================== > ERROR: test_handle_dst_ending (tests.test_utils.HandleTimezone) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/usr/lib/python3/dist-packages/django/test/utils.py", line 460, in > inner > return func(*args, **kwargs) > File "/<<PKGBUILDDIR>>/tests/test_utils.py", line 499, in > test_handle_dst_ending > self.assertEqual(handled, > get_default_timezone().localize(dst_ending_date, False)) > AttributeError: 'zoneinfo.ZoneInfo' object has no attribute 'localize' > > ====================================================================== > ERROR: test_handle_dst_starting (tests.test_utils.HandleTimezone) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/usr/lib/python3/dist-packages/django/test/utils.py", line 460, in > inner > return func(*args, **kwargs) > File "/<<PKGBUILDDIR>>/tests/test_utils.py", line 505, in > test_handle_dst_starting > self.assertEqual(handled, > get_default_timezone().localize(dst_starting_date, True)) > AttributeError: 'zoneinfo.ZoneInfo' object has no attribute 'localize' > > ---------------------------------------------------------------------- > Ran 512 tests in 0.888s > > FAILED (errors=6, skipped=14, expected failures=3, unexpected successes=1) > Destroying test database for alias 'default'... > E: pybuild pybuild:369: test: plugin custom failed with: exit code=1: > python3.9 ./runtests.py > I: pybuild base:239: python3.10 ./runtests.py > Creating test database for alias 'default'... > Found 512 test(s). > System check identified some issues: > > WARNINGS: > drf_test_app.BaseFilterableItem: (models.W042) Auto-created primary key used > when not defining a primary key type, by default 'django.db.models.AutoField'. > HINT: Configure the DEFAULT_AUTO_FIELD setting or the > RestFrameworkTestConfig.default_auto_field attribute to point to a subclass > of AutoField, e.g. 'django.db.models.BigAutoField'. > drf_test_app.BasicModel: (models.W042) Auto-created primary key used when not > defining a primary key type, by default 'django.db.models.AutoField'. > HINT: Configure the DEFAULT_AUTO_FIELD setting or the > RestFrameworkTestConfig.default_auto_field attribute to point to a subclass > of AutoField, e.g. 'django.db.models.BigAutoField'. > drf_test_app.DjangoFilterOrderingModel: (models.W042) Auto-created primary > key used when not defining a primary key type, by default > 'django.db.models.AutoField'. > HINT: Configure the DEFAULT_AUTO_FIELD setting or the > RestFrameworkTestConfig.default_auto_field attribute to point to a subclass > of AutoField, e.g. 'django.db.models.BigAutoField'. > tests.Account: (models.W042) Auto-created primary key used when not defining > a primary key type, by default 'django.db.models.AutoField'. > HINT: Configure the DEFAULT_AUTO_FIELD setting or the > AppConfig.default_auto_field attribute to point to a subclass of AutoField, > e.g. 'django.db.models.BigAutoField'. > tests.AdminUser: (models.W042) Auto-created primary key used when not > defining a primary key type, by default 'django.db.models.AutoField'. > HINT: Configure the DEFAULT_AUTO_FIELD setting or the > AppConfig.default_auto_field attribute to point to a subclass of AutoField, > e.g. 'django.db.models.BigAutoField'. > tests.Article: (models.W042) Auto-created primary key used when not defining > a primary key type, by default 'django.db.models.AutoField'. > HINT: Configure the DEFAULT_AUTO_FIELD setting or the > AppConfig.default_auto_field attribute to point to a subclass of AutoField, > e.g. 'django.db.models.BigAutoField'. > tests.Book: (models.W042) Auto-created primary key used when not defining a > primary key type, by default 'django.db.models.AutoField'. > HINT: Configure the DEFAULT_AUTO_FIELD setting or the > AppConfig.default_auto_field attribute to point to a subclass of AutoField, > e.g. 'django.db.models.BigAutoField'. > tests.Business: (models.W042) Auto-created primary key used when not defining > a primary key type, by default 'django.db.models.AutoField'. > HINT: Configure the DEFAULT_AUTO_FIELD setting or the > AppConfig.default_auto_field attribute to point to a subclass of AutoField, > e.g. 'django.db.models.BigAutoField'. > tests.Comment: (models.W042) Auto-created primary key used when not defining > a primary key type, by default 'django.db.models.AutoField'. > HINT: Configure the DEFAULT_AUTO_FIELD setting or the > AppConfig.default_auto_field attribute to point to a subclass of AutoField, > e.g. 'django.db.models.BigAutoField'. > tests.Company: (models.W042) Auto-created primary key used when not defining > a primary key type, by default 'django.db.models.AutoField'. > HINT: Configure the DEFAULT_AUTO_FIELD setting or the > AppConfig.default_auto_field attribute to point to a subclass of AutoField, > e.g. 'django.db.models.BigAutoField'. > tests.DirectedNode: (models.W042) Auto-created primary key used when not > defining a primary key type, by default 'django.db.models.AutoField'. > HINT: Configure the DEFAULT_AUTO_FIELD setting or the > AppConfig.default_auto_field attribute to point to a subclass of AutoField, > e.g. 'django.db.models.BigAutoField'. > tests.HiredWorker: (models.W042) Auto-created primary key used when not > defining a primary key type, by default 'django.db.models.AutoField'. > HINT: Configure the DEFAULT_AUTO_FIELD setting or the > AppConfig.default_auto_field attribute to point to a subclass of AutoField, > e.g. 'django.db.models.BigAutoField'. > tests.Location: (models.W042) Auto-created primary key used when not defining > a primary key type, by default 'django.db.models.AutoField'. > HINT: Configure the DEFAULT_AUTO_FIELD setting or the > AppConfig.default_auto_field attribute to point to a subclass of AutoField, > e.g. 'django.db.models.BigAutoField'. > tests.ManagerGroup: (models.W042) Auto-created primary key used when not > defining a primary key type, by default 'django.db.models.AutoField'. > HINT: Configure the DEFAULT_AUTO_FIELD setting or the > AppConfig.default_auto_field attribute to point to a subclass of AutoField, > e.g. 'django.db.models.BigAutoField'. > tests.NetworkSetting: (models.W042) Auto-created primary key used when not > defining a primary key type, by default 'django.db.models.AutoField'. > HINT: Configure the DEFAULT_AUTO_FIELD setting or the > AppConfig.default_auto_field attribute to point to a subclass of AutoField, > e.g. 'django.db.models.BigAutoField'. > tests.Node: (models.W042) Auto-created primary key used when not defining a > primary key type, by default 'django.db.models.AutoField'. > HINT: Configure the DEFAULT_AUTO_FIELD setting or the > AppConfig.default_auto_field attribute to point to a subclass of AutoField, > e.g. 'django.db.models.BigAutoField'. > tests.Profile: (models.W042) Auto-created primary key used when not defining > a primary key type, by default 'django.db.models.AutoField'. > HINT: Configure the DEFAULT_AUTO_FIELD setting or the > AppConfig.default_auto_field attribute to point to a subclass of AutoField, > e.g. 'django.db.models.BigAutoField'. > tests.Restaurant: (models.W042) Auto-created primary key used when not > defining a primary key type, by default 'django.db.models.AutoField'. > HINT: Configure the DEFAULT_AUTO_FIELD setting or the > AppConfig.default_auto_field attribute to point to a subclass of AutoField, > e.g. 'django.db.models.BigAutoField'. > tests.SpacewalkRecord: (models.W042) Auto-created primary key used when not > defining a primary key type, by default 'django.db.models.AutoField'. > HINT: Configure the DEFAULT_AUTO_FIELD setting or the > AppConfig.default_auto_field attribute to point to a subclass of AutoField, > e.g. 'django.db.models.BigAutoField'. > tests.UUIDTestModel: (models.W042) Auto-created primary key used when not > defining a primary key type, by default 'django.db.models.AutoField'. > HINT: Configure the DEFAULT_AUTO_FIELD setting or the > AppConfig.default_auto_field attribute to point to a subclass of AutoField, > e.g. 'django.db.models.BigAutoField'. > tests.User: (models.W042) Auto-created primary key used when not defining a > primary key type, by default 'django.db.models.AutoField'. > HINT: Configure the DEFAULT_AUTO_FIELD setting or the > AppConfig.default_auto_field attribute to point to a subclass of AutoField, > e.g. 'django.db.models.BigAutoField'. > tests.Worker: (models.W042) Auto-created primary key used when not defining a > primary key type, by default 'django.db.models.AutoField'. > HINT: Configure the DEFAULT_AUTO_FIELD setting or the > AppConfig.default_auto_field attribute to point to a subclass of AutoField, > e.g. 'django.db.models.BigAutoField'. > > System check identified 22 issues (0 silenced). > ............sssssss.....................................................................................EEEE.............s..x...u....ss..x..x..........................................................................................................................................................................................................................................s.....................sss..................................EE............................................................................ > ====================================================================== > ERROR: test_filtering_dst_end > (tests.test_filtering.DateFromToRangeFilterTests) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/usr/lib/python3/dist-packages/django/test/utils.py", line 460, in > inner > return func(*args, **kwargs) > File "/<<PKGBUILDDIR>>/tests/test_filtering.py", line 936, in > test_filtering_dst_end > Article.objects.create(published=tz.localize(datetime.datetime(2017, 10, > 28, 23, 59))) > AttributeError: 'zoneinfo.ZoneInfo' object has no attribute 'localize' > > ====================================================================== > ERROR: test_filtering_dst_ends_midnight > (tests.test_filtering.DateFromToRangeFilterTests) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/usr/lib/python3/dist-packages/django/test/utils.py", line 460, in > inner > return func(*args, **kwargs) > File "/<<PKGBUILDDIR>>/tests/test_filtering.py", line 895, in > test_filtering_dst_ends_midnight > Article.objects.create(published=tz.localize(datetime.datetime(2017, 2, > 19, 0, 0))) > AttributeError: 'zoneinfo.ZoneInfo' object has no attribute 'localize' > > ====================================================================== > ERROR: test_filtering_dst_start > (tests.test_filtering.DateFromToRangeFilterTests) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/usr/lib/python3/dist-packages/django/test/utils.py", line 460, in > inner > return func(*args, **kwargs) > File "/<<PKGBUILDDIR>>/tests/test_filtering.py", line 915, in > test_filtering_dst_start > Article.objects.create(published=tz.localize(datetime.datetime(2017, 3, > 25, 23, 59))) > AttributeError: 'zoneinfo.ZoneInfo' object has no attribute 'localize' > > ====================================================================== > ERROR: test_filtering_dst_start_midnight > (tests.test_filtering.DateFromToRangeFilterTests) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/usr/lib/python3/dist-packages/django/test/utils.py", line 460, in > inner > return func(*args, **kwargs) > File "/<<PKGBUILDDIR>>/tests/test_filtering.py", line 875, in > test_filtering_dst_start_midnight > Article.objects.create(published=tz.localize(datetime.datetime(2017, 10, > 14, 23, 59))) > AttributeError: 'zoneinfo.ZoneInfo' object has no attribute 'localize' > > ====================================================================== > ERROR: test_handle_dst_ending (tests.test_utils.HandleTimezone) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/usr/lib/python3/dist-packages/django/test/utils.py", line 460, in > inner > return func(*args, **kwargs) > File "/<<PKGBUILDDIR>>/tests/test_utils.py", line 499, in > test_handle_dst_ending > self.assertEqual(handled, > get_default_timezone().localize(dst_ending_date, False)) > AttributeError: 'zoneinfo.ZoneInfo' object has no attribute 'localize' > > ====================================================================== > ERROR: test_handle_dst_starting (tests.test_utils.HandleTimezone) > ---------------------------------------------------------------------- > Traceback (most recent call last): > File "/usr/lib/python3/dist-packages/django/test/utils.py", line 460, in > inner > return func(*args, **kwargs) > File "/<<PKGBUILDDIR>>/tests/test_utils.py", line 505, in > test_handle_dst_starting > self.assertEqual(handled, > get_default_timezone().localize(dst_starting_date, True)) > AttributeError: 'zoneinfo.ZoneInfo' object has no attribute 'localize' > > ---------------------------------------------------------------------- > Ran 512 tests in 0.860s > > FAILED (errors=6, skipped=14, expected failures=3, unexpected successes=1) > Destroying test database for alias 'default'... > E: pybuild pybuild:369: test: plugin custom failed with: exit code=1: > python3.10 ./runtests.py > dh_auto_test: error: pybuild --test -i python{version} -p "3.9 3.10" > --system=custom "--test-args={interpreter} ./runtests.py" returned exit code > 13 The full build log is available from: http://qa-logs.debian.net/2022/06/24/django-filter_2.4.0-2_unstable.log All bugs filed during this archive rebuild are listed at: https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220624;users=lu...@debian.org or: https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220624&fusertaguser=lu...@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results A list of current common problems and possible solutions is available at http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute! If you reassign this bug to another package, please marking it as 'affects'-ing this package. See https://www.debian.org/Bugs/server-control#affects If you fail to reproduce this, please provide a build log and diff it with mine so that we can identify if something relevant changed in the meantime.