[Python-modules-team] Bug#973101: drf-extensions: FTBFS: dh_auto_test: error: pybuild --test --test-nose -i python{version} -p "3.9 3.8" --system=custom "--test-args=PYTHONPATH='.:tests_app' {interpreter} /usr/bin/django-admin test --settings=settings tests_app" returned exit code 13
Lucas Nussbaum
lucas at debian.org
Tue Oct 27 17:19:10 GMT 2020
Source: drf-extensions
Version: 0.6.0-2
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20201027 ftbfs-bullseye
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="PYTHONPATH='.:tests_app' {interpreter} /usr/bin/django-admin test --settings=settings tests_app"
> I: pybuild base:217: PYTHONPATH='.:tests_app' python3.9 /usr/bin/django-admin test --settings=settings tests_app
> nosetests tests_app --processes=4 --process-timeout=100 --nocapture --verbosity=1
> Creating test database for alias 'default'...
> EEEEEEEE.....................................................................................................................................
> ======================================================================
> ERROR: Failure: ImportError (cannot import name 'get_regex_pattern' from 'rest_framework.compat' (/usr/lib/python3/dist-packages/rest_framework/compat.py))
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/nose/failure.py", line 39, in runTest
> raise self.exc_val.with_traceback(self.tb)
> File "/usr/lib/python3/dist-packages/nose/loader.py", line 416, in loadTestsFromName
> module = self.importer.importFromPath(
> File "/usr/lib/python3/dist-packages/nose/importer.py", line 47, in importFromPath
> return self.importFromDir(dir_path, fqname)
> File "/usr/lib/python3/dist-packages/nose/importer.py", line 94, in importFromDir
> mod = load_module(part_fqname, fh, filename, desc)
> File "/usr/lib/python3.9/imp.py", line 234, in load_module
> return load_source(name, filename, file)
> File "/usr/lib/python3.9/imp.py", line 171, in load_source
> module = _load(spec)
> File "<frozen importlib._bootstrap>", line 711, in _load
> File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
> File "<frozen importlib._bootstrap_external>", line 790, in exec_module
> File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
> File "/<<PKGBUILDDIR>>/tests_app/tests/functional/mixins/list_destroy_model_mixin/tests.py", line 8, in <module>
> from tests_app.testutils import override_extensions_api_settings
> File "/<<PKGBUILDDIR>>/tests_app/testutils.py", line 5, in <module>
> from rest_framework.compat import get_regex_pattern
> ImportError: cannot import name 'get_regex_pattern' from 'rest_framework.compat' (/usr/lib/python3/dist-packages/rest_framework/compat.py)
>
> ======================================================================
> ERROR: Failure: ImportError (cannot import name 'get_regex_pattern' from 'rest_framework.compat' (/usr/lib/python3/dist-packages/rest_framework/compat.py))
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/nose/failure.py", line 39, in runTest
> raise self.exc_val.with_traceback(self.tb)
> File "/usr/lib/python3/dist-packages/nose/loader.py", line 416, in loadTestsFromName
> module = self.importer.importFromPath(
> File "/usr/lib/python3/dist-packages/nose/importer.py", line 47, in importFromPath
> return self.importFromDir(dir_path, fqname)
> File "/usr/lib/python3/dist-packages/nose/importer.py", line 94, in importFromDir
> mod = load_module(part_fqname, fh, filename, desc)
> File "/usr/lib/python3.9/imp.py", line 234, in load_module
> return load_source(name, filename, file)
> File "/usr/lib/python3.9/imp.py", line 171, in load_source
> module = _load(spec)
> File "<frozen importlib._bootstrap>", line 711, in _load
> File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
> File "<frozen importlib._bootstrap_external>", line 790, in exec_module
> File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
> File "/<<PKGBUILDDIR>>/tests_app/tests/functional/mixins/list_update_model_mixin/tests.py", line 16, in <module>
> from tests_app.testutils import override_extensions_api_settings
> File "/<<PKGBUILDDIR>>/tests_app/testutils.py", line 5, in <module>
> from rest_framework.compat import get_regex_pattern
> ImportError: cannot import name 'get_regex_pattern' from 'rest_framework.compat' (/usr/lib/python3/dist-packages/rest_framework/compat.py)
>
> ======================================================================
> ERROR: Failure: ImportError (cannot import name 'get_regex_pattern' from 'rest_framework.compat' (/usr/lib/python3/dist-packages/rest_framework/compat.py))
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/nose/failure.py", line 39, in runTest
> raise self.exc_val.with_traceback(self.tb)
> File "/usr/lib/python3/dist-packages/nose/loader.py", line 416, in loadTestsFromName
> module = self.importer.importFromPath(
> File "/usr/lib/python3/dist-packages/nose/importer.py", line 47, in importFromPath
> return self.importFromDir(dir_path, fqname)
> File "/usr/lib/python3/dist-packages/nose/importer.py", line 94, in importFromDir
> mod = load_module(part_fqname, fh, filename, desc)
> File "/usr/lib/python3.9/imp.py", line 234, in load_module
> return load_source(name, filename, file)
> File "/usr/lib/python3.9/imp.py", line 171, in load_source
> module = _load(spec)
> File "<frozen importlib._bootstrap>", line 711, in _load
> File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
> File "<frozen importlib._bootstrap_external>", line 790, in exec_module
> File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
> File "/<<PKGBUILDDIR>>/tests_app/tests/functional/permissions/extended_django_object_permissions/tests.py", line 10, in <module>
> from tests_app.testutils import basic_auth_header
> File "/<<PKGBUILDDIR>>/tests_app/testutils.py", line 5, in <module>
> from rest_framework.compat import get_regex_pattern
> ImportError: cannot import name 'get_regex_pattern' from 'rest_framework.compat' (/usr/lib/python3/dist-packages/rest_framework/compat.py)
>
> ======================================================================
> ERROR: Failure: ImportError (cannot import name 'get_regex_pattern' from 'rest_framework.compat' (/usr/lib/python3/dist-packages/rest_framework/compat.py))
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/nose/failure.py", line 39, in runTest
> raise self.exc_val.with_traceback(self.tb)
> File "/usr/lib/python3/dist-packages/nose/loader.py", line 416, in loadTestsFromName
> module = self.importer.importFromPath(
> File "/usr/lib/python3/dist-packages/nose/importer.py", line 47, in importFromPath
> return self.importFromDir(dir_path, fqname)
> File "/usr/lib/python3/dist-packages/nose/importer.py", line 94, in importFromDir
> mod = load_module(part_fqname, fh, filename, desc)
> File "/usr/lib/python3.9/imp.py", line 234, in load_module
> return load_source(name, filename, file)
> File "/usr/lib/python3.9/imp.py", line 171, in load_source
> module = _load(spec)
> File "<frozen importlib._bootstrap>", line 711, in _load
> File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
> File "<frozen importlib._bootstrap_external>", line 790, in exec_module
> File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
> File "/<<PKGBUILDDIR>>/tests_app/tests/functional/routers/tests.py", line 5, in <module>
> from tests_app.testutils import get_url_pattern_by_regex_pattern
> File "/<<PKGBUILDDIR>>/tests_app/testutils.py", line 5, in <module>
> from rest_framework.compat import get_regex_pattern
> ImportError: cannot import name 'get_regex_pattern' from 'rest_framework.compat' (/usr/lib/python3/dist-packages/rest_framework/compat.py)
>
> ======================================================================
> ERROR: Failure: ImportError (cannot import name 'get_regex_pattern' from 'rest_framework.compat' (/usr/lib/python3/dist-packages/rest_framework/compat.py))
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/nose/failure.py", line 39, in runTest
> raise self.exc_val.with_traceback(self.tb)
> File "/usr/lib/python3/dist-packages/nose/loader.py", line 416, in loadTestsFromName
> module = self.importer.importFromPath(
> File "/usr/lib/python3/dist-packages/nose/importer.py", line 47, in importFromPath
> return self.importFromDir(dir_path, fqname)
> File "/usr/lib/python3/dist-packages/nose/importer.py", line 94, in importFromDir
> mod = load_module(part_fqname, fh, filename, desc)
> File "/usr/lib/python3.9/imp.py", line 234, in load_module
> return load_source(name, filename, file)
> File "/usr/lib/python3.9/imp.py", line 171, in load_source
> module = _load(spec)
> File "<frozen importlib._bootstrap>", line 711, in _load
> File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
> File "<frozen importlib._bootstrap_external>", line 790, in exec_module
> File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
> File "/<<PKGBUILDDIR>>/tests_app/tests/unit/cache/decorators/tests.py", line 10, in <module>
> from tests_app.testutils import override_extensions_api_settings
> File "/<<PKGBUILDDIR>>/tests_app/testutils.py", line 5, in <module>
> from rest_framework.compat import get_regex_pattern
> ImportError: cannot import name 'get_regex_pattern' from 'rest_framework.compat' (/usr/lib/python3/dist-packages/rest_framework/compat.py)
>
> ======================================================================
> ERROR: Failure: ImportError (cannot import name 'get_regex_pattern' from 'rest_framework.compat' (/usr/lib/python3/dist-packages/rest_framework/compat.py))
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/nose/failure.py", line 39, in runTest
> raise self.exc_val.with_traceback(self.tb)
> File "/usr/lib/python3/dist-packages/nose/loader.py", line 416, in loadTestsFromName
> module = self.importer.importFromPath(
> File "/usr/lib/python3/dist-packages/nose/importer.py", line 47, in importFromPath
> return self.importFromDir(dir_path, fqname)
> File "/usr/lib/python3/dist-packages/nose/importer.py", line 94, in importFromDir
> mod = load_module(part_fqname, fh, filename, desc)
> File "/usr/lib/python3.9/imp.py", line 234, in load_module
> return load_source(name, filename, file)
> File "/usr/lib/python3.9/imp.py", line 171, in load_source
> module = _load(spec)
> File "<frozen importlib._bootstrap>", line 711, in _load
> File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
> File "<frozen importlib._bootstrap_external>", line 790, in exec_module
> File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
> File "/<<PKGBUILDDIR>>/tests_app/tests/unit/key_constructor/constructor/tests.py", line 16, in <module>
> from tests_app.testutils import (
> File "/<<PKGBUILDDIR>>/tests_app/testutils.py", line 5, in <module>
> from rest_framework.compat import get_regex_pattern
> ImportError: cannot import name 'get_regex_pattern' from 'rest_framework.compat' (/usr/lib/python3/dist-packages/rest_framework/compat.py)
>
> ======================================================================
> ERROR: Failure: ImportError (cannot import name 'get_regex_pattern' from 'rest_framework.compat' (/usr/lib/python3/dist-packages/rest_framework/compat.py))
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/nose/failure.py", line 39, in runTest
> raise self.exc_val.with_traceback(self.tb)
> File "/usr/lib/python3/dist-packages/nose/loader.py", line 416, in loadTestsFromName
> module = self.importer.importFromPath(
> File "/usr/lib/python3/dist-packages/nose/importer.py", line 47, in importFromPath
> return self.importFromDir(dir_path, fqname)
> File "/usr/lib/python3/dist-packages/nose/importer.py", line 94, in importFromDir
> mod = load_module(part_fqname, fh, filename, desc)
> File "/usr/lib/python3.9/imp.py", line 234, in load_module
> return load_source(name, filename, file)
> File "/usr/lib/python3.9/imp.py", line 171, in load_source
> module = _load(spec)
> File "<frozen importlib._bootstrap>", line 711, in _load
> File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
> File "<frozen importlib._bootstrap_external>", line 790, in exec_module
> File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
> File "/<<PKGBUILDDIR>>/tests_app/tests/unit/routers/nested_router_mixin/tests.py", line 1, in <module>
> from rest_framework.compat import get_regex_pattern
> ImportError: cannot import name 'get_regex_pattern' from 'rest_framework.compat' (/usr/lib/python3/dist-packages/rest_framework/compat.py)
>
> ======================================================================
> ERROR: Failure: ImportError (cannot import name 'get_regex_pattern' from 'rest_framework.compat' (/usr/lib/python3/dist-packages/rest_framework/compat.py))
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/nose/failure.py", line 39, in runTest
> raise self.exc_val.with_traceback(self.tb)
> File "/usr/lib/python3/dist-packages/nose/loader.py", line 416, in loadTestsFromName
> module = self.importer.importFromPath(
> File "/usr/lib/python3/dist-packages/nose/importer.py", line 47, in importFromPath
> return self.importFromDir(dir_path, fqname)
> File "/usr/lib/python3/dist-packages/nose/importer.py", line 94, in importFromDir
> mod = load_module(part_fqname, fh, filename, desc)
> File "/usr/lib/python3.9/imp.py", line 234, in load_module
> return load_source(name, filename, file)
> File "/usr/lib/python3.9/imp.py", line 171, in load_source
> module = _load(spec)
> File "<frozen importlib._bootstrap>", line 711, in _load
> File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
> File "<frozen importlib._bootstrap_external>", line 790, in exec_module
> File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
> File "/<<PKGBUILDDIR>>/tests_app/testutils.py", line 5, in <module>
> from rest_framework.compat import get_regex_pattern
> ImportError: cannot import name 'get_regex_pattern' from 'rest_framework.compat' (/usr/lib/python3/dist-packages/rest_framework/compat.py)
>
> ----------------------------------------------------------------------
> Ran 141 tests in 0.272s
>
> FAILED (errors=8)
> Destroying test database for alias 'default'...
> E: pybuild pybuild:352: test: plugin custom failed with: exit code=1: PYTHONPATH='.:tests_app' python3.9 /usr/bin/django-admin test --settings=settings tests_app
> dh_auto_test: error: pybuild --test --test-nose -i python{version} -p "3.9 3.8" --system=custom "--test-args=PYTHONPATH='.:tests_app' {interpreter} /usr/bin/django-admin test --settings=settings tests_app" returned exit code 13
The full build log is available from:
http://qa-logs.debian.net/2020/10/27/drf-extensions_0.6.0-2_unstable.log
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!
About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.
More information about the Python-modules-team
mailing list