empty __init__.py under locale directory leading to ImportError
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Glance |
Fix Released
|
Low
|
Brian Waldon | ||
OpenStack Compute (nova) |
Fix Released
|
Low
|
Brian Waldon |
Bug Description
Since empty __init__.py file under nova/nova/locale directory indicates this is a package directory, it will cause ImportError when installing the locale by gettext. The traceback looks like:
Traceback (most recent call last):
...
File "/usr/lib/
t = translation(domain, localedir, fallback=True, codeset=codeset)
File "/usr/lib/
mofiles = find(domain, localedir, languages, all=1)
File "/usr/lib/
for nelang in _expand_lang(lang):
File "/usr/lib/
from locale import normalize
ImportError: cannot import name normalize
Suggest: remove this redundant __init__.py file will resolve this problem.
Changed in glance: | |
assignee: | nobody → Brian Waldon (bcwaldon) |
Changed in nova: | |
assignee: | nobody → Brian Waldon (bcwaldon) |
Changed in glance: | |
status: | New → In Progress |
Changed in nova: | |
importance: | Undecided → Low |
status: | New → In Progress |
Changed in glance: | |
importance: | Undecided → Low |
Changed in nova: | |
milestone: | none → folsom-1 |
Changed in glance: | |
milestone: | none → folsom-1 |
Changed in nova: | |
assignee: | Edward (zhang-hare) → Brian Waldon (bcwaldon) |
status: | In Progress → Fix Committed |
Changed in glance: | |
status: | Fix Committed → Fix Released |
Changed in nova: | |
status: | Fix Committed → Fix Released |
Changed in glance: | |
milestone: | folsom-1 → 2012.2 |
Changed in nova: | |
milestone: | folsom-1 → 2012.2 |
Fix proposed to branch: master /review. openstack. org/6722
Review: https:/