Opened 12 years ago

Closed 12 years ago

Last modified 11 years ago

#2872 closed defect (fixed)

syncdb gives "TypeError: not enough arguments for format string" following revisions 3887-3864

Reported by: matthew@… Owned by: Russell Keith-Magee
Component: Core (Other) Version: master
Severity: normal Keywords: syncdb
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:


A recent revision (probably in range 3887-3864) appears to have broken syncdb when there is initial SQL data to load. He's some sample output :

./ syncdb
Creating table auth_message


You just installed Django's auth system, which means you don't have any superusers defined.
Would you like to create one now? (yes/no): no
Traceback (most recent call last):

File "./", line 11, in ?


File "/usr/lib/python2.4/site-packages/django/core/", line 1439, in execute_manager

execute_from_command_line(action_mapping, argv)

File "/usr/lib/python2.4/site-packages/django/core/", line 1347, in execute_from_command_line

action_mapping[action](int(options.verbosity), options.interactive)

File "/usr/lib/python2.4/site-packages/django/core/", line 514, in syncdb

print "Installing initial data for %s.%s model" % model._meta.object_name

TypeError: not enough arguments for format string

Change History (5)

comment:1 Changed 12 years ago by anonymous

Owner: changed from Adrian Holovaty to Russell Keith-Magee
priority: normalhigh
Version: SVN

Assigning this to russellm since I think it is related to some of his changes (sorry if this is wrong, Russell).

comment:2 Changed 12 years ago by dev@…

is it related to this?

comment:3 Changed 12 years ago by matthew@…

priority: highnormal

No, it's not related to that thread. I had the problem with postgreSQL (not SQLite), the data did not have embedded % characters, and it had run ok prior to me doing an svn update.
I'm dropping the priority back to normal, since it's possible to load the tables manually.

comment:4 Changed 12 years ago by Russell Keith-Magee

Resolution: fixed
Status: newclosed

Sorry - my bad. Fixed in r3897. Apologies for the inconvenience (and the long turnaround on a trivial fix).

comment:5 Changed 11 years ago by (none)

milestone: Version 1.0

Milestone Version 1.0 deleted

Note: See TracTickets for help on using tickets.
Back to Top