Source: djangorestframework-filters
Version: 1.0.0.dev2-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):
> debian/rules build
> dh build --with python3 --buildsystem=pybuild
> dh_update_autotools_config -O--buildsystem=pybuild
> dh_autoreconf -O--buildsystem=pybuild
> dh_auto_configure -O--buildsystem=pybuild
> pybuild --configure -i python{version} -p "3.9 3.10"
> 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
> pybuild --build -i python{version} -p "3.9 3.10"
> I: pybuild base:239: /usr/bin/python3.9 setup.py build
> running build
> running build_py
> creating
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_djangorestframework-filters/build/rest_framework_filters
> copying rest_framework_filters/__init__.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_djangorestframework-filters/build/rest_framework_filters
> copying rest_framework_filters/complex_ops.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_djangorestframework-filters/build/rest_framework_filters
> copying rest_framework_filters/filters.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_djangorestframework-filters/build/rest_framework_filters
> copying rest_framework_filters/backends.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_djangorestframework-filters/build/rest_framework_filters
> copying rest_framework_filters/filterset.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_djangorestframework-filters/build/rest_framework_filters
> copying rest_framework_filters/utils.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_djangorestframework-filters/build/rest_framework_filters
> creating
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_djangorestframework-filters/build/rest_framework_filters/templatetags
> copying rest_framework_filters/templatetags/__init__.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_djangorestframework-filters/build/rest_framework_filters/templatetags
> copying rest_framework_filters/templatetags/rest_framework_filters.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_djangorestframework-filters/build/rest_framework_filters/templatetags
> running egg_info
> creating djangorestframework_filters.egg-info
> writing djangorestframework_filters.egg-info/PKG-INFO
> writing dependency_links to
> djangorestframework_filters.egg-info/dependency_links.txt
> writing requirements to djangorestframework_filters.egg-info/requires.txt
> writing top-level names to djangorestframework_filters.egg-info/top_level.txt
> writing manifest file 'djangorestframework_filters.egg-info/SOURCES.txt'
> reading manifest file 'djangorestframework_filters.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> warning: no previously-included files matching '__pycache__' found anywhere
> in distribution
> warning: no previously-included files matching '*.py[co]' found anywhere in
> distribution
> adding license file 'LICENSE'
> writing manifest file 'djangorestframework_filters.egg-info/SOURCES.txt'
> creating
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_djangorestframework-filters/build/rest_framework_filters/templates
> creating
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_djangorestframework-filters/build/rest_framework_filters/templates/rest_framework_filters
> copying
> rest_framework_filters/templates/rest_framework_filters/crispy_form.html ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_djangorestframework-filters/build/rest_framework_filters/templates/rest_framework_filters
> copying rest_framework_filters/templates/rest_framework_filters/form.html ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_djangorestframework-filters/build/rest_framework_filters/templates/rest_framework_filters
> I: pybuild base:239: /usr/bin/python3 setup.py build
> running build
> running build_py
> creating
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_djangorestframework-filters/build/rest_framework_filters
> copying rest_framework_filters/__init__.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_djangorestframework-filters/build/rest_framework_filters
> copying rest_framework_filters/complex_ops.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_djangorestframework-filters/build/rest_framework_filters
> copying rest_framework_filters/filters.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_djangorestframework-filters/build/rest_framework_filters
> copying rest_framework_filters/backends.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_djangorestframework-filters/build/rest_framework_filters
> copying rest_framework_filters/filterset.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_djangorestframework-filters/build/rest_framework_filters
> copying rest_framework_filters/utils.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_djangorestframework-filters/build/rest_framework_filters
> creating
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_djangorestframework-filters/build/rest_framework_filters/templatetags
> copying rest_framework_filters/templatetags/__init__.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_djangorestframework-filters/build/rest_framework_filters/templatetags
> copying rest_framework_filters/templatetags/rest_framework_filters.py ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_djangorestframework-filters/build/rest_framework_filters/templatetags
> running egg_info
> writing djangorestframework_filters.egg-info/PKG-INFO
> writing dependency_links to
> djangorestframework_filters.egg-info/dependency_links.txt
> writing requirements to djangorestframework_filters.egg-info/requires.txt
> writing top-level names to djangorestframework_filters.egg-info/top_level.txt
> reading manifest file 'djangorestframework_filters.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> warning: no previously-included files matching '__pycache__' found anywhere
> in distribution
> warning: no previously-included files matching '*.py[co]' found anywhere in
> distribution
> adding license file 'LICENSE'
> writing manifest file 'djangorestframework_filters.egg-info/SOURCES.txt'
> creating
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_djangorestframework-filters/build/rest_framework_filters/templates
> creating
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_djangorestframework-filters/build/rest_framework_filters/templates/rest_framework_filters
> copying
> rest_framework_filters/templates/rest_framework_filters/crispy_form.html ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_djangorestframework-filters/build/rest_framework_filters/templates/rest_framework_filters
> copying rest_framework_filters/templates/rest_framework_filters/form.html ->
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_djangorestframework-filters/build/rest_framework_filters/templates/rest_framework_filters
> dh_auto_test -O--buildsystem=pybuild
> pybuild --test --test-pytest -i python{version} -p "3.9 3.10"
> I: pybuild base:239: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_djangorestframework-filters/build;
> python3.9 -m pytest tests
> ============================= 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 environment variable)
> rootdir: /<<PKGBUILDDIR>>
> plugins: django-3.5.1
> collected 54 items / 4 errors / 50 selected
>
> ==================================== ERRORS
> ====================================
> _ ERROR collecting
> .pybuild/cpython3_3.9_djangorestframework-filters/build/tests/test_backends.py
> _
> ImportError while importing test module
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_djangorestframework-filters/build/tests/test_backends.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_backends.py:6: in <module>
> from rest_framework.test import APIRequestFactory, 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'.
> _ ERROR collecting
> .pybuild/cpython3_3.9_djangorestframework-filters/build/tests/test_complex_ops.py
> _
> ImportError while importing test module
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_djangorestframework-filters/build/tests/test_complex_ops.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_complex_ops.py:7: in <module>
> from rest_framework.serializers import ValidationError
> /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-filters/build/tests/test_filterset.py
> _
> ImportError while importing test module
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_djangorestframework-filters/build/tests/test_filterset.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_filterset.py:8: in <module>
> from rest_framework.test import APIRequestFactory
> /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'.
> _ ERROR collecting
> .pybuild/cpython3_3.9_djangorestframework-filters/build/tests/test_regressions.py
> _
> ImportError while importing test module
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_djangorestframework-filters/build/tests/test_regressions.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_regressions.py:13: 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'
> =============================== warnings summary
> ===============================
> ../../../../../../usr/lib/python3/dist-packages/django/conf/__init__.py:206
> /usr/lib/python3/dist-packages/django/conf/__init__.py:206:
> RemovedInDjango50Warning: The default value of USE_TZ will change from False
> to True in Django 5.0. Set USE_TZ to False in your project settings if you
> want to keep the current default behavior.
> warnings.warn(
>
> ../../../../../../usr/lib/python3/dist-packages/django/apps/registry.py:91
> /usr/lib/python3/dist-packages/django/apps/registry.py:91:
> RemovedInDjango41Warning: 'tests.testapp' defines default_app_config =
> 'tests.testapp.apps.TestappConfig'. Django now detects this configuration
> automatically. You can remove default_app_config.
> app_config = AppConfig.create(entry)
>
> -- Docs: https://docs.pytest.org/en/stable/warnings.html
> =========================== short test summary info
> ============================
> ERROR tests/test_backends.py
> ERROR tests/test_complex_ops.py
> ERROR tests/test_filterset.py
> ERROR tests/test_regressions.py
> !!!!!!!!!!!!!!!!!!! Interrupted: 4 errors during collection
> !!!!!!!!!!!!!!!!!!!!
> ======================== 2 warnings, 4 errors in 0.67s
> =========================
> E: pybuild pybuild:369: test: plugin distutils failed with: exit code=2: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_djangorestframework-filters/build;
> python3.9 -m pytest tests
> I: pybuild base:239: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_djangorestframework-filters/build;
> python3.10 -m pytest tests
> ============================= 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 environment variable)
> rootdir: /<<PKGBUILDDIR>>
> plugins: django-3.5.1
> collected 54 items / 4 errors / 50 selected
>
> ==================================== ERRORS
> ====================================
> _ ERROR collecting
> .pybuild/cpython3_3.10_djangorestframework-filters/build/tests/test_backends.py
> _
> ImportError while importing test module
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_djangorestframework-filters/build/tests/test_backends.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_backends.py:6: in <module>
> from rest_framework.test import APIRequestFactory, 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'.
> _ ERROR collecting
> .pybuild/cpython3_3.10_djangorestframework-filters/build/tests/test_complex_ops.py
> _
> ImportError while importing test module
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_djangorestframework-filters/build/tests/test_complex_ops.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_complex_ops.py:7: in <module>
> from rest_framework.serializers import ValidationError
> /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-filters/build/tests/test_filterset.py
> _
> ImportError while importing test module
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_djangorestframework-filters/build/tests/test_filterset.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_filterset.py:8: in <module>
> from rest_framework.test import APIRequestFactory
> /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'.
> _ ERROR collecting
> .pybuild/cpython3_3.10_djangorestframework-filters/build/tests/test_regressions.py
> _
> ImportError while importing test module
> '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_djangorestframework-filters/build/tests/test_regressions.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_regressions.py:13: 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'
> =============================== warnings summary
> ===============================
> ../../../../../../usr/lib/python3/dist-packages/django/conf/__init__.py:206
> /usr/lib/python3/dist-packages/django/conf/__init__.py:206:
> RemovedInDjango50Warning: The default value of USE_TZ will change from False
> to True in Django 5.0. Set USE_TZ to False in your project settings if you
> want to keep the current default behavior.
> warnings.warn(
>
> ../../../../../../usr/lib/python3/dist-packages/django/apps/registry.py:91
> /usr/lib/python3/dist-packages/django/apps/registry.py:91:
> RemovedInDjango41Warning: 'tests.testapp' defines default_app_config =
> 'tests.testapp.apps.TestappConfig'. Django now detects this configuration
> automatically. You can remove default_app_config.
> app_config = AppConfig.create(entry)
>
> -- Docs: https://docs.pytest.org/en/stable/warnings.html
> =========================== short test summary info
> ============================
> ERROR tests/test_backends.py
> ERROR tests/test_complex_ops.py
> ERROR tests/test_filterset.py
> ERROR tests/test_regressions.py
> !!!!!!!!!!!!!!!!!!! Interrupted: 4 errors during collection
> !!!!!!!!!!!!!!!!!!!!
> ======================== 2 warnings, 4 errors in 0.67s
> =========================
> E: pybuild pybuild:369: test: plugin distutils failed with: exit code=2: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.10_djangorestframework-filters/build;
> python3.10 -m pytest tests
> 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/djangorestframework-filters_1.0.0.dev2-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.