Skip to content
This repository has been archived by the owner on Oct 30, 2024. It is now read-only.

Zip files fail to expand on OSX #16

Open
rschroll opened this issue Oct 1, 2018 · 1 comment
Open

Zip files fail to expand on OSX #16

rschroll opened this issue Oct 1, 2018 · 1 comment

Comments

@rschroll
Copy link
Contributor

rschroll commented Oct 1, 2018

We've noticed that the zip files produced here fail to expand automatically when double-clicked on some Macs. The user gets a pop-up window saying, "Unable to expand '<file.zip>' into ''. (Error 2 - No such file or directory.)". However, the zip file will unpack just fine on the command line with unzip.

Most reports of this online are connected to too-large zip files (GBs) or corrupt files, but this happens with small files, and they open just fine on the command line. A couple of possibly-relevant issues:

I'm going to keep poking around here, but I wanted to document what I've found so far.

@rschroll
Copy link
Contributor Author

rschroll commented Oct 1, 2018

I've found that Python produces different zip files depending on whether the output file handle is streaming (no seek method). It looks like OSX is happy with the non-streaming files, but can't deal with the streaming-produced ones.

The file out.zip was created with a standard file handle. It unzips just fine on OSX. In contrast, out-stream.zip was created with a file handle where seek was disabled. It doesn't unzip on OSX.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant