-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"EOFError: read end of file" reading a file #46
Comments
Same issue here. |
I encountered a similar problem. In my case the EOFError is due to the uncompressed file size exceeding 4 Gb. When saving the same file from python as an uncompressed .npz the size is around 4.9 Gb. Trying to read the file like that from NPZ.jl leads to another error: ERROR: LoadError: invalid file header
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:33
[2] _getfiles(io::IOStream, diroffset::UInt32, nfiles::UInt16)
@ ZipFile ~/.julia/packages/ZipFile/evaHP/src/ZipFile.jl:309
[3] Reader
@ ~/.julia/packages/ZipFile/evaHP/src/ZipFile.jl:106 [inlined]
[4] ZipFile.Reader(filename::String)
@ ZipFile ~/.julia/packages/ZipFile/evaHP/src/ZipFile.jl:118
[5] npzread(::String)
@ NPZ ~/.julia/packages/NPZ/UizJj/src/NPZ.jl:294 Judging from this issue in ZipFiles, ZIP64 and therefore files bigger than 4Gb uncompressed aren't supported at all. Would be nice if NPZ.jl could check this in advance before calling ZipFiles. If not, I'm just leaving this information here for other people wondering, why their file couldn't be read. |
Same issue here. My filesize is 22mb
|
I observed the same problem, while reading a compressed npz file of 314M
|
So is there any solution? |
Here a reproducible example
The downloaded file is correctly read from python
The text was updated successfully, but these errors were encountered: