[Python-modules-team] Bug#952010: flask-oauthlib: FTBFS: dh_auto_test: error: pybuild --test --test-nose -i python{version} -p "3.8 3.7" returned exit code 13
Lucas Nussbaum
lucas at debian.org
Sun Feb 23 06:46:38 GMT 2020
Source: flask-oauthlib
Version: 0.9.5-2
Severity: serious
Justification: FTBFS on amd64
Tags: buster sid
Usertags: ftbfs-20200222 ftbfs-buster
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_auto_configure -O--buildsystem=pybuild
> I: pybuild base:217: python3.8 setup.py config
> running config
> I: pybuild base:217: python3.7 setup.py config
> running config
> dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:217: /usr/bin/python3.8 setup.py build
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/flask_oauthlib
> copying flask_oauthlib/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/flask_oauthlib
> copying flask_oauthlib/client.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/flask_oauthlib
> copying flask_oauthlib/utils.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/flask_oauthlib
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/flask_oauthlib/provider
> copying flask_oauthlib/provider/oauth1.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/flask_oauthlib/provider
> copying flask_oauthlib/provider/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/flask_oauthlib/provider
> copying flask_oauthlib/provider/oauth2.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/flask_oauthlib/provider
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/flask_oauthlib/contrib
> copying flask_oauthlib/contrib/cache.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/flask_oauthlib/contrib
> copying flask_oauthlib/contrib/apps.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/flask_oauthlib/contrib
> copying flask_oauthlib/contrib/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/flask_oauthlib/contrib
> copying flask_oauthlib/contrib/oauth2.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/flask_oauthlib/contrib
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/flask_oauthlib/contrib/client
> copying flask_oauthlib/contrib/client/application.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/flask_oauthlib/contrib/client
> copying flask_oauthlib/contrib/client/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/flask_oauthlib/contrib/client
> copying flask_oauthlib/contrib/client/descriptor.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/flask_oauthlib/contrib/client
> copying flask_oauthlib/contrib/client/exceptions.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/flask_oauthlib/contrib/client
> copying flask_oauthlib/contrib/client/signals.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/flask_oauthlib/contrib/client
> copying flask_oauthlib/contrib/client/structure.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/flask_oauthlib/contrib/client
> running egg_info
> creating Flask_OAuthlib.egg-info
> writing Flask_OAuthlib.egg-info/PKG-INFO
> writing dependency_links to Flask_OAuthlib.egg-info/dependency_links.txt
> writing requirements to Flask_OAuthlib.egg-info/requires.txt
> writing top-level names to Flask_OAuthlib.egg-info/top_level.txt
> writing manifest file 'Flask_OAuthlib.egg-info/SOURCES.txt'
> reading manifest file 'Flask_OAuthlib.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> writing manifest file 'Flask_OAuthlib.egg-info/SOURCES.txt'
> I: pybuild base:217: /usr/bin/python3 setup.py build
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_flask-oauthlib/build/flask_oauthlib
> copying flask_oauthlib/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_flask-oauthlib/build/flask_oauthlib
> copying flask_oauthlib/client.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_flask-oauthlib/build/flask_oauthlib
> copying flask_oauthlib/utils.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_flask-oauthlib/build/flask_oauthlib
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_flask-oauthlib/build/flask_oauthlib/provider
> copying flask_oauthlib/provider/oauth1.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_flask-oauthlib/build/flask_oauthlib/provider
> copying flask_oauthlib/provider/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_flask-oauthlib/build/flask_oauthlib/provider
> copying flask_oauthlib/provider/oauth2.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_flask-oauthlib/build/flask_oauthlib/provider
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_flask-oauthlib/build/flask_oauthlib/contrib
> copying flask_oauthlib/contrib/cache.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_flask-oauthlib/build/flask_oauthlib/contrib
> copying flask_oauthlib/contrib/apps.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_flask-oauthlib/build/flask_oauthlib/contrib
> copying flask_oauthlib/contrib/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_flask-oauthlib/build/flask_oauthlib/contrib
> copying flask_oauthlib/contrib/oauth2.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_flask-oauthlib/build/flask_oauthlib/contrib
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_flask-oauthlib/build/flask_oauthlib/contrib/client
> copying flask_oauthlib/contrib/client/application.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_flask-oauthlib/build/flask_oauthlib/contrib/client
> copying flask_oauthlib/contrib/client/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_flask-oauthlib/build/flask_oauthlib/contrib/client
> copying flask_oauthlib/contrib/client/descriptor.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_flask-oauthlib/build/flask_oauthlib/contrib/client
> copying flask_oauthlib/contrib/client/exceptions.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_flask-oauthlib/build/flask_oauthlib/contrib/client
> copying flask_oauthlib/contrib/client/signals.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_flask-oauthlib/build/flask_oauthlib/contrib/client
> copying flask_oauthlib/contrib/client/structure.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_flask-oauthlib/build/flask_oauthlib/contrib/client
> running egg_info
> writing Flask_OAuthlib.egg-info/PKG-INFO
> writing dependency_links to Flask_OAuthlib.egg-info/dependency_links.txt
> writing requirements to Flask_OAuthlib.egg-info/requires.txt
> writing top-level names to Flask_OAuthlib.egg-info/top_level.txt
> reading manifest file 'Flask_OAuthlib.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> writing manifest file 'Flask_OAuthlib.egg-info/SOURCES.txt'
> dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:217: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build; python3.8 -m nose -v tests
> Failure: ImportError (cannot import name 'bytes_type' from 'oauthlib.common' (/usr/lib/python3/dist-packages/oauthlib/common.py)) ... ERROR
> Failure: ImportError (cannot import name 'bytes_type' from 'oauthlib.common' (/usr/lib/python3/dist-packages/oauthlib/common.py)) ... ERROR
> Failure: ImportError (cannot import name 'bytes_type' from 'oauthlib.common' (/usr/lib/python3/dist-packages/oauthlib/common.py)) ... ERROR
> Failure: ImportError (cannot import name 'bytes_type' from 'oauthlib.common' (/usr/lib/python3/dist-packages/oauthlib/common.py)) ... ERROR
> Failure: ImportError (cannot import name 'bytes_type' from 'oauthlib.common' (/usr/lib/python3/dist-packages/oauthlib/common.py)) ... ERROR
> Failure: ImportError (cannot import name 'bytes_type' from 'oauthlib.common' (/usr/lib/python3/dist-packages/oauthlib/common.py)) ... ERROR
> Failure: ImportError (cannot import name 'bytes_type' from 'oauthlib.common' (/usr/lib/python3/dist-packages/oauthlib/common.py)) ... ERROR
> Failure: ImportError (cannot import name 'bytes_type' from 'oauthlib.common' (/usr/lib/python3/dist-packages/oauthlib/common.py)) ... ERROR
> Failure: ImportError (cannot import name 'bytes_type' from 'oauthlib.common' (/usr/lib/python3/dist-packages/oauthlib/common.py)) ... ERROR
> Failure: ImportError (cannot import name 'bytes_type' from 'oauthlib.common' (/usr/lib/python3/dist-packages/oauthlib/common.py)) ... ERROR
>
> ======================================================================
> ERROR: Failure: ImportError (cannot import name 'bytes_type' from 'oauthlib.common' (/usr/lib/python3/dist-packages/oauthlib/common.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.8/imp.py", line 234, in load_module
> return load_source(name, filename, file)
> File "/usr/lib/python3.8/imp.py", line 171, in load_source
> module = _load(spec)
> File "<frozen importlib._bootstrap>", line 702, in _load
> File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
> File "<frozen importlib._bootstrap_external>", line 783, in exec_module
> File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/tests/oauth1/test_oauth1.py", line 7, in <module>
> from flask_oauthlib.client import OAuth, OAuthException
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/flask_oauthlib/client.py", line 20, in <module>
> from .utils import to_bytes
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/flask_oauthlib/utils.py", line 5, in <module>
> from oauthlib.common import to_unicode, bytes_type
> ImportError: cannot import name 'bytes_type' from 'oauthlib.common' (/usr/lib/python3/dist-packages/oauthlib/common.py)
>
> ======================================================================
> ERROR: Failure: ImportError (cannot import name 'bytes_type' from 'oauthlib.common' (/usr/lib/python3/dist-packages/oauthlib/common.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.8/imp.py", line 234, in load_module
> return load_source(name, filename, file)
> File "/usr/lib/python3.8/imp.py", line 171, in load_source
> module = _load(spec)
> File "<frozen importlib._bootstrap>", line 702, in _load
> File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
> File "<frozen importlib._bootstrap_external>", line 783, in exec_module
> File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/tests/oauth2/test_oauth2.py", line 6, in <module>
> from .server import (
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/tests/oauth2/server.py", line 6, in <module>
> from flask_oauthlib.provider import OAuth2Provider
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/flask_oauthlib/provider/__init__.py", line 12, in <module>
> from .oauth1 import OAuth1Provider, OAuth1RequestValidator
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/flask_oauthlib/provider/oauth1.py", line 21, in <module>
> from ..utils import extract_params, create_response
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/flask_oauthlib/utils.py", line 5, in <module>
> from oauthlib.common import to_unicode, bytes_type
> ImportError: cannot import name 'bytes_type' from 'oauthlib.common' (/usr/lib/python3/dist-packages/oauthlib/common.py)
>
> ======================================================================
> ERROR: Failure: ImportError (cannot import name 'bytes_type' from 'oauthlib.common' (/usr/lib/python3/dist-packages/oauthlib/common.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.8/imp.py", line 234, in load_module
> return load_source(name, filename, file)
> File "/usr/lib/python3.8/imp.py", line 171, in load_source
> module = _load(spec)
> File "<frozen importlib._bootstrap>", line 702, in _load
> File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
> File "<frozen importlib._bootstrap_external>", line 783, in exec_module
> File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/tests/test_client.py", line 3, in <module>
> from flask_oauthlib.client import encode_request_data
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/flask_oauthlib/client.py", line 20, in <module>
> from .utils import to_bytes
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/flask_oauthlib/utils.py", line 5, in <module>
> from oauthlib.common import to_unicode, bytes_type
> ImportError: cannot import name 'bytes_type' from 'oauthlib.common' (/usr/lib/python3/dist-packages/oauthlib/common.py)
>
> ======================================================================
> ERROR: Failure: ImportError (cannot import name 'bytes_type' from 'oauthlib.common' (/usr/lib/python3/dist-packages/oauthlib/common.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.8/imp.py", line 234, in load_module
> return load_source(name, filename, file)
> File "/usr/lib/python3.8/imp.py", line 171, in load_source
> module = _load(spec)
> File "<frozen importlib._bootstrap>", line 702, in _load
> File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
> File "<frozen importlib._bootstrap_external>", line 783, in exec_module
> File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/tests/test_contrib/test_apps.py", line 4, in <module>
> from flask_oauthlib.client import OAuth
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/flask_oauthlib/client.py", line 20, in <module>
> from .utils import to_bytes
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/flask_oauthlib/utils.py", line 5, in <module>
> from oauthlib.common import to_unicode, bytes_type
> ImportError: cannot import name 'bytes_type' from 'oauthlib.common' (/usr/lib/python3/dist-packages/oauthlib/common.py)
>
> ======================================================================
> ERROR: Failure: ImportError (cannot import name 'bytes_type' from 'oauthlib.common' (/usr/lib/python3/dist-packages/oauthlib/common.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.8/imp.py", line 234, in load_module
> return load_source(name, filename, file)
> File "/usr/lib/python3.8/imp.py", line 171, in load_source
> module = _load(spec)
> File "<frozen importlib._bootstrap>", line 702, in _load
> File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
> File "<frozen importlib._bootstrap_external>", line 783, in exec_module
> File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/tests/test_oauth2/test_client_credential.py", line 3, in <module>
> from .._base import to_base64
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/tests/_base.py", line 8, in <module>
> from flask_oauthlib.client import prepare_request
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/flask_oauthlib/client.py", line 20, in <module>
> from .utils import to_bytes
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/flask_oauthlib/utils.py", line 5, in <module>
> from oauthlib.common import to_unicode, bytes_type
> ImportError: cannot import name 'bytes_type' from 'oauthlib.common' (/usr/lib/python3/dist-packages/oauthlib/common.py)
>
> ======================================================================
> ERROR: Failure: ImportError (cannot import name 'bytes_type' from 'oauthlib.common' (/usr/lib/python3/dist-packages/oauthlib/common.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.8/imp.py", line 234, in load_module
> return load_source(name, filename, file)
> File "/usr/lib/python3.8/imp.py", line 171, in load_source
> module = _load(spec)
> File "<frozen importlib._bootstrap>", line 702, in _load
> File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
> File "<frozen importlib._bootstrap_external>", line 783, in exec_module
> File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/tests/test_oauth2/test_code.py", line 4, in <module>
> from .._base import to_base64
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/tests/_base.py", line 8, in <module>
> from flask_oauthlib.client import prepare_request
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/flask_oauthlib/client.py", line 20, in <module>
> from .utils import to_bytes
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/flask_oauthlib/utils.py", line 5, in <module>
> from oauthlib.common import to_unicode, bytes_type
> ImportError: cannot import name 'bytes_type' from 'oauthlib.common' (/usr/lib/python3/dist-packages/oauthlib/common.py)
>
> ======================================================================
> ERROR: Failure: ImportError (cannot import name 'bytes_type' from 'oauthlib.common' (/usr/lib/python3/dist-packages/oauthlib/common.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.8/imp.py", line 234, in load_module
> return load_source(name, filename, file)
> File "/usr/lib/python3.8/imp.py", line 171, in load_source
> module = _load(spec)
> File "<frozen importlib._bootstrap>", line 702, in _load
> File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
> File "<frozen importlib._bootstrap_external>", line 783, in exec_module
> File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/tests/test_oauth2/test_implicit.py", line 3, in <module>
> from .base import TestCase
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/tests/test_oauth2/base.py", line 10, in <module>
> from flask_oauthlib.provider import OAuth2Provider
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/flask_oauthlib/provider/__init__.py", line 12, in <module>
> from .oauth1 import OAuth1Provider, OAuth1RequestValidator
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/flask_oauthlib/provider/oauth1.py", line 21, in <module>
> from ..utils import extract_params, create_response
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/flask_oauthlib/utils.py", line 5, in <module>
> from oauthlib.common import to_unicode, bytes_type
> ImportError: cannot import name 'bytes_type' from 'oauthlib.common' (/usr/lib/python3/dist-packages/oauthlib/common.py)
>
> ======================================================================
> ERROR: Failure: ImportError (cannot import name 'bytes_type' from 'oauthlib.common' (/usr/lib/python3/dist-packages/oauthlib/common.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.8/imp.py", line 234, in load_module
> return load_source(name, filename, file)
> File "/usr/lib/python3.8/imp.py", line 171, in load_source
> module = _load(spec)
> File "<frozen importlib._bootstrap>", line 702, in _load
> File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
> File "<frozen importlib._bootstrap_external>", line 783, in exec_module
> File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/tests/test_oauth2/test_password.py", line 3, in <module>
> from .base import TestCase
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/tests/test_oauth2/base.py", line 10, in <module>
> from flask_oauthlib.provider import OAuth2Provider
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/flask_oauthlib/provider/__init__.py", line 12, in <module>
> from .oauth1 import OAuth1Provider, OAuth1RequestValidator
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/flask_oauthlib/provider/oauth1.py", line 21, in <module>
> from ..utils import extract_params, create_response
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/flask_oauthlib/utils.py", line 5, in <module>
> from oauthlib.common import to_unicode, bytes_type
> ImportError: cannot import name 'bytes_type' from 'oauthlib.common' (/usr/lib/python3/dist-packages/oauthlib/common.py)
>
> ======================================================================
> ERROR: Failure: ImportError (cannot import name 'bytes_type' from 'oauthlib.common' (/usr/lib/python3/dist-packages/oauthlib/common.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.8/imp.py", line 234, in load_module
> return load_source(name, filename, file)
> File "/usr/lib/python3.8/imp.py", line 171, in load_source
> module = _load(spec)
> File "<frozen importlib._bootstrap>", line 702, in _load
> File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
> File "<frozen importlib._bootstrap_external>", line 783, in exec_module
> File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/tests/test_oauth2/test_refresh.py", line 4, in <module>
> from .._base import to_base64, to_unicode as u
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/tests/_base.py", line 8, in <module>
> from flask_oauthlib.client import prepare_request
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/flask_oauthlib/client.py", line 20, in <module>
> from .utils import to_bytes
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/flask_oauthlib/utils.py", line 5, in <module>
> from oauthlib.common import to_unicode, bytes_type
> ImportError: cannot import name 'bytes_type' from 'oauthlib.common' (/usr/lib/python3/dist-packages/oauthlib/common.py)
>
> ======================================================================
> ERROR: Failure: ImportError (cannot import name 'bytes_type' from 'oauthlib.common' (/usr/lib/python3/dist-packages/oauthlib/common.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.8/imp.py", line 234, in load_module
> return load_source(name, filename, file)
> File "/usr/lib/python3.8/imp.py", line 171, in load_source
> module = _load(spec)
> File "<frozen importlib._bootstrap>", line 702, in _load
> File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
> File "<frozen importlib._bootstrap_external>", line 783, in exec_module
> File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/tests/test_utils.py", line 6, in <module>
> from flask_oauthlib.utils import extract_params
> File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build/flask_oauthlib/utils.py", line 5, in <module>
> from oauthlib.common import to_unicode, bytes_type
> ImportError: cannot import name 'bytes_type' from 'oauthlib.common' (/usr/lib/python3/dist-packages/oauthlib/common.py)
>
> ----------------------------------------------------------------------
> Ran 10 tests in 0.003s
>
> FAILED (errors=10)
> E: pybuild pybuild:341: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_flask-oauthlib/build; python3.8 -m nose -v tests
> dh_auto_test: error: pybuild --test --test-nose -i python{version} -p "3.8 3.7" returned exit code 13
The full build log is available from:
http://qa-logs.debian.net/2020/02/22/flask-oauthlib_0.9.5-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