Opened 10 years ago

Closed 10 years ago

#7910 closed (fixed)

missing import in compilemessages

Reported by: yml Owned by: nobody
Component: Internationalization Version: master
Severity: Keywords: i18n, compilemessages
Cc: Triage Stage: Ready for checkin
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description (last modified by Ramiro Morales)

To put it in a nutshell someone should add :
from import CommandError
At the top of the file called ""

Traceback :

django-survey\examples> compilemessages  --setings="examples.settings"
Usage: C:\yml\_myScript_\dj_things\web_development\svn_views\external_libs\django\bin\ compilemessages [options]

Compiles .po files to .mo files for use with builtin gettext support.

C:\yml\_myScript_\dj_things\web_development\svn_views\external_libs\django\bin\ error: no such option: --setings

C:\yml\_myScript_\dj_things\web_development\django-survey\examples> compilemessages  --settings="examples.settings"
Traceback (most recent call last):
  File "C:\yml\_myScript_\dj_things\web_development\svn_views\external_libs\django\bin\", line 5, in <module>
  File "C:\yml\_myScript_\dj_things\web_development\svn_views\external_libs\django\core\management\", line 292, in execute_from_command_line
  File "C:\yml\_myScript_\dj_things\web_development\svn_viewsexternal_libs\django\core\management\", line 248, in execute
  File "C:\yml\_myScript_\dj_things\web_development\svn_viewsexternal_libs\django\core\management\", line 77, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "C:\yml\_myScript_\dj_things\web_development\svn_viewsexternal_libs\django\core\management\", line 91, in execute
    output = self.handle(*args, **options)
  File "C:\yml\_myScript_\dj_things\web_development\svn_viewsexternal_libs\django\core\management\commands\", line 58, in handle
  File "C:\yml\_myScript_\dj_things\web_development\svn_views\external_libs\django\core\management\commands\", line 22, in compile_messages
    raise CommandError("This script should be run from the Django SVN tree or your project or app tree, or with the settings module specified.")
NameError: global name 'CommandError' is not defined

Attachments (1)

7910.patch (471 bytes) - added by Matthias Kestenholz 10 years ago.

Download all attachments as: .zip

Change History (4)

comment:1 Changed 10 years ago by Ramiro Morales

Description: modified (diff)

Changed 10 years ago by Matthias Kestenholz

Attachment: 7910.patch added

comment:2 Changed 10 years ago by Matthias Kestenholz

Has patch: set
Triage Stage: UnreviewedReady for checkin

comment:3 Changed 10 years ago by Malcolm Tredinnick

Resolution: fixed
Status: newclosed

(In [8079]) Fix #7910 -- Added a missing import used when " compilemessages"
is run from a bad root directory.

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