-
Notifications
You must be signed in to change notification settings - Fork 72
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
Data error during extraction #57
Comments
Could you please provide a (small) sample file that shows the error? Also which version of pylzma are you running?. |
Hello fancycode, thank you for responding to the above comment because I am having the same problem as the original poster. Here is my extractall function that I use on 7z archives:
I've narrowed down where the data errors come from, most notably from executable files (.exe on windows), which when I extract create the proper executable file name, but will be a zero-byte file. It also appears .dll files will completely fail to extract and return the data error. However, this function works perfectly with a folder full of JPEG wallpapers or XML files, dll and exe files are the only files I noticed to return errors. I really would like to use this function since it's recursive and can do folders/subfolders. If you need anything else to help towards narrowing out this problem just ask and I will see what I can provide. |
Master now supports various BCJ filter, could you please check if this solves the issues you were having? |
This new addition works, but only up to 128 kilobytes, after it hits that limit it stops reading and creates zero-byte files again. I verified a 70 kilobyte file with Md5Checker and the hash was exact, it just seems there is this data limit imposed consistently, which applies to .dll and executables. |
Should be fixed with the latest change, could you please test again? |
Works perfectly! A pythonic way to extract 7z archives is amazing. All .dll files and .exe file hashes match. If I uncover anything else I can submit a new error report, thank you! |
Great, thanks for reporting & testing! |
Incidentally I just had the same problem and this fixed it. Any chance of getting a new release on PyPI with this fix? Thanks! |
Thanks @fancycode fir the fix, sorry for MIA catching up on subscriptions |
Sources+7z file: https://drive.google.com/file/d/1YUgE15Tt2OS07X6Yzc_afc98UjRsfbQs/view?usp=sharing |
So this still happens on master for you 😞 Could you please provide a (small) file I can use for testing? |
Check my edit, included sources |
Thanks, I would need a .7z file that fails to decompress, not the Python source you are using for extracting. |
It's in the archive I linked |
Oops, sorry that link didn't show up earlier. After an explicit refresh I can now see it. Thanks. |
np, and ty :) |
Any updates on this? |
The first file compressed with only LZMA2 extracts just fine, but the binary with multiple coders-fails
|
Are there any updates on this? This still fails |
Error when running example:
Source
The text was updated successfully, but these errors were encountered: