[Stackless] ImportError: zlib not found

Richard Tew richard.m.tew at gmail.com
Wed Oct 22 13:21:08 CEST 2008

On Wed, Oct 22, 2008 at 6:15 AM, Terrence Brannon
<metaperl.hitech at gmail.com> wrote:
> Hello, I need zlib under Stackless Python (because virtualenv uses it).
> import zlib doesnt says 'No module named zlib' under stackless but not under
> normal Python.
> I have tried this with the 2.6 and 2.52 versions of Stackless on ubuntu
> (running on virtualbox) with no success:
> terrence at terrence-laptop ~/downloads/stackless-26-export : python
> Python 2.6 Stackless 3.1b3 060516 (trunk, Oct 22 2008, 05:58:25)
> [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> ... '/usr/local/lib/python2.6/lib-dynload',

I don't use this non-windows shenanigans if I don't have to, but I
believe that the directory you are looking for is the one above.

If I look in the '/usr/lib/python-2.5/lib-dynload' directory on
stackless.com, the only Linux box I have access to, I see:


Recompile stackless editing the Python config so it compiles the
module support you want.


More information about the Stackless mailing list