UCL-ShippingGroup / pyrate

Python AIS Tools Environment
MIT License
25 stars 10 forks source link

Unable to extract zip files with compression type 9 (deflate64) #33

Closed vprakash-ucl closed 8 years ago

vprakash-ucl commented 8 years ago

Zip files that use compression type 9 (deflate64) cannot be extracted as part of aisparser. Returns:

Unable to extract zip file ...: compression type 9 (deflate64)

Support for compression type 9 may never be added to the python zipfile library:

7zip on Ubuntu is able to extract these archives, so a solution may be to call the command line function 7z from python to do the extraction to a temporary folder to parse (and purge temporary files after parsing).

ejokeeffe commented 8 years ago

can you ask them to rezip? They used the python compatible zip format when doing the work for product one? That was only about 4 weeks ago

vprakash-ucl commented 8 years ago

Yes, I will ask them to do that from now on. Extracting locally prior to running aisparser is not that onerous, and, given that there is no direct solution, perhaps we just need to mention in the documentation that compression type 9 won't work automatically for the time being---or just leave the issue open.

willu47 commented 8 years ago

Not a pyrate issue per se, as specific to the AIS data.