Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#2872 closed defect (fixed)

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

Reported by: matthew@… Owned by: russellm
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:

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 Changed 8 years ago by anonymous

  • Owner changed from adrian to russellm
  • priority changed from normal to high
  • Version set to 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 8 years ago by dev@…

is it related to this?

comment:3 Changed 8 years ago by matthew@…

  • priority changed from high to normal

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 8 years ago by russellm

  • Resolution set to fixed
  • Status changed from new to closed

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

comment:5 Changed 8 years ago by anonymous

  • milestone Version 1.0 deleted

Milestone Version 1.0 deleted

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