View Single Post
Old 02-21-2013, 12:08 AM   #1
twobits
Addict
twobits ought to be getting tired of karma fortunes by now.twobits ought to be getting tired of karma fortunes by now.twobits ought to be getting tired of karma fortunes by now.twobits ought to be getting tired of karma fortunes by now.twobits ought to be getting tired of karma fortunes by now.twobits ought to be getting tired of karma fortunes by now.twobits ought to be getting tired of karma fortunes by now.twobits ought to be getting tired of karma fortunes by now.twobits ought to be getting tired of karma fortunes by now.twobits ought to be getting tired of karma fortunes by now.twobits ought to be getting tired of karma fortunes by now.
 
Posts: 223
Karma: 1057019
Join Date: Oct 2010
Device: none
pylib.zip and zipfile.py

Never mind, think I found the issue in the script I was digging into instead of in the run time.

I am digging a bit into an issue I am having with a script that works fine when I run it under cygwin and python 2.7.3 but fails with a BadZipFile error when used as a plugin in calibre. The zip file in question passes an InfoZip unzip -t just fine and is readable on my eink device. Doing a bit of searching I think the problem in zipfile.py was fixed in this patch ( http://hg.python.org/cpython/rev/cc3255a707c7/ ) and indeed I see that patch is applied to my cygwin installation of 2.7.3.

I ran calibre in debug mode and it also seems to say it is running with 2.7.3, however when I look into the pylib.zip , the size of zipfile.pyo is 32220, while the version that works is 38423. What source version is used to make the pylib.zip file and how often is it updated?

Last edited by twobits; 02-21-2013 at 02:05 AM.
twobits is offline   Reply With Quote