NameError: global name '_' not found in most bins
Bug #694844 reported by
clayg
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Object Storage (swift) |
Fix Released
|
Low
|
clayg |
Bug Description
$ swift-proxy-server
Usage: swift-proxy-server CONFIG [options]
Traceback (most recent call last):
File "/usr/local/
execfile(
File "/home/
conf_file, options = parse_options()
File "/home/
print _("Error: missing config file argument")
NameError: global name '_' is not defined
Related branches
lp:~clay-gerrard/swift/i18n_import
- gholt (community): Approve
-
Diff: 312 lines (+6/-31)17 files modifiedbin/st (+0/-2)
bin/swift-account-audit (+0/-2)
bin/swift-auth-add-user (+0/-2)
bin/swift-auth-recreate-accounts (+0/-2)
bin/swift-auth-update-reseller-prefixes (+0/-2)
bin/swift-bench (+0/-2)
bin/swift-drive-audit (+0/-2)
bin/swift-get-nodes (+0/-3)
bin/swift-log-uploader (+0/-2)
bin/swift-object-info (+0/-2)
bin/swift-ring-builder (+0/-2)
bin/swift-stats-populate (+0/-2)
bin/swift-stats-report (+0/-2)
swift/__init__.py (+4/-0)
swift/common/daemon.py (+0/-2)
swift/common/wsgi.py (+0/-2)
test/unit/container/test_updater.py (+2/-0)
Changed in swift: | |
milestone: | none → 1.2.0 |
Changed in swift: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
When i18n'ing, all endpoints (bin/*, test runners, etc) must have the following:
import gettext
gettext. install( 'swift' )
*Before* any imports that may use the _() method installed through gettext.
Hope this helps!
-jay