[PKG-Openstack-devel] Bug#755646: Fails to build with Django 1.7
Raphael Hertzog
hertzog at debian.org
Thu Aug 7 21:34:46 UTC 2014
Control: tag -1 + confirmed
The package fails to build with Django 1.7:
debian/rules override_dh_auto_test
make[1]: Entering directory '/«PKGBUILDDIR»'
pyversions: missing X(S)-Python-Version in control file, fall back to debian/pyversions
pyversions: missing debian/pyversions file, fall back to supported versions
py3versions: no X-Python3-Version in control file, using supported versions
pyversions: missing X(S)-Python-Version in control file, fall back to debian/pyversions
pyversions: missing debian/pyversions file, fall back to supported versions
set -e && for pyversion in python2.7; do \
NOSE_WITH_OPENSTACK=1 \
NOSE_OPENSTACK_COLOR=1 \
NOSE_OPENSTACK_RED=0.05 \
NOSE_OPENSTACK_YELLOW=0.025 \
NOSE_OPENSTACK_SHOW_ELAPSED=1 \
PYTHONPATH=. $pyversion openstack_auth/tests/run_tests.py ; \
done
Traceback (most recent call last):
File "openstack_auth/tests/run_tests.py", line 39, in <module>
run(*sys.argv[1:])
File "openstack_auth/tests/run_tests.py", line 34, in run
failures = test_simple.DjangoTestSuiteRunner().run_tests(test_args)
File "/usr/lib/python2.7/dist-packages/django/test/runner.py", line 146, in run_tests
suite = self.build_suite(test_labels, extra_tests)
File "/usr/lib/python2.7/dist-packages/django/test/simple.py", line 241, in build_suite
app_config = apps.get_app_config(label)
File "/usr/lib/python2.7/dist-packages/django/apps/registry.py", line 146, in get_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.")
django.core.exceptions.AppRegistryNotReady: Apps aren't loaded yet.
make[1]: *** [override_dh_auto_test] Error 1
To get past this error you need to add this to your test script:
import django
if hasattr(django, 'setup'):
django.setup()
Cheers,
--
Raphaël Hertzog ◈ Debian Developer
Discover the Debian Administrator's Handbook:
→ http://debian-handbook.info/get/
More information about the Openstack-devel
mailing list