[Python-modules-team] Bug#808646: django-auth-ldap: FTBFS: ImportError: cannot import name unittest

Chris West (Faux) solo-debianbugs at goeswhere.com
Mon Dec 21 16:33:08 UTC 2015


Source: django-auth-ldap
Version: 1.2.6+dfsg-1
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:

for python in python2.7; do \
  PYTHONPATH=".:test" $python test/manage.py test django_auth_ldap; \
done
E
======================================================================
ERROR: django_auth_ldap.tests (unittest.loader.ModuleImportFailure)
----------------------------------------------------------------------
ImportError: Failed to import test module: django_auth_ldap.tests
Traceback (most recent call last):
  File "/usr/lib/python2.7/unittest/loader.py", line 254, in _find_tests
    module = self._get_module_from_name(name)
  File "/usr/lib/python2.7/unittest/loader.py", line 232, in _get_module_from_name
    __import__(name)
  File "/django-auth-ldap-1.2.6+dfsg/django_auth_ldap/tests.py", line 48, in <module>
    from django.utils import unittest
ImportError: cannot import name unittest


----------------------------------------------------------------------
Ran 1 test in 0.000s

FAILED (errors=1)
Creating test database for alias 'default'...
Destroying test database for alias 'default'...

Full build log:
https://reproducible.debian.net/rb-pkg/unstable/amd64/django-auth-ldap.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