[pology] pomtrans unable to handle Norwegian .pot file?
Petter Reinholdtsen
pere at hungry.com
Mon Mar 12 08:53:22 PDT 2012
[Chusslove Illich]
> This makes Pology scripts crash more noisily, providing more code
> context in which the error happens. Then rerun pomtrans and report
> back what it outputs.
Then I get this.
% pomtrans -s nb -t nn apertium itil.nn.po
Traceback (most recent call last):
File "/usr/bin/pomtrans", line 495, in <module>
exit_on_exception(main)
File "/usr/lib/pymodules/python2.6/pology/fsops.py", line 990, in exit_on_exception
func()
File "/usr/bin/pomtrans", line 149, in main
translate_direct(paths, tsbuilder, op)
File "/usr/bin/pomtrans", line 178, in translate_direct
texts_tr = transerv.translate(texts)
File "/usr/bin/pomtrans", line 413, in translate
res = collect_system(self.cmdline, instr=stext)
File "/usr/lib/pymodules/python2.6/pology/fsops.py", line 325, in collect_system
p.stdin.write(instr.encode(locale.getpreferredencoding()))
IOError: [Errno 32] Røret ble brutt
%
--
Happy hacking
Petter Reinholdtsen
More information about the pology
mailing list