This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author neologix
Recipients Eric.Wolf, neologix, niemeyer, wrobell
Date 2011-03-01.21:14:05
SpamBayes Score 0.0952143
Marked as misclassified No
Message-id <>
After running this under gdb, it turns out that it's actually bzlib's bzRead that's returning a BZ_STREAM_END after only 900k bytes.
So it confims what I've been suspecting, i.e. that the file is corrupt (I got the error at exactly the same offset as you - it could be a bug in bzlib, but it'd be quite surprising).
Note that google returns quite a few occurrences of corrupted OSM archives, e.g.
Date User Action Args
2011-03-01 21:14:15neologixsetrecipients: + neologix, niemeyer, wrobell, Eric.Wolf
2011-03-01 21:14:15neologixsetmessageid: <>
2011-03-01 21:14:05neologixlinkissue10900 messages
2011-03-01 21:14:05neologixcreate