Source: python-django-rules
Version: 3.3.0-1
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: [email protected]
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="cd {build_dir}; {interpreter}
> tests/manage.py test testsuite"
> I: pybuild pybuild:300: cp -r /<<PKGBUILDDIR>>/tests
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-rules/build
> I: pybuild base:239: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-rules/build; python3.9
> tests/manage.py test testsuite
> Creating test database for alias 'default'...
> Found 62 test(s).
> System check identified some issues:
>
> WARNINGS:
> testapp.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'.
> testapp.TestModel: (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 2 issues (0 silenced).
> E.............................................................
> ======================================================================
> ERROR: testsuite.contrib.test_rest_framework (unittest.loader._FailedTest)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module:
> testsuite.contrib.test_rest_framework
> Traceback (most recent call last):
> File "/usr/lib/python3.9/unittest/loader.py", line 436, in _find_test_path
> module = self._get_module_from_name(name)
> File "/usr/lib/python3.9/unittest/loader.py", line 377, in
> _get_module_from_name
> __import__(name)
> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-rules/build/tests/testsuite/contrib/test_rest_framework.py",
> line 7, in <module>
> from rest_framework.decorators import action
> File "/usr/lib/python3/dist-packages/rest_framework/decorators.py", line
> 13, in <module>
> from rest_framework.views import APIView
> File "/usr/lib/python3/dist-packages/rest_framework/views.py", line 16, in
> <module>
> from rest_framework.response import Response
> File "/usr/lib/python3/dist-packages/rest_framework/response.py", line 11,
> in <module>
> from rest_framework.serializers import Serializer
> File "/usr/lib/python3/dist-packages/rest_framework/serializers.py", line
> 29, in <module>
> from rest_framework.fields import get_error_detail, set_value
> File "/usr/lib/python3/dist-packages/rest_framework/fields.py", line 32, in
> <module>
> from pytz.exceptions import InvalidTimeError
> ModuleNotFoundError: No module named 'pytz'
>
>
> ----------------------------------------------------------------------
> Ran 62 tests in 7.440s
>
> FAILED (errors=1)
> Destroying test database for alias 'default'...
> E: pybuild pybuild:369: test: plugin custom failed with: exit code=1: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_django-rules/build; python3.9
> tests/manage.py test testsuite
> I: pybuild pybuild:300: cp -r /<<PKGBUILDDIR>>/tests
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_django-rules/build
> I: pybuild base:239: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_django-rules/build; python3.10
> tests/manage.py test testsuite
> Creating test database for alias 'default'...
> Found 62 test(s).
> System check identified some issues:
>
> WARNINGS:
> testapp.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'.
> testapp.TestModel: (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 2 issues (0 silenced).
> E.............................................................
> ======================================================================
> ERROR: testsuite.contrib.test_rest_framework (unittest.loader._FailedTest)
> ----------------------------------------------------------------------
> ImportError: Failed to import test module:
> testsuite.contrib.test_rest_framework
> Traceback (most recent call last):
> File "/usr/lib/python3.10/unittest/loader.py", line 436, in _find_test_path
> module = self._get_module_from_name(name)
> File "/usr/lib/python3.10/unittest/loader.py", line 377, in
> _get_module_from_name
> __import__(name)
> File
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_django-rules/build/tests/testsuite/contrib/test_rest_framework.py",
> line 7, in <module>
> from rest_framework.decorators import action
> File "/usr/lib/python3/dist-packages/rest_framework/decorators.py", line
> 13, in <module>
> from rest_framework.views import APIView
> File "/usr/lib/python3/dist-packages/rest_framework/views.py", line 16, in
> <module>
> from rest_framework.response import Response
> File "/usr/lib/python3/dist-packages/rest_framework/response.py", line 11,
> in <module>
> from rest_framework.serializers import Serializer
> File "/usr/lib/python3/dist-packages/rest_framework/serializers.py", line
> 29, in <module>
> from rest_framework.fields import get_error_detail, set_value
> File "/usr/lib/python3/dist-packages/rest_framework/fields.py", line 32, in
> <module>
> from pytz.exceptions import InvalidTimeError
> ModuleNotFoundError: No module named 'pytz'
>
>
> ----------------------------------------------------------------------
> Ran 62 tests in 7.639s
>
> FAILED (errors=1)
> Destroying test database for alias 'default'...
> E: pybuild pybuild:369: test: plugin custom failed with: exit code=1: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_django-rules/build; python3.10
> tests/manage.py test testsuite
> dh_auto_test: error: pybuild --test -i python{version} -p "3.9 3.10"
> --system=custom "--test-args=cd {build_dir}; {interpreter} tests/manage.py
> test testsuite" returned exit code 13
The full build log is available from:
http://qa-logs.debian.net/2022/06/24/python-django-rules_3.3.0-1_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20220624;[email protected]
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20220624&[email protected]&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.