Open Erimus-Koo opened 1 year ago
I've found out the problem page and output a "error_sample.key" file, and do you need it?
The problems happened while some objects used(and error key):
And there's another problem is, after once used the "replace" command, it looks like a codec error occurred. Here is the console:
_file.filename = _file.filename.encode("cp437").decode("utf-8")
File "/Users/erimus/.pyenv/versions/3.10.9/lib/python3.10/encodings/cp437.py", line 12, in encode
return codecs.charmap_encode(input,errors,encoding_map)
UnicodeEncodeError: 'charmap' codec can't encode characters in position 10-16: character maps to <undefined>
I am also seeing the error when parsing the identifier 6383, which appears to be the result of having a table in the file. Python 3.8.2, keynote-parser v1.12.2.0, Keynote v12.2.1.
Example .key file generating the error is attached (attached in .zip format because Github is cranky about .key files).
I fixed the issues I was having by making a few modifications to codec.py
and mapping.py
. See https://github.com/psobot/keynote-parser/pull/48/files.
Environments
Keynote: version 12.2.1 (7035.0.161) keynote-parser: 1.12.2.0 python: 3.10.9
Error message