Control: tag -1 + confirmed
The package fails to build with Django 1.7:
debian/rules override_dh_auto_test
make[1]: Entering directory '/«PKGBUILDDIR»'
set -e ; \
PYTHONPATH=/«PKGBUILDDIR»/oauth_provider \
python /«PKGBUILDDIR»/oauth_provider/runtests/runtests.py
Traceback (most recent call last):
File "/«PKGBUILDDIR»/oauth_provider/runtests/runtests.py", line 14, in
<module>
from south.management.commands import patch_for_test_db_setup
File
"/usr/lib/python2.7/dist-packages/south/management/commands/__init__.py", line
10, in <module>
import django.template.loaders.app_directories
File
"/usr/lib/python2.7/dist-packages/django/template/loaders/app_directories.py",
line 33, in <module>
app_template_dirs = calculate_app_template_dirs()
File
"/usr/lib/python2.7/dist-packages/django/template/loaders/app_directories.py",
line 21, in calculate_app_template_dirs
for app_config in apps.get_app_configs():
File "/usr/lib/python2.7/dist-packages/django/apps/registry.py", line 137, in
get_app_configs
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
You need to add this at the top of your test script to go past this error:
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/
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]