Open nnako opened 6 years ago
Well, after three hours debugging I can suggest the fix. Here parser.add_argument('template_odp', type=argparse.FileType('r'), help='Input ODP template file') parser.add_argument('output_odp', type=argparse.FileType('w'), help='Output ODP file') replace r with rb and w with wb, with r it incorrectly reads presentation file, and thus it can't be parsed by zipfile library.
Hi,
I get an error "corrupted or not an OpenDocument archive" when trying to run the tool on my Windows-7 machine.
This is what I did so far:
where the contents of the angular-bracketed params
<inputfile>
and<templatefile>
were set to corresponding files found in the demo\ folder of the repo. After receiving the error message (see above), I thought, I made some errors, so I double checked everything and by that tried to solve this by e.g.:exporting
a real template with the extension ".otp" from LibreOffice ImpressBut no change. The error occurrs in row no. 798 of the odpdown.py file. when calling
lpod.document.odf_get_document()
:I checked
odf_in
to be the template's file name.Any suggestions? Might the OpenDocument specification change and thus break this tool?
Thanks.