[Django] #25956: Unexpected fake_initial keyword thrown on migration

1 view
Skip to first unread message

Django

unread,
Dec 21, 2015, 5:24:27 AM12/21/15
to django-...@googlegroups.com
#25956: Unexpected fake_initial keyword thrown on migration
----------------------------+--------------------
Reporter: yuvadm | Owner: nobody
Type: Bug | Status: new
Component: Migrations | Version: 1.8
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
----------------------------+--------------------
We've recently migrated a Django 1.7 project to 1.8.7. When running
migrations we get the following error:

{{{
Running migrations:
Traceback (most recent call last):
File "manage.py", line 11, in <module>
execute_from_command_line(sys.argv)
File "/opt/python/run/venv/local/lib/python2.7/site-
packages/django/core/management/__init__.py", line 354, in
execute_from_command_line
utility.execute()
File "/opt/python/run/venv/local/lib/python2.7/site-
packages/django/core/management/__init__.py", line 346, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/opt/python/run/venv/local/lib/python2.7/site-
packages/django/core/management/base.py", line 394, in run_from_argv
self.execute(*args, **cmd_options)
File "/opt/python/run/venv/local/lib/python2.7/site-
packages/django/core/management/base.py", line 445, in execute
output = self.handle(*args, **options)
File "/opt/python/run/venv/local/lib/python2.7/site-
packages/django/core/management/commands/migrate.py", line 222, in handle
executor.migrate(targets, plan, fake=fake, fake_initial=fake_initial)
TypeError: migrate() got an unexpected keyword argument 'fake_initial'
}}}

This happens even on a clean DB. We tried disabling all third party apps,
as well as all our internal apps, and no dice. The weird thing is this
happens only with DEBUG=False, while running migrate with DEBUG=True
succeeds.

There doesn't seem to be any mention of this traceback up until now
anywhere not in the tickets and not even when googling this error. How can
we further debug this problem?

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

Django

unread,
Dec 21, 2015, 6:39:30 AM12/21/15
to django-...@googlegroups.com
#25956: Unexpected fake_initial keyword thrown on migration
----------------------------+--------------------------------------
Reporter: yuvadm | Owner: nobody
Type: Bug | Status: closed
Component: Migrations | Version: 1.8
Severity: Normal | Resolution: needsinfo
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
----------------------------+--------------------------------------
Changes (by timgraham):

* status: new => closed
* needs_better_patch: => 0
* resolution: => needsinfo
* needs_tests: => 0
* needs_docs: => 0


Comment:

You can provide a sample project to reproduce the error and/or see
TicketClosingReasons/UseSupportChannels. Thanks!

--
Ticket URL: <https://code.djangoproject.com/ticket/25956#comment:1>

Django

unread,
Dec 21, 2015, 6:51:53 AM12/21/15
to django-...@googlegroups.com
#25956: Unexpected fake_initial keyword thrown on migration
----------------------------+--------------------------------------
Reporter: yuvadm | Owner: nobody
Type: Bug | Status: closed
Component: Migrations | Version: 1.8
Severity: Normal | Resolution: needsinfo
Keywords: | Triage Stage: Unreviewed

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
----------------------------+--------------------------------------

Comment (by yuvadm):

It'll be very hard to provide a repro sample since this is a very large
project with many different migrations.

Even if this isn't a Django bug, the traceback in this case should be more
descriptive. As of now I have no idea how to further debug other than
temporarily running with DEBUG=True on production as a workaround.

--
Ticket URL: <https://code.djangoproject.com/ticket/25956#comment:2>

Django

unread,
Dec 21, 2015, 6:58:10 AM12/21/15
to django-...@googlegroups.com
#25956: Unexpected fake_initial keyword thrown on migration
----------------------------+--------------------------------------
Reporter: yuvadm | Owner: nobody
Type: Bug | Status: closed
Component: Migrations | Version: 1.8
Severity: Normal | Resolution: needsinfo
Keywords: | Triage Stage: Unreviewed

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
----------------------------+--------------------------------------

Comment (by yuvadm):

We got a hint from a fellow Django core dev (thanks Shai!) that this might
be related to stale *.pyc files hanging around. Initial test show that
this indeed might be the problem.

--
Ticket URL: <https://code.djangoproject.com/ticket/25956#comment:3>

Django

unread,
Dec 21, 2015, 7:09:46 AM12/21/15
to django-...@googlegroups.com
#25956: Unexpected fake_initial keyword thrown on migration
----------------------------+--------------------------------------
Reporter: yuvadm | Owner: nobody
Type: Bug | Status: closed
Component: Migrations | Version: 1.8
Severity: Normal | Resolution: invalid
Keywords: | Triage Stage: Unreviewed

Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0

Easy pickings: 0 | UI/UX: 0
----------------------------+--------------------------------------
Changes (by timgraham):

* resolution: needsinfo => invalid


--
Ticket URL: <https://code.djangoproject.com/ticket/25956#comment:4>

Reply all
Reply to author
Forward
0 new messages