Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#1556 closed defect (fixed)

[magic-removal - r2594] Error/Typo in "django/core/" causes " install app" to fail.

Reported by: pawel.sawicki@… Owned by: Adrian Holovaty
Component: Core (Other) Version:
Severity: normal Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description (last modified by Adrian Holovaty)


In the 2594th revision of "django/core/" there's an error (I suppose) which was introduced in r2567.

$ ./ install sampleapp
Traceback (most recent call last):
  File "./", line 17, in ?
  File "/usr/lib/python2.4/site-packages/django/core/", line 1184, in execute_manager
  File "/usr/lib/python2.4/site-packages/django/core/", line 1152, in execute_from_command_line
    output = action_mapping[action](mod)
  File "/usr/lib/python2.4/site-packages/django/core/", line 535, in install
    sys.stderr.write(style.ERROR("""Error: %s couldn't be installed. Possible reasons:
TypeError: cannot concatenate 'str' and 'instance' objects

It can be fixed by:

$ svn diff django/core/
Index: django/core/
--- django/core/   (revision 2594)
+++ django/core/   (working copy)
@@ -537,7 +537,7 @@
   * At least one of the database tables already exists.
   * The SQL was invalid.
 Hint: Look at the output of ' sqlall %s'. That's the SQL this command wasn't able to run.
-The full error: """ % (app_name, app_name)) + style.ERROR_OUTPUT(e) + '\n')
+The full error: """ % (app_name, app_name)) + str(style.ERROR_OUTPUT(e)) + '\n')

Though I don't know if it was the author's intention.

Change History (3)

comment:1 Changed 12 years ago by pawel.sawicki@…


The revision that introduces the error is the r2585.

BTW - sorry for the wrong formatting of the previous report.

comment:2 Changed 12 years ago by Adrian Holovaty

Description: modified (diff)

(Fixed formatting in description.)

comment:3 Changed 12 years ago by Adrian Holovaty

Resolution: fixed
Status: newclosed

(In [2596]) magic-removal: Fixed #1556 -- Fixed typo in from [2585]. Thanks, pawel.sawicki

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