#23322: CircularDependencyError in migrations
-----------------------------+---------------------------------------------
     Reporter:  gabejackson  |      Owner:  nobody
         Type:  Bug          |     Status:  new
    Component:  Migrations   |    Version:  1.7-rc-2
     Severity:  Release      |   Keywords:  migrations, circular dependency
  blocker                    |  Has patch:  0
 Triage Stage:  Unreviewed   |      UI/UX:  0
Easy pickings:  0            |
-----------------------------+---------------------------------------------
 django.db.migrations.graph.CircularDependencyError

 Test Project is located here: https://github.com/gabejackson/django-
 migration-test/tree/circ_dep_1

 Steps to reproduce:
 Install stable/1.7.x branch in venv
 ./manage.py makemigrations
 ... [OK]
 ./manage.py migrate

 {{{
 Traceback (most recent call last):
   File "./manage.py", line 10, in <module>
     execute_from_command_line(sys.argv)
   File
 
"/Users/gabejackson/venv/django-1.7/src/django/django/core/management/__init__.py",
 line 385, in execute_from_command_line
     utility.execute()
   File
 
"/Users/gabejackson/venv/django-1.7/src/django/django/core/management/__init__.py",
 line 377, in execute
     self.fetch_command(subcommand).run_from_argv(self.argv)
   File
 "/Users/gabejackson/venv/django-1.7/src/django/django/core/management/base.py",
 line 288, in run_from_argv
     self.execute(*args, **options.__dict__)
   File
 "/Users/gabejackson/venv/django-1.7/src/django/django/core/management/base.py",
 line 338, in execute
     output = self.handle(*args, **options)
   File
 
"/Users/gabejackson/venv/django-1.7/src/django/django/core/management/commands/migrate.py",
 line 106, in handle
     plan = executor.migration_plan(targets)
   File
 
"/Users/gabejackson/venv/django-1.7/src/django/django/db/migrations/executor.py",
 line 49, in migration_plan
     for migration in self.loader.graph.forwards_plan(target):
   File
 "/Users/gabejackson/venv/django-1.7/src/django/django/db/migrations/graph.py",
 line 55, in forwards_plan
     return self.dfs(node, lambda x: self.dependencies.get(x, set()))
   File
 "/Users/gabejackson/venv/django-1.7/src/django/django/db/migrations/graph.py",
 line 121, in dfs
     return _dfs(start, get_children, [])
   File
 "/Users/gabejackson/venv/django-1.7/src/django/django/db/migrations/graph.py",
 line 113, in _dfs
     results = _dfs(n, get_children, path) + results
   File
 "/Users/gabejackson/venv/django-1.7/src/django/django/db/migrations/graph.py",
 line 113, in _dfs
     results = _dfs(n, get_children, path) + results
   File
 "/Users/gabejackson/venv/django-1.7/src/django/django/db/migrations/graph.py",
 line 113, in _dfs
     results = _dfs(n, get_children, path) + results
   File
 "/Users/gabejackson/venv/django-1.7/src/django/django/db/migrations/graph.py",
 line 113, in _dfs
     results = _dfs(n, get_children, path) + results
   File
 "/Users/gabejackson/venv/django-1.7/src/django/django/db/migrations/graph.py",
 line 105, in _dfs
     raise CircularDependencyError(path[path.index(start):] + [start])
 django.db.migrations.graph.CircularDependencyError: [(u'a',
 u'0001_initial'), ('c', u'0001_initial'), (u'b', u'0001_initial'), (u'a',
 u'0001_initial')]
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/23322>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/054.33246272d6fe38f58bc9b6b3ca03ef31%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to