The Question has been closed for reason: off-topic or not relevantby
Client Traceback (most recent call last): File "/var/packages/OpenERP6.1/target/openerp/addons/web/common/http.py", line 180, in dispatch response["result"] = method(controller, self, **self.params) File "/var/packages/OpenERP6.1/target/openerp/addons/web/controllers/main.py", line 316, in translations for x in po: File "/volume1/@appstore/Python/usr/lib/python2.7/site-packages/babel/messages/catalog.py", line 522, in __iter__ File "/volume1/@appstore/Python/usr/lib/python2.7/site-packages/babel/messages/catalog.py", line 302, in _get_mime_headers File "/volume1/@appstore/Python/usr/lib/python2.7/site-packages/babel/dates.py", line 501, in format_datetime File "/volume1/@appstore/Python/usr/lib/python2.7/site-packages/babel/core.py", line 212, in parse File "/volume1/@appstore/Python/usr/lib/python2.7/site-packages/babel/core.py", line 137, in __init__ UnknownLocaleError: unknown locale 'en'
This problem arised when I make a new install of python2.7 . How to solve this?
For the record, if you're experiencing this on Ubuntu 14.04 (after dist-upgrading) chances are you're being hit by this bug, which is related to this upstream bug. Until this is properly fixed the workaround is to force the reinstallation of the package:
sudo apt-get install --reinstall python-babel-localedata
This should be simpler and cleaner than copying around the low-level data files that have been incorrectly deleted.
About This Community
|Asked: 4/4/13, 8:39 AM|
|Seen: 6482 times|
|Last updated: 3/16/15, 8:10 AM|