Source: python-djangorestframework-flex-fields Version: 0.9.8-1 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): > 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 > I: pybuild base:239: python3.9 setup.py config > running config > I: pybuild base:239: python3.10 setup.py config > running config > dh_auto_build -O--buildsystem=pybuild > I: pybuild base:239: /usr/bin/python3.9 setup.py build > running build > running build_py > creating > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_djangorestframework-flex-fields/build/rest_flex_fields > copying rest_flex_fields/__init__.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_djangorestframework-flex-fields/build/rest_flex_fields > copying rest_flex_fields/views.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_djangorestframework-flex-fields/build/rest_flex_fields > copying rest_flex_fields/filter_backends.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_djangorestframework-flex-fields/build/rest_flex_fields > copying rest_flex_fields/serializers.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_djangorestframework-flex-fields/build/rest_flex_fields > copying rest_flex_fields/utils.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_djangorestframework-flex-fields/build/rest_flex_fields > I: pybuild base:239: /usr/bin/python3 setup.py build > running build > running build_py > creating > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_djangorestframework-flex-fields/build/rest_flex_fields > copying rest_flex_fields/__init__.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_djangorestframework-flex-fields/build/rest_flex_fields > copying rest_flex_fields/views.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_djangorestframework-flex-fields/build/rest_flex_fields > copying rest_flex_fields/filter_backends.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_djangorestframework-flex-fields/build/rest_flex_fields > copying rest_flex_fields/serializers.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_djangorestframework-flex-fields/build/rest_flex_fields > copying rest_flex_fields/utils.py -> > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_djangorestframework-flex-fields/build/rest_flex_fields > dh_auto_test -O--buildsystem=pybuild > I: pybuild base:239: cd > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_djangorestframework-flex-fields/build; > python3.9 -m pytest --ds=tests.settings > ============================= test session starts > ============================== > platform linux -- Python 3.9.13, pytest-6.2.5, py-1.10.0, pluggy-1.0.0 > Django settings: tests.settings (from command line option) > rootdir: /<<PKGBUILDDIR>> > plugins: django-3.5.1 > collected 0 items / 4 errors > > ==================================== ERRORS > ==================================== > _ ERROR collecting > .pybuild/cpython3_3.9_djangorestframework-flex-fields/build/tests/test_flex_fields_model_serializer.py > _ > ImportError while importing test module > '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_djangorestframework-flex-fields/build/tests/test_flex_fields_model_serializer.py'. > Hint: make sure your test modules/packages have valid Python names. > Traceback: > /usr/lib/python3.9/importlib/__init__.py:127: in import_module > return _bootstrap._gcd_import(name[level:], package, level) > tests/test_flex_fields_model_serializer.py:4: in <module> > from rest_flex_fields import FlexFieldsModelSerializer > rest_flex_fields/__init__.py:25: in <module> > from .serializers import FlexFieldsModelSerializer > rest_flex_fields/serializers.py:5: in <module> > from rest_framework import serializers > /usr/lib/python3/dist-packages/rest_framework/serializers.py:29: in <module> > from rest_framework.fields import get_error_detail, set_value > /usr/lib/python3/dist-packages/rest_framework/fields.py:32: in <module> > from pytz.exceptions import InvalidTimeError > E ModuleNotFoundError: No module named 'pytz' > _ ERROR collecting > .pybuild/cpython3_3.9_djangorestframework-flex-fields/build/tests/test_serializer.py > _ > ImportError while importing test module > '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_djangorestframework-flex-fields/build/tests/test_serializer.py'. > Hint: make sure your test modules/packages have valid Python names. > Traceback: > /usr/lib/python3.9/importlib/__init__.py:127: in import_module > return _bootstrap._gcd_import(name[level:], package, level) > tests/test_serializer.py:5: in <module> > from rest_framework import serializers > /usr/lib/python3/dist-packages/rest_framework/serializers.py:29: in <module> > from rest_framework.fields import get_error_detail, set_value > /usr/lib/python3/dist-packages/rest_framework/fields.py:32: in <module> > from pytz.exceptions import InvalidTimeError > E ModuleNotFoundError: No module named 'pytz' > _ ERROR collecting > .pybuild/cpython3_3.9_djangorestframework-flex-fields/build/tests/test_utils.py > _ > ImportError while importing test module > '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_djangorestframework-flex-fields/build/tests/test_utils.py'. > Hint: make sure your test modules/packages have valid Python names. > Traceback: > /usr/lib/python3.9/importlib/__init__.py:127: in import_module > return _bootstrap._gcd_import(name[level:], package, level) > tests/test_utils.py:3: in <module> > from rest_flex_fields import is_included, is_expanded > rest_flex_fields/__init__.py:25: in <module> > from .serializers import FlexFieldsModelSerializer > rest_flex_fields/serializers.py:5: in <module> > from rest_framework import serializers > /usr/lib/python3/dist-packages/rest_framework/serializers.py:29: in <module> > from rest_framework.fields import get_error_detail, set_value > /usr/lib/python3/dist-packages/rest_framework/fields.py:32: in <module> > from pytz.exceptions import InvalidTimeError > E ModuleNotFoundError: No module named 'pytz' > _ ERROR collecting > .pybuild/cpython3_3.9_djangorestframework-flex-fields/build/tests/test_views.py > _ > ImportError while importing test module > '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_djangorestframework-flex-fields/build/tests/test_views.py'. > Hint: make sure your test modules/packages have valid Python names. > Traceback: > /usr/lib/python3/dist-packages/rest_framework/settings.py:177: in > import_from_string > return import_string(val) > /usr/lib/python3/dist-packages/django/utils/module_loading.py:30: in > import_string > return cached_import(module_path, class_name) > /usr/lib/python3/dist-packages/django/utils/module_loading.py:15: in > cached_import > import_module(module_path) > /usr/lib/python3.9/importlib/__init__.py:127: in import_module > return _bootstrap._gcd_import(name[level:], package, level) > <frozen importlib._bootstrap>:1030: in _gcd_import > ??? > <frozen importlib._bootstrap>:1007: in _find_and_load > ??? > <frozen importlib._bootstrap>:986: in _find_and_load_unlocked > ??? > <frozen importlib._bootstrap>:680: in _load_unlocked > ??? > <frozen importlib._bootstrap_external>:850: in exec_module > ??? > <frozen importlib._bootstrap>:228: in _call_with_frames_removed > ??? > /usr/lib/python3/dist-packages/rest_framework/renderers.py:22: in <module> > from rest_framework import VERSION, exceptions, serializers, status > /usr/lib/python3/dist-packages/rest_framework/serializers.py:29: in <module> > from rest_framework.fields import get_error_detail, set_value > /usr/lib/python3/dist-packages/rest_framework/fields.py:32: in <module> > from pytz.exceptions import InvalidTimeError > E ModuleNotFoundError: No module named 'pytz' > > During handling of the above exception, another exception occurred: > /usr/lib/python3.9/importlib/__init__.py:127: in import_module > return _bootstrap._gcd_import(name[level:], package, level) > tests/test_views.py:8: in <module> > from rest_framework.test import APITestCase > /usr/lib/python3/dist-packages/rest_framework/test.py:138: in <module> > class APIRequestFactory(DjangoRequestFactory): > /usr/lib/python3/dist-packages/rest_framework/test.py:139: in > APIRequestFactory > renderer_classes_list = api_settings.TEST_REQUEST_RENDERER_CLASSES > /usr/lib/python3/dist-packages/rest_framework/settings.py:225: in __getattr__ > val = perform_import(val, attr) > /usr/lib/python3/dist-packages/rest_framework/settings.py:168: in > perform_import > return [import_from_string(item, setting_name) for item in val] > /usr/lib/python3/dist-packages/rest_framework/settings.py:168: in <listcomp> > return [import_from_string(item, setting_name) for item in val] > /usr/lib/python3/dist-packages/rest_framework/settings.py:180: in > import_from_string > raise ImportError(msg) > E ImportError: Could not import > 'rest_framework.renderers.MultiPartRenderer' for API setting > 'TEST_REQUEST_RENDERER_CLASSES'. ModuleNotFoundError: No module named 'pytz'. > =============================== warnings summary > =============================== > ../../../../../../usr/lib/python3/dist-packages/django/conf/__init__.py:229 > /usr/lib/python3/dist-packages/django/conf/__init__.py:229: > RemovedInDjango50Warning: The USE_L10N setting is deprecated. Starting with > Django 5.0, localized formatting of data will always be enabled. For example > Django will display numbers and dates using the format of the current locale. > warnings.warn(USE_L10N_DEPRECATED_MSG, RemovedInDjango50Warning) > > -- Docs: https://docs.pytest.org/en/stable/warnings.html > =========================== short test summary info > ============================ > ERROR tests/test_flex_fields_model_serializer.py > ERROR tests/test_serializer.py > ERROR tests/test_utils.py > ERROR tests/test_views.py > !!!!!!!!!!!!!!!!!!! Interrupted: 4 errors during collection > !!!!!!!!!!!!!!!!!!!! > ========================= 1 warning, 4 errors in 0.35s > ========================= > E: pybuild pybuild:369: test: plugin distutils failed with: exit code=2: cd > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_djangorestframework-flex-fields/build; > python3.9 -m pytest --ds=tests.settings > I: pybuild base:239: cd > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_djangorestframework-flex-fields/build; > python3.10 -m pytest --ds=tests.settings > ============================= test session starts > ============================== > platform linux -- Python 3.10.5, pytest-6.2.5, py-1.10.0, pluggy-1.0.0 > Django settings: tests.settings (from command line option) > rootdir: /<<PKGBUILDDIR>> > plugins: django-3.5.1 > collected 0 items / 4 errors > > ==================================== ERRORS > ==================================== > _ ERROR collecting > .pybuild/cpython3_3.10_djangorestframework-flex-fields/build/tests/test_flex_fields_model_serializer.py > _ > ImportError while importing test module > '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_djangorestframework-flex-fields/build/tests/test_flex_fields_model_serializer.py'. > Hint: make sure your test modules/packages have valid Python names. > Traceback: > /usr/lib/python3.10/importlib/__init__.py:126: in import_module > return _bootstrap._gcd_import(name[level:], package, level) > tests/test_flex_fields_model_serializer.py:4: in <module> > from rest_flex_fields import FlexFieldsModelSerializer > rest_flex_fields/__init__.py:25: in <module> > from .serializers import FlexFieldsModelSerializer > rest_flex_fields/serializers.py:5: in <module> > from rest_framework import serializers > /usr/lib/python3/dist-packages/rest_framework/serializers.py:29: in <module> > from rest_framework.fields import get_error_detail, set_value > /usr/lib/python3/dist-packages/rest_framework/fields.py:32: in <module> > from pytz.exceptions import InvalidTimeError > E ModuleNotFoundError: No module named 'pytz' > _ ERROR collecting > .pybuild/cpython3_3.10_djangorestframework-flex-fields/build/tests/test_serializer.py > _ > ImportError while importing test module > '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_djangorestframework-flex-fields/build/tests/test_serializer.py'. > Hint: make sure your test modules/packages have valid Python names. > Traceback: > /usr/lib/python3.10/importlib/__init__.py:126: in import_module > return _bootstrap._gcd_import(name[level:], package, level) > tests/test_serializer.py:5: in <module> > from rest_framework import serializers > /usr/lib/python3/dist-packages/rest_framework/serializers.py:29: in <module> > from rest_framework.fields import get_error_detail, set_value > /usr/lib/python3/dist-packages/rest_framework/fields.py:32: in <module> > from pytz.exceptions import InvalidTimeError > E ModuleNotFoundError: No module named 'pytz' > _ ERROR collecting > .pybuild/cpython3_3.10_djangorestframework-flex-fields/build/tests/test_utils.py > _ > ImportError while importing test module > '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_djangorestframework-flex-fields/build/tests/test_utils.py'. > Hint: make sure your test modules/packages have valid Python names. > Traceback: > /usr/lib/python3.10/importlib/__init__.py:126: in import_module > return _bootstrap._gcd_import(name[level:], package, level) > tests/test_utils.py:3: in <module> > from rest_flex_fields import is_included, is_expanded > rest_flex_fields/__init__.py:25: in <module> > from .serializers import FlexFieldsModelSerializer > rest_flex_fields/serializers.py:5: in <module> > from rest_framework import serializers > /usr/lib/python3/dist-packages/rest_framework/serializers.py:29: in <module> > from rest_framework.fields import get_error_detail, set_value > /usr/lib/python3/dist-packages/rest_framework/fields.py:32: in <module> > from pytz.exceptions import InvalidTimeError > E ModuleNotFoundError: No module named 'pytz' > _ ERROR collecting > .pybuild/cpython3_3.10_djangorestframework-flex-fields/build/tests/test_views.py > _ > ImportError while importing test module > '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_djangorestframework-flex-fields/build/tests/test_views.py'. > Hint: make sure your test modules/packages have valid Python names. > Traceback: > /usr/lib/python3/dist-packages/rest_framework/settings.py:177: in > import_from_string > return import_string(val) > /usr/lib/python3/dist-packages/django/utils/module_loading.py:30: in > import_string > return cached_import(module_path, class_name) > /usr/lib/python3/dist-packages/django/utils/module_loading.py:15: in > cached_import > import_module(module_path) > /usr/lib/python3.10/importlib/__init__.py:126: in import_module > return _bootstrap._gcd_import(name[level:], package, level) > <frozen importlib._bootstrap>:1050: in _gcd_import > ??? > <frozen importlib._bootstrap>:1027: in _find_and_load > ??? > <frozen importlib._bootstrap>:1006: in _find_and_load_unlocked > ??? > <frozen importlib._bootstrap>:688: in _load_unlocked > ??? > <frozen importlib._bootstrap_external>:883: in exec_module > ??? > <frozen importlib._bootstrap>:241: in _call_with_frames_removed > ??? > /usr/lib/python3/dist-packages/rest_framework/renderers.py:22: in <module> > from rest_framework import VERSION, exceptions, serializers, status > /usr/lib/python3/dist-packages/rest_framework/serializers.py:29: in <module> > from rest_framework.fields import get_error_detail, set_value > /usr/lib/python3/dist-packages/rest_framework/fields.py:32: in <module> > from pytz.exceptions import InvalidTimeError > E ModuleNotFoundError: No module named 'pytz' > > During handling of the above exception, another exception occurred: > /usr/lib/python3.10/importlib/__init__.py:126: in import_module > return _bootstrap._gcd_import(name[level:], package, level) > tests/test_views.py:8: in <module> > from rest_framework.test import APITestCase > /usr/lib/python3/dist-packages/rest_framework/test.py:138: in <module> > class APIRequestFactory(DjangoRequestFactory): > /usr/lib/python3/dist-packages/rest_framework/test.py:139: in > APIRequestFactory > renderer_classes_list = api_settings.TEST_REQUEST_RENDERER_CLASSES > /usr/lib/python3/dist-packages/rest_framework/settings.py:225: in __getattr__ > val = perform_import(val, attr) > /usr/lib/python3/dist-packages/rest_framework/settings.py:168: in > perform_import > return [import_from_string(item, setting_name) for item in val] > /usr/lib/python3/dist-packages/rest_framework/settings.py:168: in <listcomp> > return [import_from_string(item, setting_name) for item in val] > /usr/lib/python3/dist-packages/rest_framework/settings.py:180: in > import_from_string > raise ImportError(msg) > E ImportError: Could not import > 'rest_framework.renderers.MultiPartRenderer' for API setting > 'TEST_REQUEST_RENDERER_CLASSES'. ModuleNotFoundError: No module named 'pytz'. > =============================== warnings summary > =============================== > ../../../../../../usr/lib/python3/dist-packages/django/conf/__init__.py:229 > /usr/lib/python3/dist-packages/django/conf/__init__.py:229: > RemovedInDjango50Warning: The USE_L10N setting is deprecated. Starting with > Django 5.0, localized formatting of data will always be enabled. For example > Django will display numbers and dates using the format of the current locale. > warnings.warn(USE_L10N_DEPRECATED_MSG, RemovedInDjango50Warning) > > -- Docs: https://docs.pytest.org/en/stable/warnings.html > =========================== short test summary info > ============================ > ERROR tests/test_flex_fields_model_serializer.py > ERROR tests/test_serializer.py > ERROR tests/test_utils.py > ERROR tests/test_views.py > !!!!!!!!!!!!!!!!!!! Interrupted: 4 errors during collection > !!!!!!!!!!!!!!!!!!!! > ========================= 1 warning, 4 errors in 0.34s > ========================= > E: pybuild pybuild:369: test: plugin distutils failed with: exit code=2: cd > /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_djangorestframework-flex-fields/build; > python3.10 -m pytest --ds=tests.settings > dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.9 > 3.10" returned exit code 13 The full build log is available from: http://qa-logs.debian.net/2022/06/24/python-djangorestframework-flex-fields_0.9.8-1_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.