bz2 module

"Martin v. Löwis" martin at
Mon Oct 18 23:35:59 CEST 2004

Brad Tilley wrote:
> It fails with this error:
> AttributeError: 'module' object has no attribute 'BZ2File'

Can you please print bz2.__file__ right before the error?
On my system, it gives


I wonder what bz2 possibly could be on your system if importing
it succeeds, but looking for BZ2file fails.


More information about the Python-list mailing list