no zlib in Python 2.0

Conrad Mukai cmukai at
Sat Mar 3 07:49:36 CET 2001

I've recently installed Python 2.0 on a Mandrake 2.2.17 system. When I
invoke python I get the following version information:

Python 2.0 (#1, Feb 27 2001, 16:54:15)
[GCC 2.95.3 19991030 (prerelease)] on linux2

and uname -a returns:

Linux 2.2.17-21mdk #1 Thu Oct 5 13:16:08 CEST
2000 i686 unknown

The problem is when I run a script that formerly ran under Python 1.5.2
I get the following error message:

  File "/usr/local/lib/python2.0/", line 9, in ?
    import zlib
ImportError: No module named zlib

Looking into the python2.0 installation, I can see that the lib-dynload
directory is empty. The 1.5 installation has the shared object as well as other files. It would appear that the source
code is in the 2.0 package, but the install process is not compiling the
code. Does anyone have any hints as to what is wrong? Thanks in advance.

* Conrad Mukai          "Consistency is the last resort of *
* cmukai at     the unimaginative." - Oscar Wilde *

More information about the Python-list mailing list