Serhiy Storchaka added the comment: As a workaround specify mode='r' for GzipFile. ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue18323> _______________________________________