[Stackless] ImportError: zlib not found

Henk Punt henkpunt at gmail.com
Wed Oct 22 12:29:11 CEST 2008


On Ubuntu I found out I had to include --with-zlib to configure before
compiling stackless
this is how I configure stackless on ubuntu:

./configure —prefix=/opt/stackless —with-readline —with-zlib=/usr/include

(note that you might want a different prefix where stackless will be installed)
 I always put it in /opt/stackless and then put a symlink
(/usr/bin/stackless -> /opt/stackless/bin/python)
as to not confuse the default ubunty python install



On Wed, Oct 22, 2008 at 12:15 PM, 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.
>>>> import zlib
> Traceback (most recent call last):
>  File "<stdin>", line 1, in <module>
> ImportError: No module named zlib
>>>> import sys
>>>> sys.path
> ['', '/usr/local/lib/python26.zip', '/usr/local/lib/python2.6',
> '/usr/local/lib/python2.6/plat-linux2', '/usr/local/lib/python2.6/lib-tk',
> '/usr/local/lib/python2.6/lib-old', '/usr/local/lib/python2.6/lib-dynload',
> '/usr/local/lib/python2.6/site-packages']
>>>>
> terrence at terrence-laptop ~/downloads/stackless-26-export : find
> /usr/local/lib/python2.6 -name '*zlib*'
> /usr/local/lib/python2.6/test/test_zlib.py
> /usr/local/lib/python2.6/test/test_zlib.pyc
> /usr/local/lib/python2.6/test/test_zlib.pyo
> /usr/local/lib/python2.6/encodings/zlib_codec.pyo
> /usr/local/lib/python2.6/encodings/zlib_codec.py
> /usr/local/lib/python2.6/encodings/zlib_codec.pyc
> terrence at terrence-laptop ~/downloads/stackless-26-export :
>
>
> --
> Non-linear floating words - http://groups.google.com/group/odd-musings
> Ambient floating blog - http://ohfloat.com
> Floating mindmap - http://static.livingcosmos.org/super-scio/floating/
> The mothership - http://www.LivingCosmos.org
>
> _______________________________________________
> Stackless mailing list
> Stackless at stackless.com
> http://www.stackless.com/mailman/listinfo/stackless
>




More information about the Stackless mailing list