Gzip Python3 Attributeerror: 'module' Object Has No Attribute 'compress'
pipe.setnx(prefix+item[0], gzip.compress(bytes(item[1], 'utf-8'))) I'm trying to compress a file using the gzip python lib on an EC2 instance. I assume that gzip is part of the st
Solution 1:
I figured out that someone else had added a library called gzip. So, it was defaulting to that one and the not standard library. I ended up using zlib instead.
Post a Comment for "Gzip Python3 Attributeerror: 'module' Object Has No Attribute 'compress'"