How to zip huge plain files (+20GB) with python's ziplib file
<p>I get <em>DeprecationWarning: struct integer overflow masking is deprecated</em> error in z.write when file arrives to 4GB.</p>

<p>My code:</p>

<pre><code>def compressOutputFile(outputFileName, outputPath=UXConfig.myPath):
  os.chdir(outputPath)
  z= zipfile.ZipFile(outputFileName+'.zip', 'wb',zipfile.ZIP_DEFLATED,allowZip64=True)
  UXUtils.log('Writting file')
  z.write(outputFileName)
  UXUtils.log('Writting finished')
  z.close()
  tempFiles.append(outputPath+outputFileName)
</code></pre>

<p>The file isn't corrupted because I can open and see the lines.</p>