zlib OverflowError: 'size does not fit in an int'

Thomas Jollans tjol at tjol.eu
Mon Dec 4 19:36:07 EST 2017


On 05/12/17 01:21, Larry Martell wrote:
> On Mon, Dec 4, 2017 at 7:15 PM, Chris Angelico <rosuav at gmail.com> wrote:
>> On Tue, Dec 5, 2017 at 10:46 AM, Larry Martell <larry.martell at gmail.com> wrote:
>>> Trying to zip a large file is failing with OverflowError: 'size does
>>> not fit in an int'. Googling I found this:
>>>
>>> https://bugs.python.org/issue23306
>>>
>>> and this:
>>>
>>> https://hg.python.org/cpython/rev/2192edcfea02
>>>
>>> which seems to make me think this was fixed this was fixed on Jul 23 2016.
>>>
>>> I am running CentOS 7 and I have python version:
>>>
>>> Python 2.7.5 (default, Sep 15 2016, 22:37:39)
>>>
>>> Which I guess does not have this fix. How can I get a version with
>>> that fix (that doesn't break CentOS)
>>
>> First thing I'd consider is a Python 3.x version. Is there one in your
>> CentOS repositories? If not, worst case, you can compile one from
>> source or get one from some other repo, and it can't possibly break
>> your system because it won't mess with anything you're using.
>>
>> If you absolutely HAVE to stick with 2.7, you may do well to compile
>> from source and NOT install - just run the binary from the source
>> directory.
> 
> This is a django app, using version 1.9, installed on many sites that
> do not have external internet access, so any changes are onerous.
> Possible, but a PITA. I will look into building from source.
> 

FWIW, there is also an SCL with a newer version of Python 2.7 (loathe as
I am to point it out)

See also: https://pythonclock.org/



More information about the Python-list mailing list