Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #15687

Re: can't decompress data; zlib not available

Date 2011-11-14 12:30 -0700
From Steve Edlefsen <steve@sprangle.com>
Subject Re: can't decompress data; zlib not available
References <4EC009D7.90100@sprangle.com> <1321221305.12661.6.camel@tim-laptop>
Newsgroups comp.lang.python
Message-ID <mailman.2710.1321299024.27778.python-list@python.org> (permalink)

Show all headers | View raw


Sorry about that.  Ubuntu 11.10.

I used

Plone-4.1.2-UnifiedInstaller.tar

which installed o.k.  I'm serving a webpage on my LAN.

I did a search on files named "python" on my machine.
There are 23 not including the ones in the Plone
buildout-cache in my account.  Seems like a lot of
applications install their own copy of python.

There are also

./usr/lib/x86_64-linux-gnu/libz.so
./usr/lib/libz.so

which, I believe, are the zlib libraries.

I've read that you can reinstall python with configure
using the "--with-zlib" option, but configure isn't in

/usr/local/Plone/Python-2.6/lib/python2.6/config

I think the python interpreter for the command line is
the one in /usr/bin/python.  Would this be the one I
reconfigure for zlib?  Should I simply install python from

Python-3.2.2.tgz?

On 11/13/2011 02:55 PM, Tim Wintle wrote:
> On Sun, 2011-11-13 at 11:17 -0700, Steve Edlefsen wrote:
>> which appears to install zlib when python is reinstalled.  Except I
>> can't run make without errors and there is no configuration file.
>>
>> How do I reinstall python to include zlib?
> Which OS are you on? Linux? BSD?
>
> How did you install Plone?
>
> First I'd check if there's a module shadowing the builtin zlib module -
> i.e. if you've got a local file called "zlib.py" which is getting
> imported by mistake.
>
>
> Fairly much all *nix systems will have a python installation out of the
> box - it looks like you need python2.6
>
> I've never had a missing zlib module - but it's possible that it might
> be missing if you don't have the zlib/deflate headers installed - if
> they're not available then I'd try installing them and then reinstalling
> the package you started with.
>
> Tim Wintle
>

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: can't decompress data; zlib not available Steve Edlefsen <steve@sprangle.com> - 2011-11-14 12:30 -0700

csiph-web