View Single Post
Old 11-19-2018, 10:10 PM   #1
EbokJunkie
Addict
EbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blueEbokJunkie can differentiate black from dark navy blue
 
Posts: 230
Karma: 13495
Join Date: Feb 2009
Location: SoCal
Device: Kindle 3, Kindle PW, Pocketbook 301+, Pocketbook Touch, Sony 950, 350
3.34 calibre-debug runs the script code under Python 3

Have old Python 2.7 script written in year 2013. It used to run under calibre-debug for five years. However, update to 3.34 began to throw syntax errors in all print commands in this script. Enclosing print operands in parenthesis in accordance with Python 3 standard helped.
I have 32- and 64-bit Python 2.7 and 3.4 installed on Windows 10 machine.
Bare command "Python" invokes Python 3.4.
Still, my unmodified original script runs OK under Calibre 3.31.
Is it possible that 3.34 calibre-debug in my environment somehow runs scripts under Python 3?
EbokJunkie is offline   Reply With Quote