question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

error: Error -3 while decompressing: incorrect header check

See original GitHub issue

I was trying to read a compressed file from s3 on ec2 and it did not print any line

for myKey,content in smart_open.s3_iter_bucket(email_bucket):
    with smart_open.smart_open(myKey) as data:
        for line in data:
            print line

Then I ran:

file = smart_open.smart_open(myKey)
for line in data:
    print line

and got the error: screen shot 2017-03-10 at 11 33 25 am

I think this is caused by zlib. Any insight on how to troubleshoot this?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
yg37commented, Dec 13, 2017

I think I solved the issue by modifying the s3_iter_bucket function and using list(smart_open.S3OpenRead(key)).

0reactions
menshikh-ivcommented, Oct 2, 2018

yes, let’s close it @mpenkov

Read more comments on GitHub >

github_iconTop Results From Across the Web

zlib.error: Error -3 while decompressing: incorrect header check
You have this error: zlib.error: Error -3 while decompressing: incorrect header check. Which is most likely because you are trying to check headers...
Read more >
3 while decompressing: incorrect header check - zlib.error
PYTHON : zlib. error : Error - 3 while decompressing : incorrect header check [ Gift : Animated Search Engine ...
Read more >
Error -3 while decompressing data: incorrect header check ...
"zlib.error: Error -3 while decompressing data: incorrect header check" when trying to run the exe which is encrypted with pyinstaller.
Read more >
zlib.error - 3 while decompressing: incorrect header check
I have a gzip file and I am trying to read it via Python as below: import zlib do = zlib.decompressobj(16+zlib.MAX_WBITS) fh =...
Read more >
3 while decompressing data: incorrect header check : r/chia
I'm getting "error -3 while decompressing data: incorrect header check" after updating from 1.1.3 to 1.1.5... Any suggestions? I got this with 1.1.4...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found