Issue 2550999
Created on 2018-09-03 12:10 by schlatterbeck, last changed 2018-09-05 12:02 by schlatterbeck.
msg6236 |
Author: [hidden] (schlatterbeck) |
Date: 2018-09-03 12:10 |
|
I'm calling the mail-gateway with outdated locale .po files in the local
instance (I have an instance with its own locale directory) and I'm
getting the attached traceback.
Note that when I go back to 2d6a92c3e212 (before the python3 changes to
i18n.py) compilation of the locale files works fine. I don't see any
obvious changes that would explain the traceback to i18n.py, though.
Note that I'm getting this error with python2.7 not python3
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/roundup/mailgw.py", line
1450, in handle_Message
return self.handle_message(message)
File "/usr/local/lib/python2.7/dist-packages/roundup/mailgw.py", line
1516, in handle_message
self.db = self.instance.open ('admin')
File "/usr/local/lib/python2.7/dist-packages/roundup/instance.py",
line 148, in open
extension(self)
File "/home/ralf/roundup/ttt_track/extensions/ext_tracker.py", line
69, in init
(instance.config.TRACKER_LANGUAGE, instance.config.TRACKER_HOME).gettext
File
"/usr/local/lib/python2.7/dist-packages/roundup/cgi/TranslationService.py",
line 116, in get_translation
null_translation_class=null_translation_class)
File "/usr/local/lib/python2.7/dist-packages/roundup/i18n.py", line
172, in get_translation
mofiles.append(get_mofile(locales, tracker_locale))
File "/usr/local/lib/python2.7/dist-packages/roundup/i18n.py", line
140, in get_mofile
msgfmt.make(pofile, mofile)
AttributeError: 'module' object has no attribute 'make'
|
msg6237 |
Author: [hidden] (joseph_myers) |
Date: 2018-09-03 12:20 |
|
On Mon, 3 Sep 2018, Ralf Schlatterbeck wrote:
> File "/usr/local/lib/python2.7/dist-packages/roundup/i18n.py", line
> 140, in get_mofile
> msgfmt.make(pofile, mofile)
> AttributeError: 'module' object has no attribute 'make'
f2fade4552c5, "replaced msgfmt.py with latest version supporting Python
3", removed the make function from msgfmt.py, but i18n.py still uses it.
|
msg6238 |
Author: [hidden] (schlatterbeck) |
Date: 2018-09-05 12:02 |
|
On Mon, Sep 03, 2018 at 09:34:00PM +0200, Christof Meerwald wrote:
> Should be addressed with bb364082a14a.
Thanks for the quick fix, I can confirm it works for me here.
Closing the issue.
|
|
Date |
User |
Action |
Args |
2018-09-05 12:02:41 | schlatterbeck | set | status: new -> closed nosy:
+ cmeerw resolution: fixed messages:
+ msg6238 |
2018-09-03 12:20:58 | joseph_myers | set | nosy:
+ joseph_myers messages:
+ msg6237 |
2018-09-03 12:10:23 | schlatterbeck | create | |
|