Open leezu opened 6 years ago
I have the same problem. Cannot write large npz files!
@shahabfatemi you can consider using the fixed code here https://github.com/leezu/cnpy/tree/libzip
@leezu Thanks for the quick reply! Your branch has dependencies (e.g., "./zip.hpp" in cnpy.h) which are not included in the repository!
@shahabfatemi the dependency on zip.hpp is automatically fetched by cmake before build. If it doesn't work for you, you can use git submodule update --init
to initialize the submodule containing the dependency
Consider the following simple program:
/tmp/tmparray
will have a corrupt zipfile header and numpy will not load the array.unzip
outputs the following:I guess this is due to missing Zip64 format support. I see that you currently implement Zip file support yourself. Moving to https://libzip.org/ should fix this issue. Is there any reason why you chose zlib over the libzip (which is a higher-level interface to zlib)?