[Python-modules-team] Bug#809568: django-celery: FTBFS: ImportError: cannot import name get_cache

Chris West (Faux) solo-debianbugs at goeswhere.com
Fri Jan 1 15:52:16 UTC 2016


Source: django-celery
Version: 3.1.17-2
Severity: serious
Justification: fails to build from source
Tags: sid stretch
User: reproducible-builds at lists.alioth.debian.org
Usertags: ftbfs
X-Debbugs-CC: reproducible-builds at lists.alioth.debian.org

Dear Maintainer,

The package fails to build:

django-celery-3.1.17/docs/changelog.rst:117: WARNING: Inline interpreted text or phrase reference start-string without end-string.
/django-celery-3.1.17/docs/reference/djcelery.backends.cache.rst:9: WARNING: autodoc: failed to import module u'djcelery.backends.cache'; the following exception was raised:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/sphinx/ext/autodoc.py", line 385, in import_object
    __import__(self.modname)
  File "/django-celery-3.1.17/djcelery/backends/cache.py", line 8, in <module>
    from django.core.cache import cache, get_cache
ImportError: cannot import name get_cache
/django-celery-3.1.17/docs/reference/djcelery.backends.database.rst:9: WARNING: autodoc: failed to import module u'djcelery.backends.database'; the following exception was raised:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/sphinx/ext/autodoc.py", line 385, in import_object
    __import__(self.modname)
  File "/django-celery-3.1.17/djcelery/backends/database.py", line 7, in <module>
    from ..models import TaskMeta, TaskSetMeta
  File "/django-celery-3.1.17/djcelery/models.py", line 30, in <module>
    class TaskMeta(models.Model):
  File "/usr/lib/python2.7/dist-packages/django/db/models/base.py", line 94, in __new__
    app_config = apps.get_containing_app_config(module)
  File "/usr/lib/python2.7/dist-packages/django/apps/registry.py", line 239, in get_containing_app_config
    self.check_apps_ready()
  File "/usr/lib/python2.7/dist-packages/django/apps/registry.py", line 124, in check_apps_ready
    raise AppRegistryNotReady("Apps aren't loaded yet.")
AppRegistryNotReady: Apps aren't loaded yet.



...




======================================================================
ERROR: test_discovery_with_broken (djcelery.tests.test_discovery.TestDiscovery)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/django-celery-3.1.17/tests/../djcelery/tests/test_discovery.py", line 44, in test_discovery_with_broken
    autodiscover()
  File "/django-celery-3.1.17/tests/../djcelery/loaders.py", line 184, in autodiscover
    for app in apps.get_app_configs()])
  File "/django-celery-3.1.17/tests/../djcelery/loaders.py", line 209, in find_related_module
    return importlib.import_module('{0}.{1}'.format(app, related_name))
  File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
    __import__(name)
  File "/django-celery-3.1.17/tests/someapp/tasks.py", line 3, in <module>
    from django.db.models import get_model
ImportError: cannot import name get_model

======================================================================
ERROR: Failure: ImportError (cannot import name get_model)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/loader.py", line 420, in loadTestsFromName
    addr.filename, addr.module)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 47, in importFromPath
    return self.importFromDir(dir_path, fqname)
  File "/usr/lib/python2.7/dist-packages/nose/importer.py", line 94, in importFromDir
    mod = load_module(part_fqname, fh, filename, desc)
  File "/django-celery-3.1.17/tests/someapp/tests.py", line 6, in <module>
    from someapp.tasks import SomeModelTask
  File "/django-celery-3.1.17/tests/someapp/tasks.py", line 3, in <module>
    from django.db.models import get_model
ImportError: cannot import name get_model

----------------------------------------------------------------------
Ran 57 tests in 0.555s

FAILED (errors=4)
nosetests /django-celery-3.1.17/tests/../djcelery/tests  --verbosity=1
Creating test database for alias 'default'...
Destroying test database for alias 'default'...
E: pybuild pybuild:274: test: plugin custom failed with: exit code=1: python2.7 setup.py test
dh_auto_test: pybuild --test -i python{version} -p 2.7 --system=custom --test-args={interpreter} setup.py test --dir . returned exit code 13

Full build log:
https://reproducible.debian.net/rb-pkg/unstable/amd64/django-celery.html

-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)



More information about the Python-modules-team mailing list