[Python-modules-team] Bug#755592: Fails to build with Django 1.7
Raphael Hertzog
hertzog at debian.org
Thu Aug 7 19:51:51 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»'
django-admin startproject testproject
Using: Python 2.7
if [ -d testproject/testproject ]; then \
cp debian/settings.py testproject/testproject ; \
else \
cp debian/settings.py testproject ; \
fi
set -e; \
for python in python2.7; do \
rm -f testproject/test.db3 ; \
PYTHONPATH=".:testproject" $python testproject/manage.py syncdb --settings=testproject.settings --noinput ;\
PYTHONPATH=".:testproject" $python testproject/manage.py test --settings=testproject.settings django_countries ;\
done
Traceback (most recent call last):
File "testproject/manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
utility.execute()
File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 354, in execute
django.setup()
File "/usr/lib/python2.7/dist-packages/django/__init__.py", line 21, in setup
apps.populate(settings.INSTALLED_APPS)
File "/usr/lib/python2.7/dist-packages/django/apps/registry.py", line 85, in populate
app_config = AppConfig.create(entry)
File "/usr/lib/python2.7/dist-packages/django/apps/config.py", line 87, in create
module = import_module(entry)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/«PKGBUILDDIR»/django_countries/__init__.py", line 1, in <module>
from django_countries.fields import CountryField
File "/«PKGBUILDDIR»/django_countries/fields.py", line 2, in <module>
from django.utils.encoding import force_unicode, StrAndUnicode
ImportError: cannot import name StrAndUnicode
make[1]: *** [override_dh_auto_test] Error 1
Cheers,
--
Raphaël Hertzog ◈ Debian Developer
Discover the Debian Administrator's Handbook:
→ http://debian-handbook.info/get/
More information about the Python-modules-team
mailing list