[Python-modules-team] Bug#755633: Fails to build with Django 1.7
Raphael Hertzog
hertzog at debian.org
Thu Aug 7 21:09:10 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»'
mkdir -p tmp-locales
localedef -i en_US -c -f UTF-8 tmp-locales/en_US.UTF-8
set -e; \
for python in python2.7; do \
for name in pil pgmagick imagemagick graphicsmagick; do \
LOCPATH=/«PKGBUILDDIR»/tmp-locales LC_ALL=en_US.UTF-8 PYTHONPATH=tests LOCAL_BUILD=1 $python tests/runtests.py --settings=settings.$
name ; \
done; \
done
Traceback (most recent call last):
File "tests/runtests.py", line 53, in <module>
settings_module=args.settings_module,
File "tests/runtests.py", line 19, in runtests
return test_runner.run_tests(settings.INSTALLED_APPS)
File "/usr/lib/python2.7/dist-packages/django/test/runner.py", line 146, in run_tests
suite = self.build_suite(test_labels, extra_tests)
File "/usr/lib/python2.7/dist-packages/django/test/runner.py", line 66, in build_suite
Running tests for 'settings.pil'
tests = self.test_loader.loadTestsFromName(label)
File "/usr/lib/python2.7/unittest/loader.py", line 91, in loadTestsFromName
module = __import__('.'.join(parts_copy))
File "/«PKGBUILDDIR»/tests/../sorl/thumbnail/__init__.py", line 1, in <module>
from sorl.thumbnail.fields import ImageField
File "/«PKGBUILDDIR»/tests/../sorl/thumbnail/__init__.py", line 1, in <module>
from sorl.thumbnail.fields import ImageField
File "/«PKGBUILDDIR»/tests/../sorl/thumbnail/fields.py", line 6, in <module>
from sorl.thumbnail import default
File "/«PKGBUILDDIR»/tests/../sorl/thumbnail/default.py", line 3, in <module>
from sorl.thumbnail.helpers import get_module_class
File "/«PKGBUILDDIR»/tests/../sorl/thumbnail/helpers.py", line 5, in <module>
from django.utils import simplejson
ImportError: cannot import name simplejson
make[1]: *** [override_dh_auto_test] Error 1
simplejson is now a standard Python import, Django dropped its embedded copy.
"import simplejson" will work with Python >= 2.7
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