[Python-modules-team] Bug#959547: python-django-storages: FTBFS: dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.8 returned exit code 13

Lucas Nussbaum lucas at debian.org
Sun May 3 14:00:16 BST 2020


Source: python-django-storages
Version: 1.9.1-1
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20200501 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>>'
> rm -rf docs/.build
> dh_clean
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
>  dpkg-source -b .
> dpkg-source: info: using source format '3.0 (quilt)'
> dpkg-source: info: building python-django-storages using existing ./python-django-storages_1.9.1.orig.tar.gz
> dpkg-source: info: using patch list from debian/patches/series
> dpkg-source: info: building python-django-storages in python-django-storages_1.9.1-1.debian.tar.xz
> dpkg-source: info: building python-django-storages in python-django-storages_1.9.1-1.dsc
>  debian/rules binary
> dh binary --with python3,sphinxdoc --buildsystem=pybuild
>    dh_update_autotools_config -O--buildsystem=pybuild
>    dh_autoreconf -O--buildsystem=pybuild
>    dh_auto_configure -O--buildsystem=pybuild
> I: pybuild base:217: python3.8 setup.py config 
> running config
>    dh_auto_build -O--buildsystem=pybuild
> I: pybuild base:217: /usr/bin/python3 setup.py build 
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/storages
> copying storages/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/storages
> copying storages/utils.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/storages
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/storages/backends
> copying storages/backends/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/storages/backends
> copying storages/backends/dropbox.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/storages/backends
> copying storages/backends/s3boto3.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/storages/backends
> copying storages/backends/sftpstorage.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/storages/backends
> copying storages/backends/apache_libcloud.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/storages/backends
> copying storages/backends/gcloud.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/storages/backends
> copying storages/backends/azure_storage.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/storages/backends
> copying storages/backends/ftp.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/storages/backends
>    dh_auto_test -O--buildsystem=pybuild
> I: pybuild pybuild:284: cp -r /<<PKGBUILDDIR>>/tests /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build
> I: pybuild base:217: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build; python3.8 -m pytest --ignore=tests/integration
> ============================= test session starts ==============================
> platform linux -- Python 3.8.3rc1, pytest-4.6.9, py-1.8.1, pluggy-0.13.0
> rootdir: /<<PKGBUILDDIR>>
> collected 135 items / 1 errors / 1 skipped / 133 selected
> 
> ==================================== ERRORS ====================================
> _______ ERROR collecting .pybuild/cpython3_3.8/build/tests/test_azure.py _______
> ImportError while importing test module '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build/tests/test_azure.py'.
> Hint: make sure your test modules/packages have valid Python names.
> Traceback:
> tests/test_azure.py:15: in <module>
>     from azure.storage.blob import Blob, BlobPermissions, BlobProperties
> E   ImportError: cannot import name 'Blob' from 'azure.storage.blob' (/usr/lib/python3/dist-packages/azure/storage/blob/__init__.py)
> =============================== warnings summary ===============================
> /usr/lib/python3/dist-packages/aiohttp/helpers.py:107
>   /usr/lib/python3/dist-packages/aiohttp/helpers.py:107: DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use "async def" instead
>     def noop(*args, **kwargs):  # type: ignore
> 
> -- Docs: https://docs.pytest.org/en/latest/warnings.html
> !!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!!!
> ================ 1 skipped, 1 warnings, 1 error in 0.73 seconds ================
> E: pybuild pybuild:352: test: plugin distutils failed with: exit code=2: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8/build; python3.8 -m pytest --ignore=tests/integration
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.8 returned exit code 13

The full build log is available from:
   http://qa-logs.debian.net/2020/05/01/python-django-storages_1.9.1-1_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