Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
Old 07-31-2013, 11:14 AM   #1
AlPe
Digital Amanuensis
AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.
 
AlPe's Avatar
 
Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
Is there a way of forcing Calibre to use "system" Python?

Hi all,

in view of this problem, I am trying to understand whether there is a way of making Calibre to use the "system" installation of Python (in my case, Windows 32bit + Python 2.7.5) instead of the bundled Python libs (in my case, Windows 32bit + Python 2.7.4).

From my tests, it seems not possible, but I would like a confirmation from the experts. Alternatively, I would appreciate if the next Calibre for Windows will ship Python 2.7.5, since Python 2.7.4 is full of regression bugs at key libraries, like zipfile.

Thanks.
AlPe is offline   Reply With Quote
Old 07-31-2013, 11:41 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 43,860
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Use calibre.utils.zipfile instead of zipfile.

The python stdlib zipfile is badly broken and has always been badly broken.
kovidgoyal is offline   Reply With Quote
Advert
Old 07-31-2013, 12:12 PM   #3
AlPe
Digital Amanuensis
AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.AlPe ought to be getting tired of karma fortunes by now.
 
AlPe's Avatar
 
Posts: 727
Karma: 1446357
Join Date: Dec 2011
Location: Turin, Italy
Device: Several eReaders and tablets
Thanks for the quick reply.

From a quick test, your suggestion seems to work perfectly, and I appreciate the fact that I just need to change the import lines
AlPe is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fail-"Python Nul file missing" mark_e_h Calibre 8 05-13-2013 11:11 PM
"Python function terminated unexpectedly" on ePub to PDF conversion zunga Conversion 10 03-17-2013 07:18 PM
Troubleshooting kindle 4NT freezed in "Tequila System Diags" screen carlosbari Amazon Kindle 1 06-19-2012 09:49 PM
B&N: Microsoft Forcing "Oppressive" Agreements on Android? kjk News 22 11-17-2011 12:01 PM


All times are GMT -4. The time now is 05:10 PM.


MobileRead.com is a privately owned, operated and funded community.