Register Guidelines E-Books Search Today's Posts Mark Forums Read

 MobileRead Forums Why can't I install the latest calibre on Windows XP?

 04-07-2015, 08:28 AM #2 J.C. Addict   Posts: 220 Karma: 3184 Join Date: Feb 2011 Device: PB602, Palm TX, GT-I9300 I've followed the instructions in: 2. Still I'm missing connecting part: I now have a "C:\Program Files\Calibre2\" directory with the 2.23.0 binaries (which won't run because of the safety check). I also have an edited "src/calibre/gui2/__init__.py" Whats next? How do I get a binary out of it ? Can it actually be run right now as is ? (If so, how ?)
 04-07-2015, 11:43 AM #3 eschwartz Ex-Helpdesk Junkie     Posts: 19,247 Karma: 83049305 Join Date: Nov 2012 Location: The Beaten Path, USA, Roundworld, This Side of Infinity Device: Kindle Touch fw5.3.7 (Wifi only) Make sure you follow all the instructions for setting up a development environment. For instance, did you set the CALIBRE_DEVELOP_FROM environment variable as directed?
 04-07-2015, 12:56 PM #4 J.C. Addict   Posts: 220 Karma: 3184 Join Date: Feb 2011 Device: PB602, Palm TX, GT-I9300 Yes, I followed all the instructions, including setting up the environment variable and testing to make sure it's set. I even followed the implied instruction that I should have python installed, and installed version 2.7.9 . But what is it I'm suppose to do next ? I just want to use the latest version which should work just fine on my system seeing as I've been using version 2.0.0 until now which I suppose was the latest to install on xp.
 04-07-2015, 01:01 PM #5 eschwartz Ex-Helpdesk Junkie     Posts: 19,247 Karma: 83049305 Join Date: Nov 2012 Location: The Beaten Path, USA, Roundworld, This Side of Infinity Device: Kindle Touch fw5.3.7 (Wifi only) If you still get the incompatibility warning, you haven't set it up correctly. If it was set up correctly, just run calibre as you would normally. If nothing happens, maybe it crashed horribly -- like I warned. What is the output from running "calibre-debug -g" from the command prompt?
 04-07-2015, 01:14 PM #6 J.C. Addict   Posts: 220 Karma: 3184 Join Date: Feb 2011 Device: PB602, Palm TX, GT-I9300 Ah, I get your meaning about the environment variable (should have set it globally). However it is still not enough despite editing the indicated file I still get the same error message that should have been disabled.
 04-07-2015, 01:19 PM #7 J.C. Addict   Posts: 220 Karma: 3184 Join Date: Feb 2011 Device: PB602, Palm TX, GT-I9300 calibre 2.23* isfrozen: True is64bit: False Windows-XP-5.1.2600-SP3 Windows ('32bit', 'WindowsPE') ('Windows', 'XP', '5.1.2600') Python 2.7.9 Windows: ('XP', '5.1.2600', 'SP3', 'Multiprocessor Free') Python function terminated unexpectedly calibre requires Windows Vista or newer to run, the last version of calibre that could run on Windows XP is version 1.48, available from : http://download.calibre-ebook.com/ (Error Code: 1) Traceback (most recent call last): File "site.py", line 132, in main File "site.py", line 109, in run_entry_point File "G:\WorkSpace\Programming\Cygwin\home\User\cal ibre-2.23.0\src\calibre\debug.py", line 220, in main calibre(['calibre']) File "G:\WorkSpace\Programming\Cygwin\home\User\cal ibre-2.23.0\src\calibre\gui_launch.py", line 61, in calibre with register_with_default_programs(): File "G:\WorkSpace\Programming\Cygwin\home\User\cal ibre-2.23.0\src\calibre\gui_launch.py", line 47, in register_with_default_programs from calibre.utils.winreg.default_programs import Register File "G:\WorkSpace\Programming\Cygwin\home\User\cal ibre-2.23.0\src\calibre\utils\winreg\default_programs.p y", line 17, in from calibre.utils.winreg.lib import Key, HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE File "G:\WorkSpace\Programming\Cygwin\home\User\cal ibre-2.23.0\src\calibre\utils\winreg\lib.py", line 136, in raise RuntimeError('calibre requires Windows Vista or newer to run, the last version of calibre' RuntimeError: calibre requires Windows Vista or newer to run, the last version of calibre that could run on Windows XP is version 1.48, av ailable from: http://download.calibre-ebook.com/
 04-07-2015, 05:42 PM #8 eschwartz Ex-Helpdesk Junkie     Posts: 19,247 Karma: 83049305 Join Date: Nov 2012 Location: The Beaten Path, USA, Roundworld, This Side of Infinity Device: Kindle Touch fw5.3.7 (Wifi only) Hmm, the new Default Programs register is blocking it? I would hope that an error there didn't block calibre from starting... OK. In src/calibre/gui_launch.py, change: Code: def register_with_default_programs(): from calibre.constants import iswindows if iswindows: from "if iswindows:" to "if False:"
 04-07-2015, 08:47 PM #9 J.C. Addict   Posts: 220 Karma: 3184 Join Date: Feb 2011 Device: PB602, Palm TX, GT-I9300 Does not seem to have changed it: Code: calibre 2.23* isfrozen: True is64bit: False Windows-XP-5.1.2600-SP3 Windows ('32bit', 'WindowsPE') ('Windows', 'XP', '5.1.2600') Python 2.7.9 Windows: ('XP', '5.1.2600', 'SP3', 'Multiprocessor Free') Python function terminated unexpectedly calibre requires Windows Vista or newer to run, the last version of calibre that could run on Windows XP is version 1.48, available from: http://download.calibre-ebook.com/ (Error Code: 1) Traceback (most recent call last): File "site.py", line 132, in main File "site.py", line 109, in run_entry_point File "G:\WorkSpace\Programming\Cygwin\home\User\calibre-2.23.0\src\calibre\debug.py", line 220, in main calibre(['calibre']) File "G:\WorkSpace\Programming\Cygwin\home\User\calibre-2.23.0\src\calibre\gui_launch.py", line 63, in calibre main(args) File "G:\WorkSpace\Programming\Cygwin\home\User\calibre-2.23.0\src\calibre\gui2\main.py", line 489, in main gui_debug=gui_debug) File "G:\WorkSpace\Programming\Cygwin\home\User\calibre-2.23.0\src\calibre\gui2\main.py", line 335, in run_gui from calibre.gui2.ui import Main File "G:\WorkSpace\Programming\Cygwin\home\User\calibre-2.23.0\src\calibre\gui2\ui.py", line 51, in from calibre.gui2.open_with import register_keyboard_shortcuts File "G:\WorkSpace\Programming\Cygwin\home\User\calibre-2.23.0\src\calibre\gui2\open_with.py", line 65, in from calibre.utils.winreg.default_programs import find_programs, friendly_app_name File "G:\WorkSpace\Programming\Cygwin\home\User\calibre-2.23.0\src\calibre\utils\winreg\default_programs.py", line 17, in from calibre.utils.winreg.lib import Key, HKEY_CURRENT_USER, HKEY_LOCAL_MACHINE File "G:\WorkSpace\Programming\Cygwin\home\User\calibre-2.23.0\src\calibre\utils\winreg\lib.py", line 136, in raise RuntimeError('calibre requires Windows Vista or newer to run, the last version of calibre' RuntimeError: calibre requires Windows Vista or newer to run, the last version of calibre that could run on Windows XP is version 1.48, available from: http://download.calibre-ebook.com/
 04-08-2015, 12:13 AM #10 kovidgoyal creator of calibre     Posts: 33,621 Karma: 10209576 Join Date: Oct 2006 Location: Mumbai, India Device: Various @eschawartz: Default programs uses APIs only available on Vista and later. You have to prevent the entire module from being imported.
 04-08-2015, 01:19 AM #11 eschwartz Ex-Helpdesk Junkie     Posts: 19,247 Karma: 83049305 Join Date: Nov 2012 Location: The Beaten Path, USA, Roundworld, This Side of Infinity Device: Kindle Touch fw5.3.7 (Wifi only) I do believe that is exactly what I did (making the iswindows check fail, just like on osx and linux, so it uses the Dummy() ), except it appears now the Open With code also uses it, and I am not sure how to abort that.
 04-08-2015, 01:34 AM #12 kovidgoyal creator of calibre     Posts: 33,621 Karma: 10209576 Join Date: Oct 2006 Location: Mumbai, India Device: Various Just comment it out, and maybe replace it with dummy functions. Open With will then fail, but everything else should still work. Though really, this is a losing battle you are fighting. More and more places in calibre are going to start using stuff not available in XP.
 04-08-2015, 01:45 AM #13 eschwartz Ex-Helpdesk Junkie     Posts: 19,247 Karma: 83049305 Join Date: Nov 2012 Location: The Beaten Path, USA, Roundworld, This Side of Infinity Device: Kindle Touch fw5.3.7 (Wifi only) Everyone can decide for themselves when it isn't worth their personal effort anymore, and then freeze their source checkout right before then. @J.C., In the meantime (because I may end up writing more advanced instructions), the simple isxp disabling *should* work fine using calibre 2.20,and checking out commit e07fc77a529b1787e9de6210d3e1b56d7569ed27. Or disabling default programs as I wrote above, based off of commit ff82ba858ca507be263a4cd76495c4c41587a47a. Last edited by eschwartz; 04-08-2015 at 01:50 AM.
 04-08-2015, 01:46 AM #14 JSWolf Resident Curmudgeon     Posts: 52,418 Karma: 47532469 Join Date: Nov 2006 Location: Roslindale, Massachusetts Device: Kobo Aura H2O, Sony PRS-650, Sony PRS-T1, nook STR, iPad 4, iPhone 5 The solution to running Calibre 2.x under XP is to run the Windows 8.1 comparability check from Microsoft and if the computer is compatible, backup the system drive, install a 64-bit Windows 7 or Windows 8.1 in place of XP. But you will have to install your programs and configure your system all over again. But in the end, it's worth is a you won't be stuck trying to run things that won't run or won't run well enough. Sigil and Calibre are two programs that do run better with Windows 7 or 8.1. It's never going to get better. It's only going to get worse. XP IS DEAD! Time to move on even if that means having to buy a new computer or upgrade the one you have.
04-08-2015, 01:57 AM   #15
eschwartz
Ex-Helpdesk Junkie

Posts: 19,247
Karma: 83049305
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
 Originally Posted by JSWolf The solution to running Calibre 2.x under XP is to run the Windows 8.1 comparability check from Microsoft and if the computer is compatible, backup the system drive, install a 64-bit Windows 7 or Windows 8.1 in place of XP. But you will have to install your programs and configure your system all over again. But in the end, it's worth is a you won't be stuck trying to run things that won't run or won't run well enough. Sigil and Calibre are two programs that do run better with Windows 7 or 8.1. It's never going to get better. It's only going to get worse. XP IS DEAD! Time to move on even if that means having to buy a new computer or upgrade the one you have.
And... we have our first winner for the Completely Missing The Point Award!!!

In case the objective of this thread has eluded you: We know. In fact, I strongly advised against sticking with XP in the opening post.

And henceforth we shall restrain ourselves to non-redundant discussion, for example, allowing people to discuss their efforts at doing inadvisable things with full knowledge of the situation. Because everyone deserves the right to experiment if they so desire.

Thank you for bringing up this very salient point. But from now on, please restrict yourself to discussing the technical aspects of the ideas in the OP.

 Tags calibre 2.x, qt5, windows xp