"char buffer type not available" error while gunzip
istgou at googlemail.com
Mon Oct 11 19:16:55 CEST 2010
I'm getting exception while trying to gunzip data, which is stored in
File "helper.py", line 33, in gunzip
f = StringIO(data)
"exceptions.TypeError: char buffer type not available"
function which does gunzipping:
print type(data)) #prints <type 'buffer'>
f = StringIO(s)
gzipped = gzip.GzipFile(fileobj=f)
It's weird, because it does not happen every time.
Thanks a lot for any help!
More information about the Python-list