[Python-modules-team] Bug#755665: Fails to build with Django 1.7

Raphael Hertzog hertzog at debian.org
Thu Aug 7 20:10:34 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»'
set -e; \
for python in python2.7; do \
  PYTHON=$python ./runtests.sh; \
done
PASS: normal settings
PASS: normal settings (--help)
FAIL: with south in installed apps
Traceback (most recent call last):
  File "/usr/bin/django-admin", line 27, in <module>
    management.execute_from_command_line()
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 385, in execute_from_command_line
Using: Python 2.7
    utility.execute()
  File "/usr/lib/python2.7/dist-packages/django/core/management/__init__.py", line 377, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/usr/lib/python2.7/dist-packages/django/core/management/commands/test.py", line 50, in run_from_argv
    super(Command, self).run_from_argv(argv)
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 288, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/lib/python2.7/dist-packages/django/core/management/commands/test.py", line 71, in execute
    super(Command, self).execute(*args, **options)
  File "/usr/lib/python2.7/dist-packages/django/core/management/base.py", line 337, in execute
    output = self.handle(*args, **options)
  File "/usr/lib/python2.7/dist-packages/south/management/commands/test.py", line 7, in handle
    patch_for_test_db_setup()
  File "/usr/lib/python2.7/dist-packages/south/management/commands/__init__.py", line 34, in patch_for_test_db_setup
    management._commands['syncdb'] = MigrateAndSyncCommand()
AttributeError: 'module' object has no attribute '_commands'
make[1]: *** [override_dh_auto_test] Error 1

This is normal. South cannot be used with Django 1.7, Django supports migrations natively now.
You should skip this check with Django 1.7 and see if there's anything to fix to make it work
with native Django migrations.


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