Opened 18 years ago

Closed 18 years ago

Last modified 18 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: dev
Severity: normal Keywords: syncdb
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

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 :

./manage.py 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 "./manage.py", line 11, in ?

execute_manager(settings)

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

execute_from_command_line(action_mapping, argv)

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

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

File "/usr/lib/python2.4/site-packages/django/core/management.py", 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 by anonymous, 18 years ago

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 by dev@…, 18 years ago

is it related to this?

comment:3 by matthew@…, 18 years ago

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 by Russell Keith-Magee, 18 years ago

Resolution: fixed
Status: newclosed

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

comment:5 by (none), 18 years ago

milestone: Version 1.0

Milestone Version 1.0 deleted

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