[Python-modules-team] Bug#818734: sorl-thumbnail: FTBFS: missing build-dependency on pytest et al.

Steve Langasek steve.langasek at canonical.com
Sun Mar 20 08:43:21 UTC 2016


Source: sorl-thumbnail
Version: 12.3-1
Severity: serious

The sorl-thumbnail package in the archive is not buildable in a current
clean sid chroot due to undeclared build-dependencies.  The build fails
with:

  for python in python2.7; do \
    for name in pil pgmagick imagemagick graphicsmagick; do \
  	LOCPATH=/«PKGBUILDDIR»/tmp-locales LC_ALL=en_US.UTF-8 PYTHONPATH=. LOCAL_BUILD=1 DJANGO_SETTINGS_MODULE=tests.settings.$name $python -m pytest ; \
    done; \
  done
  /usr/bin/python2.7: No module named pytest
  debian/rules:22: recipe for target 'override_dh_auto_test' failed

If you install python-pytest, the package then fails with other errors:

==================================== ERRORS ====================================
____ ERROR collecting tests/thumbnail_tests/test_alternative_resolutions.py ____
tests/thumbnail_tests/test_alternative_resolutions.py:11: in <module>
    from .utils import BaseStorageTestCase
tests/thumbnail_tests/utils.py:18: in <module>
    from .models import Item
tests/thumbnail_tests/models.py:6: in <module>
    class Item(models.Model):
/usr/lib/python2.7/dist-packages/django/db/models/base.py:94: in __new__
    app_config = apps.get_containing_app_config(module)
/usr/lib/python2.7/dist-packages/django/apps/registry.py:239: in get_containing_app_config
    self.check_apps_ready()
/usr/lib/python2.7/dist-packages/django/apps/registry.py:124: in check_apps_ready
    raise AppRegistryNotReady("Apps aren't loaded yet.")
E   AppRegistryNotReady: Apps aren't loaded yet.

I don't know if the latter failure is a missing build-dependency on
something else, or an incompatibility with current django.

-- 
Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
Ubuntu Developer                                    http://www.debian.org/
slangasek at ubuntu.com                                     vorlon at debian.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20160320/4c4f8547/attachment-0001.sig>


More information about the Python-modules-team mailing list