[issue10900] bz2 module fails to uncompress large files

Antoine Pitrou report at bugs.python.org
Tue Mar 1 23:28:38 CET 2011


Antoine Pitrou <pitrou at free.fr> added the comment:

Perhaps your bz2 files are simply multi-stream files? The bz2 module currently doesn't support them (it only decompresses the first stream); see issue1625 for a patch.

I'm not an expert on this, but it seems you can do:

$ bzip2 -tvvv foo.bz2 
  foo.bz2: 
    [1: huff+mtf rt+rld {0x135c15ac, 0x135c15ac}]
    combined CRCs: stored = 0x135c15ac, computed = 0x135c15ac
    [1: huff+mtf rt+rld {0x6ff631c1, 0x6ff631c1}]
    combined CRCs: stored = 0x6ff631c1, computed = 0x6ff631c1
    ok

My intuition is that if you get several lines about CRCs, it means there are several streams in the bz2 file.

----------
nosy: +pitrou

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10900>
_______________________________________


More information about the Python-bugs-list mailing list