AIX installation can't find zlib

Larry Whitley ldw at us.ibm.com
Fri Jul 28 08:59:50 EDT 2000


I've just installed the 1.5.2 source distribution on an AIX system and when
I say "import zlib" it responds:

>>> import zlib
Traceback (innermost last):
  File "<stdin>", line 1, in ?
ImportError: No module named zlib
>>>

I'm not sure where zlib is supposed to be.  It's not in the Lib subdirectory
of Python-1.5.2.  In the Modules subdirectory I find zlibmodule.c.  Nothing
germaine in the Objects subdirectory.  Looked at config.log and
config.status, no mention of zlib.

Looking at the sys.path I see:

.../ldw/Python-1.5.2> python
Python 1.5.2 (#1, Jul 26 2000, 14:21:56) [C] on aix4
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import sys
>>> sys.path
['', '/.../rchland.ibm.com/fs/u1/ldw/Projects/Programs/wtCache',
'/.../rchland.ibm.com/fs/u1/ldw/Python-1.5.2/Lib/',
'/.../rchland.ibm.com/fs/u1/ldw/Python-1.5.2/Lib/plat-aix4',
'/.../rchland.ibm.com/fs/u1/ldw/Python-1.5.2/Lib/lib-tk',
'/.../rchland.ibm.com/fs/u1/ldw/Python-1.5.2/Modules']
>>>

Any suggestions?

Larry





More information about the Python-list mailing list