[Tutor] Reading gzip files

Kent Johnson kent37 at tds.net
Mon Dec 1 12:35:08 CET 2008


On Sun, Nov 30, 2008 at 9:42 PM, Dinesh B Vadhia
<dineshbvadhia at hotmail.com> wrote:

> Strangely, for the files that don't work I can read/print the file almost to
> the end and then it falls over with the CRC error.

That's because the CRC isn't checked until after the file is read; as
you can see from the traceback, the error is in _read_eof(). You could
put a print statement or breakpoint in that function to get more
information about the failure.

Kent


More information about the Tutor mailing list