Skip to content

Instantly share code, notes, and snippets.

@pydanny
Created July 31, 2013 14:03
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pydanny/6122251 to your computer and use it in GitHub Desktop.
Save pydanny/6122251 to your computer and use it in GitHub Desktop.
South 0.8.1, Django 1.6b2, Python 3.3.2. Occurs in PostgreSQL and SQLite3
Running migrations for socialaccount:
- Migrating forwards to 0011_auto__chg_field_socialtoken_token.
> socialaccount:0001_initial
Traceback (most recent call last):
File "manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
File "/Users/danielgreenfeld/.envs/cheesely_project/lib/python3.3/site-packages/django/core/management/__init__.py", line 397, in execute_from_command_line
utility.execute()
File "/Users/danielgreenfeld/.envs/cheesely_project/lib/python3.3/site-packages/django/core/management/__init__.py", line 390, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/Users/danielgreenfeld/.envs/cheesely_project/lib/python3.3/site-packages/django/core/management/base.py", line 240, in run_from_argv
self.execute(*args, **options.__dict__)
File "/Users/danielgreenfeld/.envs/cheesely_project/lib/python3.3/site-packages/django/core/management/base.py", line 283, in execute
output = self.handle(*args, **options)
File "/Users/danielgreenfeld/.envs/cheesely_project/lib/python3.3/site-packages/south/management/commands/migrate.py", line 111, in handle
ignore_ghosts = ignore_ghosts,
File "/Users/danielgreenfeld/.envs/cheesely_project/lib/python3.3/site-packages/south/migration/__init__.py", line 220, in migrate_app
success = migrator.migrate_many(target, workplan, database)
File "/Users/danielgreenfeld/.envs/cheesely_project/lib/python3.3/site-packages/south/migration/migrators.py", line 232, in migrate_many
result = migrator.__class__.migrate_many(migrator, target, migrations, database)
File "/Users/danielgreenfeld/.envs/cheesely_project/lib/python3.3/site-packages/south/migration/migrators.py", line 307, in migrate_many
result = self.migrate(migration, database)
File "/Users/danielgreenfeld/.envs/cheesely_project/lib/python3.3/site-packages/south/migration/migrators.py", line 132, in migrate
result = self.run(migration, database)
File "/Users/danielgreenfeld/.envs/cheesely_project/lib/python3.3/site-packages/south/migration/migrators.py", line 108, in run
south.db.db.current_orm = self.orm(migration)
File "/Users/danielgreenfeld/.envs/cheesely_project/lib/python3.3/site-packages/south/migration/migrators.py", line 257, in orm
return migration.orm()
File "/Users/danielgreenfeld/.envs/cheesely_project/lib/python3.3/site-packages/south/utils/__init__.py", line 62, in method
value = function(self)
File "/Users/danielgreenfeld/.envs/cheesely_project/lib/python3.3/site-packages/south/migration/base.py", line 432, in orm
return FakeORM(self.migration_class(), self.app_label())
File "/Users/danielgreenfeld/.envs/cheesely_project/lib/python3.3/site-packages/south/orm.py", line 48, in FakeORM
_orm_cache[args] = _FakeORM(*args)
File "/Users/danielgreenfeld/.envs/cheesely_project/lib/python3.3/site-packages/south/orm.py", line 127, in __init__
self.models[name] = self.make_model(app_label, model_name, data)
File "/Users/danielgreenfeld/.envs/cheesely_project/lib/python3.3/site-packages/south/orm.py", line 284, in make_model
meta = self.make_meta(app, name, data['Meta'], data.get("_stub", False))
File "/Users/danielgreenfeld/.envs/cheesely_project/lib/python3.3/site-packages/south/orm.py", line 253, in make_meta
results[key] = self.eval_in_context(code, app)
File "/Users/danielgreenfeld/.envs/cheesely_project/lib/python3.3/site-packages/south/orm.py", line 187, in eval_in_context
for key, value in fake_locals.items():
RuntimeError: dictionary changed size during iteration
@pydanny
Copy link
Author

pydanny commented Jul 31, 2013

Dirty fix:

  1. Comment out South
  2. syncdb
  3. python manage.py migrate allauth.socialaccount --fake

@skyl
Copy link

skyl commented Oct 18, 2013

Django 1.6b4 - South 0.8.2 - Oracle - djcelery

AttributeError: 'DatabaseOperations' object has no attribute '_get_sequence_name'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment