[Reproducible-builds] Bug#804424: django-localflavor: FTBFS: ImproperlyConfigured: Requested setting USE_I18N, but settings are not configured.

Chris Lamb lamby at debian.org
Sun Nov 8 11:50:13 UTC 2015


Source: django-localflavor
Version: 1.1-1
Severity: serious
Justification: fails to build from source
User: reproducible-builds at lists.alioth.debian.org
Usertags: ftbfs
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org

Dear Maintainer,

django-localflavor fails to build from source in unstable/amd64:

  [..]

  ======================================================================
  ERROR: test_ZAProvinceSelect (tests.test_za.ZALocalFlavorTests)
  ----------------------------------------------------------------------
  Traceback (most recent call last):
    File "tests/test_za.py", line 46, in test_ZAProvinceSelect
      self.assertHTMLEqual(f.render('province', 'EC'), out)
    File "/usr/lib/python2.7/dist-packages/django/forms/widgets.py",
    line 513, in render
      options = self.render_options(choices, [value])
    File "/usr/lib/python2.7/dist-packages/django/forms/widgets.py",
    line 546, in render_options
      output.append(self.render_option(selected_choices, option_value,
      option_label))
    File "/usr/lib/python2.7/dist-packages/django/forms/widgets.py",
    line 533, in render_option
      force_text(option_label))
    File "/usr/lib/python2.7/dist-packages/django/utils/encoding.py",
    line 94, in force_text
      s = six.text_type(bytes(s), encoding, errors)
    File "/usr/lib/python2.7/dist-packages/django/utils/functional.py",
    line 143, in __bytes_cast
      return bytes(func(*self.__args, **self.__kw))
    File
    "/usr/lib/python2.7/dist-packages/django/utils/translation/__init__.py",
    line 76, in gettext
      return _trans.gettext(message)
    File
    "/usr/lib/python2.7/dist-packages/django/utils/translation/__init__.py",
    line 56, in __getattr__
      if settings.USE_I18N:
    File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py",
    line 48, in __getattr__
      self._setup(name)
    File "/usr/lib/python2.7/dist-packages/django/conf/__init__.py",
    line 42, in _setup
      % (desc, ENVIRONMENT_VARIABLE))
  ImproperlyConfigured: Requested setting USE_I18N, but settings are not
  configured. You must either define the environment variable
  DJANGO_SETTINGS_MODULE or call settings.configure() before accessing
  settings.
  
  ----------------------------------------------------------------------
  Ran 207 tests in 0.783s
  
  FAILED (errors=175)
  E: pybuild pybuild:274: test: plugin distutils failed with: exit
  code=1: cd /build/django-localflavor-1.1/.pybuild/pythonX.Y_2.7/build;
  python2.7 -m unittest discover -v 
  dh_auto_test: pybuild --test -i python{version} -p 2.7 --dir .
  returned exit code 13
  debian/rules:5: recipe for target 'build' failed
  make: *** [build] Error 25
  dpkg-buildpackage: error: debian/rules build gave error exit status 2

  [..]

The full build log is attached or can be viewed here:

    https://reproducible.debian.net/logs/unstable/amd64/django-localflavor_1.1-1.build1.log.gz


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: django-localflavor.1.1-1.unstable.amd64.log.txt.gz
Type: application/gzip
Size: 34337 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20151108/16fd800f/attachment.bin>


More information about the Reproducible-builds mailing list