Bug#916287: po2oo unusable

2018-12-28 Thread Stuart Prescott
Hi Mechtilde

Thanks for the update.

> the error message doesn't tell where the problem is.
> 
> After downgrading it doesn't work too. So I test it with a new template.
> 
> Then it works.

Can I just double check that I have understood the report -- you have a 
bad.po and when using po2oo on bad.po, you get the crash «ValueError: 
invalid tab-delimited line: '#\n'» that doesn't tell you where the error is 
located within the input file.

Can you provide that bad po file or some other minimal reproduce case? 
(including the command used)

The error appears to be in the output stage, so I'm not sure if source 
information will be available, but we can always look.

thanks
Stuart


-- 
Stuart Prescotthttp://www.nanonanonano.net/   stu...@nanonanonano.net
Debian Developer   http://www.debian.org/ stu...@debian.org
GPG fingerprint90E2 D2C1 AD14 6A1B 7EBB 891D BBC1 7EBB 1396 F2F7



Bug#916287: po2oo unusable

2018-12-12 Thread Mechtilde Stehmann
Control: severity -1 normal


the error message doesn't tell where the problem is.

After downgrading it doesn't work too. So I test it with a new template.

Then it works.

-- 
Mechtilde Stehmann

## PGP encryption welcome
## F0E3 7F3D C87A 4998 2899  39E7 F287 7BBA 141A AD7F



signature.asc
Description: OpenPGP digital signature


Bug#916287: po2oo unusable

2018-12-12 Thread Mechtilde Stehmann
Package: translate-toolkit
Version: 2.3.1-2
Severity: grave

I try to convert *.po files from Pootle to *.sdf files

It fails with error message:

Traceback (most recent call last):
  File "/usr/bin/po2oo", line 11, in 
load_entry_point('translate-toolkit==2.3.1', 'console_scripts',
'po2oo')()
  File "/usr/lib/python3/dist-packages/translate/convert/po2oo.py", line
264, in main
parser.run(argv)
  File "/usr/lib/python3/dist-packages/translate/convert/convert.py",
line 181, in run
self.recursiveprocess(options)
  File "/usr/lib/python3/dist-packages/translate/convert/convert.py",
line 422, in recursiveprocess
self.templatearchive = self.openarchive(options.template, 'template')
  File "/usr/lib/python3/dist-packages/translate/convert/convert.py",
line 312, in openarchive
return archiveclass(archivefilename, **archiveoptions)
  File "/usr/lib/python3/dist-packages/translate/storage/oo.py", line
360, in __init__
self.createsubfileindex()
  File "/usr/lib/python3/dist-packages/translate/storage/oo.py", line
366, in createsubfileindex
subfile = self.getsubfilename(line)
  File "/usr/lib/python3/dist-packages/translate/storage/oo.py", line
375, in getsubfilename
raise ValueError("invalid tab-delimited line: %r" % line)
ValueError: invalid tab-delimited line: '#\n'


This still worked at 2018-12-07 in Testing


I use daily updated testing system

I will try to downgrade to version 2.3.1-1 now

Kind regards


-- 
Mechtilde Stehmann
## Debian Developer
## Loook, tbsync, libreoffice-canzeley-client
## PGP encryption welcome
## F0E3 7F3D C87A 4998 2899  39E7 F287 7BBA 141A AD7F



signature.asc
Description: OpenPGP digital signature