bz2 module

"Martin v. Löwis" martin at v.loewis.de
Mon Oct 18 17:35:59 EDT 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

/usr/lib/python2.3/lib-dynload/bz2.so

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

Regards,
Martin



More information about the Python-list mailing list