#2872 closed defect (fixed)
syncdb gives "TypeError: not enough arguments for format string" following revisions 3887-3864
Reported by: | 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 , 18 years ago
Owner: | changed from | to
---|---|
priority: | normal → high |
Version: | → SVN |
comment:3 by , 18 years ago
priority: | high → 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 by , 18 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Sorry - my bad. Fixed in r3897. Apologies for the inconvenience (and the long turnaround on a trivial fix).
Assigning this to russellm since I think it is related to some of his changes (sorry if this is wrong, Russell).