caep-unb / gestorpsi

Other
3 stars 9 forks source link

Problem with Python 2.7.11 #81

Open chocoelho opened 8 years ago

chocoelho commented 8 years ago

First of all, Kombu needs to be used in the default version in order to execute syncdb with Python 2.7.11, but there's a problem with south migrations in that:

Traceback (most recent call last):
  File "./manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/home/carlos/.virtualenvs/gestorpsi/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line
    utility.execute()
  File "/home/carlos/.virtualenvs/gestorpsi/local/lib/python2.7/site-packages/django/core/management/__init__.py", line 382, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/carlos/.virtualenvs/gestorpsi/local/lib/python2.7/site-packages/django/core/management/base.py", line 196, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/home/carlos/.virtualenvs/gestorpsi/local/lib/python2.7/site-packages/django/core/management/base.py", line 232, in execute
    output = self.handle(*args, **options)
  File "/home/carlos/.virtualenvs/gestorpsi/local/lib/python2.7/site-packages/django/core/management/base.py", line 371, in handle
    return self.handle_noargs(**options)
  File "/home/carlos/.virtualenvs/gestorpsi/local/lib/python2.7/site-packages/south/management/commands/syncdb.py", line 66, in handle_noargs
    migrations = migration.Migrations(app_label)
  File "/home/carlos/.virtualenvs/gestorpsi/local/lib/python2.7/site-packages/south/migration/base.py", line 61, in __call__
    self.instances[app_label] = super(MigrationsMetaclass, self).__call__(app_label_to_app_module(app_label), **kwds)
  File "/home/carlos/.virtualenvs/gestorpsi/local/lib/python2.7/site-packages/south/migration/base.py", line 89, in __init__
    self.set_application(application, force_creation, verbose_creation)
  File "/home/carlos/.virtualenvs/gestorpsi/local/lib/python2.7/site-packages/south/migration/base.py", line 153, in set_application
    module = importlib.import_module(self.migrations_module())
  File "/home/carlos/.virtualenvs/gestorpsi/local/lib/python2.7/site-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/home/carlos/.virtualenvs/gestorpsi/local/lib/python2.7/site-packages/kombu/transport/django/migrations/__init__.py", line 16, in <module>
    raise ImproperlyConfigured(SOUTH_ERROR_MESSAGE)
django.core.exceptions.ImproperlyConfigured: 
For South support, customize the SOUTH_MIGRATION_MODULES setting
to point to the correct migrations module:

    SOUTH_MIGRATION_MODULES = {
        'kombu_transport_django': 'kombu.transport.django.south_migrations',
    }