Closed tsouchlarakis closed 2 years ago
It looks like the NameError: name 'FileFormatError' is not defined
might be fixed in the code, but not yet pushed to PyPI? I'm having the same problem. The file I'm trying to open is https://github.com/slott56/Stingray-Reader/tree/main/sample/numbers_workbook_13.numbers
There are two problems here: I've not imported FileFormatError (a trivial fix); and 11.2 has introduced some new Protobuf types, which requires a re-dump of the definitions. I am half-way through 11.2 support not helped by latest protobuf seg-faulting Python for me. Will look this weekend after I've built a clean environment to see if it's really a protobuf vs. Python problem
It looks like the
NameError: name 'FileFormatError' is not defined
might be fixed in the code, but not yet pushed to The file I'm trying to open is https://github.com/slott56/Stingray-Reader/tree/main/sample/numbers_workbook_13.numbers
@slott56 My Numbers (11.2 on a Monterey Apple Silicon Mac) refuses to open that file. Has GitHub mangled it somehow? I've recreated all the protos from Numbers 11.2 and the datatype that fails in your doc (the 6219 reference) isn't defined in 11.2.
I've pushed changes to a 2.0.2 that correctly imports the exceptions and catches them for a sensible error in cat-numbers/unpack-numbers but that file is still broken.
@tsouchlarakis apologies for not spotting your original issue -- don't know what happened there that I didn't see it.
Version 2.1 includes protos extracted from Numbers 11.2 and includes the ID (6372) that throws an exception for you. Can you try the latest from PyPI?
Perfect.
tests/test_implementations.py::test_numbers_workbook PASSED [100%]
I think this issue can be closed.
Thanks for the quick test
Thank you for a quick fix.
Unable to read a Numbers file without throwing an error on Numbers 11.2: