[Openstack-devel] Building python-django-openstack-auth fails in sid

Thomas Goirand zigo at debian.org
Sun May 12 15:26:30 UTC 2013


Hi Gabriel,

When building python-django-openstack-auth in Debian sid, it fails with
the below log. I believe this is related to the fact that we now have
Django 1.5, and not 1.4 anymore. Unfortunately, we can't "ping" to a
specific version here, I need it to work even with version 1.5 of Django.

Is there any fix that you may have?

Cheers,

Thomas Goirand (zigo)

running build_ext
Traceback (most recent call last):
  File "setup.py", line 51, in <module>
    test_suite='openstack_auth.tests.run_tests.run'
  File "/usr/lib/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "/usr/lib/python2.7/dist-packages/setuptools/command/test.py",
line 138, in run
    self.with_project_on_sys_path(self.run_tests)
  File "/usr/lib/python2.7/dist-packages/setuptools/command/test.py",
line 118, in with_project_on_sys_path
    func()
  File "/usr/lib/python2.7/dist-packages/setuptools/command/test.py",
line 164, in run_tests
    testLoader = cks
  File "/usr/lib/python2.7/unittest/main.py", line 94, in __init__
    self.parseArgs(argv)
  File "/usr/lib/python2.7/unittest/main.py", line 149, in parseArgs
    self.createTests()
  File "/usr/lib/python2.7/unittest/main.py", line 158, in createTests
    self.module)
  File "/usr/lib/python2.7/unittest/loader.py", line 128, in
loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/usr/lib/python2.7/unittest/loader.py", line 91, in
loadTestsFromName
    module = __import__('.'.join(parts_copy))
  File
"/home/zigo/sources/openstack/grizzly/python-django-openstack-auth/build-area/python-django-openstack-auth-1.0.6/openstack_auth/tests/run_tests.py",
line 8, in <module>
    from django.test.simple import DjangoTestSuiteRunner
  File "/usr/lib/python2.7/dist-packages/django/test/__init__.py", line
5, in <module>
    from django.test.client import Client, RequestFactory
  File "/usr/lib/python2.7/dist-packages/django/test/client.py", line
21, in <module>
    from django.db import close_connection
  File "/usr/lib/python2.7/dist-packages/django/db/__init__.py", line
11, in <module>
    if settings.DATABASES and DEFAULT_DB_ALIAS not in settings.DATABASES:
  File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line
53, in __getattr__
    self._setup(name)
  File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line
48, in _setup
    self._wrapped = Settings(settings_module)
  File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py", line
152, in __init__
    raise ImproperlyConfigured("The SECRET_KEY setting must not be empty.")
django.core.exceptions.ImproperlyConfigured: The SECRET_KEY setting must
not be empty.



More information about the Openstack-devel mailing list