tahoar resolveu o problema em um comentário :
Sorry, xubuntix, I traced the problem to the existence of a non-standard io.py module in the sys.path(). Python's gzip module ignored it on 2.6x (Ubuntu 10.04) but tried to load it on 2.7x (Ubuntu 11.04+). Removing/renaming the io.sys module fixed the problem. Thanks