bz2 module not present in Python 2.3b1 source?

Skip Montanaro skip at pobox.com
Thu May 1 15:49:47 EDT 2003


    Iwan> I've installed Python2.3 beta 1 both on WIn32 and on Linux (build
    Iwan> from source). On win32 I can access the new bz2 module, on Linux I
    Iwan> can't.  Should I report this as a bug or is the bz2 module by
    Iwan> default not enabled in the source distribution?

Sounds like you're missing the underlying bz2 library.  It works for me (Mac
OS X):

    % ./python.exe 
    Python 2.3b1 (#41, Apr 30 2003, 06:24:51) 
    [GCC 3.1 20020420 (prerelease)] on darwin
    Type "help", "copyright", "credits" or "license" for more information.
    >>> import bz2
    >>> dir(bz2)
    ['BZ2Compressor', 'BZ2Decompressor', 'BZ2File', '__author__', '__doc__',
    '__file__', '__name__', 'compress', 'decompress'] 

Skip





More information about the Python-list mailing list