[Python-modules-team] Bug#951953: python-django-imagekit: FTBFS: dh_auto_test: error: pybuild --test -i python{version} -p "3.8 3.7" returned exit code 13
Lucas Nussbaum
lucas at debian.org
Sun Feb 23 07:08:36 GMT 2020
Source: python-django-imagekit
Version: 4.0.2-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):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> dh_auto_build
> I: pybuild base:217: /usr/bin/python3.8 setup.py build
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit
> copying imagekit/registry.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit
> copying imagekit/generatorlibrary.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit
> copying imagekit/lib.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit
> copying imagekit/pkgmeta.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit
> copying imagekit/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit
> copying imagekit/conf.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit
> copying imagekit/hashers.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit
> copying imagekit/compat.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit
> copying imagekit/admin.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit
> copying imagekit/exceptions.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit
> copying imagekit/signals.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit
> copying imagekit/utils.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit
> copying imagekit/files.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit/forms
> copying imagekit/forms/fields.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit/forms
> copying imagekit/forms/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit/forms
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit/models
> copying imagekit/models/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit/models
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit/processors
> copying imagekit/processors/resize.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit/processors
> copying imagekit/processors/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit/processors
> copying imagekit/processors/crop.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit/processors
> copying imagekit/processors/base.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit/processors
> copying imagekit/processors/utils.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit/processors
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit/specs
> copying imagekit/specs/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit/specs
> copying imagekit/specs/sourcegroups.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit/specs
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit/templatetags
> copying imagekit/templatetags/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit/templatetags
> copying imagekit/templatetags/imagekit.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit/templatetags
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit/cachefiles
> copying imagekit/cachefiles/backends.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit/cachefiles
> copying imagekit/cachefiles/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit/cachefiles
> copying imagekit/cachefiles/strategies.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit/cachefiles
> copying imagekit/cachefiles/namers.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit/cachefiles
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit/management
> copying imagekit/management/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit/management
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit/models/fields
> copying imagekit/models/fields/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit/models/fields
> copying imagekit/models/fields/utils.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit/models/fields
> copying imagekit/models/fields/files.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit/models/fields
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit/management/commands
> copying imagekit/management/commands/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit/management/commands
> copying imagekit/management/commands/generateimages.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit/management/commands
> running egg_info
> creating django_imagekit.egg-info
> writing django_imagekit.egg-info/PKG-INFO
> writing dependency_links to django_imagekit.egg-info/dependency_links.txt
> writing requirements to django_imagekit.egg-info/requires.txt
> writing top-level names to django_imagekit.egg-info/top_level.txt
> writing manifest file 'django_imagekit.egg-info/SOURCES.txt'
> reading manifest file 'django_imagekit.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> warning: no files found matching 'tests/assets/Lenna.png'
> warning: no files found matching 'tests/assets/lenna-*.jpg'
> warning: no files found matching 'tests/media/lenna.png'
> no previously-included directories found matching 'tests/media/CACHE'
> no previously-included directories found matching 'tests/media/b'
> no previously-included directories found matching 'tests/media/photos'
> writing manifest file 'django_imagekit.egg-info/SOURCES.txt'
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit/templates
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit/templates/imagekit
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit/templates/imagekit/admin
> copying imagekit/templates/imagekit/admin/thumbnail.html -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_django-imagekit/build/imagekit/templates/imagekit/admin
> I: pybuild base:217: /usr/bin/python3 setup.py build
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit
> copying imagekit/registry.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit
> copying imagekit/generatorlibrary.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit
> copying imagekit/lib.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit
> copying imagekit/pkgmeta.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit
> copying imagekit/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit
> copying imagekit/conf.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit
> copying imagekit/hashers.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit
> copying imagekit/compat.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit
> copying imagekit/admin.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit
> copying imagekit/exceptions.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit
> copying imagekit/signals.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit
> copying imagekit/utils.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit
> copying imagekit/files.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit/forms
> copying imagekit/forms/fields.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit/forms
> copying imagekit/forms/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit/forms
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit/models
> copying imagekit/models/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit/models
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit/processors
> copying imagekit/processors/resize.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit/processors
> copying imagekit/processors/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit/processors
> copying imagekit/processors/crop.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit/processors
> copying imagekit/processors/base.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit/processors
> copying imagekit/processors/utils.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit/processors
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit/specs
> copying imagekit/specs/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit/specs
> copying imagekit/specs/sourcegroups.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit/specs
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit/templatetags
> copying imagekit/templatetags/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit/templatetags
> copying imagekit/templatetags/imagekit.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit/templatetags
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit/cachefiles
> copying imagekit/cachefiles/backends.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit/cachefiles
> copying imagekit/cachefiles/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit/cachefiles
> copying imagekit/cachefiles/strategies.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit/cachefiles
> copying imagekit/cachefiles/namers.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit/cachefiles
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit/management
> copying imagekit/management/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit/management
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit/models/fields
> copying imagekit/models/fields/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit/models/fields
> copying imagekit/models/fields/utils.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit/models/fields
> copying imagekit/models/fields/files.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit/models/fields
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit/management/commands
> copying imagekit/management/commands/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit/management/commands
> copying imagekit/management/commands/generateimages.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit/management/commands
> running egg_info
> writing django_imagekit.egg-info/PKG-INFO
> writing dependency_links to django_imagekit.egg-info/dependency_links.txt
> writing requirements to django_imagekit.egg-info/requires.txt
> writing top-level names to django_imagekit.egg-info/top_level.txt
> reading manifest file 'django_imagekit.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> warning: no files found matching 'tests/assets/Lenna.png'
> warning: no files found matching 'tests/assets/lenna-*.jpg'
> warning: no files found matching 'tests/media/lenna.png'
> no previously-included directories found matching 'tests/media/CACHE'
> no previously-included directories found matching 'tests/media/b'
> no previously-included directories found matching 'tests/media/photos'
> writing manifest file 'django_imagekit.egg-info/SOURCES.txt'
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit/templates
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit/templates/imagekit
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit/templates/imagekit/admin
> copying imagekit/templates/imagekit/admin/thumbnail.html -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_django-imagekit/build/imagekit/templates/imagekit/admin
> PYTHONPATH=. sphinx-build -b html -d docs/.build/.doctrees -N docs docs/.build/html
> Running Sphinx v1.8.5
> making output directory...
> building [mo]: targets for 0 po files that are out of date
> building [html]: targets for 6 source files that are out of date
> updating environment: 6 added, 0 changed, 0 removed
> reading sources... [ 16%] _themes/README
> reading sources... [ 33%] advanced_usage
> reading sources... [ 50%] caching
> reading sources... [ 66%] configuration
> reading sources... [ 83%] index
> reading sources... [100%] upgrading
>
> /<<PKGBUILDDIR>>/docs/caching.rst:6: WARNING: Title underline too short.
>
> Default Backend Workflow
> ================
> README.rst:1: WARNING: Undefined substitution referenced: "Build Status".
> looking for now-outdated files... none found
> pickling environment... done
> checking consistency... /<<PKGBUILDDIR>>/docs/_themes/README.rst: WARNING: document isn't included in any toctree
> done
> preparing documents... done
> writing output... [ 16%] _themes/README
> writing output... [ 33%] advanced_usage
> writing output... [ 50%] caching
> writing output... [ 66%] configuration
> writing output... [ 83%] index
> writing output... [100%] upgrading
>
> generating indices... genindex
> writing additional pages... search
> copying static files... done
> copying extra files... done
> dumping search index in English (code: en) ... done
> dumping object inventory... done
> build succeeded, 3 warnings.
>
> The HTML pages are in docs/.build/html.
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
> dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:217: python3.8 setup.py test
> running test
> WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox.
> running egg_info
> writing django_imagekit.egg-info/PKG-INFO
> writing dependency_links to django_imagekit.egg-info/dependency_links.txt
> writing requirements to django_imagekit.egg-info/requires.txt
> writing top-level names to django_imagekit.egg-info/top_level.txt
> reading manifest file 'django_imagekit.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> warning: no files found matching 'tests/assets/Lenna.png'
> warning: no files found matching 'tests/assets/lenna-*.jpg'
> warning: no files found matching 'tests/media/lenna.png'
> no previously-included directories found matching 'tests/media/CACHE'
> no previously-included directories found matching 'tests/media/b'
> no previously-included directories found matching 'tests/media/photos'
> writing manifest file 'django_imagekit.egg-info/SOURCES.txt'
> running build_ext
> Creating test database for alias 'default'...
> ....E......../<<PKGBUILDDIR>>/tests/utils.py:67: UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("html.parser"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently.
>
> The code that caused this warning is on line 67 of the file /<<PKGBUILDDIR>>/tests/utils.py. To get rid of this warning, pass the additional argument 'features="html.parser"' to the BeautifulSoup constructor.
>
> return BeautifulSoup(render_tag(ttag)).img.attrs
> ........................
> ======================================================================
> ERROR: tests.test_cachefiles.test_no_source_error
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File "/usr/lib/python3/dist-packages/nose/case.py", line 197, in runTest
> self.test(*self.arg)
> File "/usr/lib/python3/dist-packages/nose/tools/nontrivial.py", line 60, in newfunc
> func(*arg, **kw)
> File "/<<PKGBUILDDIR>>/tests/test_cachefiles.py", line 49, in test_no_source_error
> file.generate()
> File "/<<PKGBUILDDIR>>/imagekit/cachefiles/__init__.py", line 94, in generate
> self.cachefile_backend.generate(self, force)
> File "/<<PKGBUILDDIR>>/imagekit/cachefiles/backends.py", line 109, in generate
> self.generate_now(file, force=force)
> File "/<<PKGBUILDDIR>>/imagekit/cachefiles/backends.py", line 94, in generate_now
> if force or self.get_state(file) not in (CacheFileState.GENERATING, CacheFileState.EXISTS):
> File "/<<PKGBUILDDIR>>/imagekit/cachefiles/backends.py", line 68, in get_state
> exists = self._exists(file)
> File "/<<PKGBUILDDIR>>/imagekit/cachefiles/backends.py", line 113, in _exists
> or file.storage.exists(file.name))
> File "/usr/lib/python3/dist-packages/django/core/files/storage.py", line 310, in exists
> return os.path.exists(self.path(name))
> File "/usr/lib/python3/dist-packages/django/core/files/storage.py", line 323, in path
> return safe_join(self.location, name)
> File "/usr/lib/python3/dist-packages/django/utils/_os.py", line 32, in safe_join
> final_path = abspath(join(base, *paths))
> File "/usr/lib/python3.8/posixpath.py", line 90, in join
> genericpath._check_arg_types('join', a, *p)
> File "/usr/lib/python3.8/genericpath.py", line 152, in _check_arg_types
> raise TypeError(f'{funcname}() argument must be str, bytes, or '
> TypeError: join() argument must be str, bytes, or os.PathLike object, not 'NoneType'
>
> ----------------------------------------------------------------------
> Ran 37 tests in 0.271s
>
> FAILED (errors=1)
> Destroying test database for alias 'default'...
> nosetests tests -s --cover-tests --cover-html --cover-package=imagekit --cover-html-dir=/<<PKGBUILDDIR>>/tests/cover --verbosity=1
> E: pybuild pybuild:341: test: plugin distutils failed with: exit code=1: python3.8 setup.py test
> dh_auto_test: error: pybuild --test -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/python-django-imagekit_4.0.2-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