Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 06-23-2017, 07:34 AM   #31
copyrite
Wizard
copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.
 
copyrite's Avatar
 
Posts: 1,814
Karma: 4985051
Join Date: Sep 2010
Location: Maryland
Device: ...lots! ;) mostly reading on a Kindle Voyage
I've found after the initial failed restart of Calibre on a boot up of the computer, the restarts after that work. This is Win10 (1703 15063.413).
copyrite is offline   Reply With Quote
Old 06-23-2017, 07:36 AM   #32
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,572
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by chaley View Post
PE restarts just fine.
Is that PE restarts calibre just fine, or itself ?

Is the server started? If so what happens if you stop it before restart?

BR
BetterRed is offline   Reply With Quote
Advert
Old 06-23-2017, 07:38 AM   #33
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,572
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by copyrite View Post
I've found after the initial failed restart of Calibre on a boot up of the computer, the restarts after that work. This is Win10 (1703 15063.413).
Home or Pro?

So calibre restart fails, you do a reboot, and now calibre restart works?

What about a logoff/logon?

BR
BetterRed is offline   Reply With Quote
Old 06-23-2017, 07:41 AM   #34
copyrite
Wizard
copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.
 
copyrite's Avatar
 
Posts: 1,814
Karma: 4985051
Join Date: Sep 2010
Location: Maryland
Device: ...lots! ;) mostly reading on a Kindle Voyage
Quote:
Originally Posted by BetterRed View Post
Home or Pro?

So calibre restart fails, you do a reboot, and now calibre restart works?

What about a logoff/logon?

BR
Home.

The automatic restart fails; I start calibre from the program icon, and if I restart from within the program it'll work.

Haven't tried with a logoff. Too many browser tabs open at the moment.
copyrite is offline   Reply With Quote
Old 06-23-2017, 07:54 AM   #35
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,572
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by copyrite View Post
Home.

The automatic restart fails; I start calibre from the program icon, and if I restart from within the program it'll work.

Haven't tried with a logoff. Too many browser tabs open at the moment.
I'm unsure of what you mean by 'automatic restart fails' ?

Are you saying when restart fails, you start it from desktop icon, and now restart works, what happens if you do another restart?

BR
BetterRed is offline   Reply With Quote
Advert
Old 06-23-2017, 08:12 AM   #36
copyrite
Wizard
copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.copyrite ought to be getting tired of karma fortunes by now.
 
copyrite's Avatar
 
Posts: 1,814
Karma: 4985051
Join Date: Sep 2010
Location: Maryland
Device: ...lots! ;) mostly reading on a Kindle Voyage
When attempting to restart Calibre within the program fails, I start it from the desktop icon. For whatever reason, I can then restart Calibre within the program (it's restarted multiple times). If I exit Calibre, re-open, and attempt a restart within the program, it will restart.
copyrite is offline   Reply With Quote
Old 06-23-2017, 08:24 AM   #37
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
In my case the "restart" calibre command always fails if I am not running from source.

@kovid: I replaced main.py with logging. Using the code:
Code:
                x = subprocess.Popen([e] + args)
                prints('after Popen:', x, file=open('c:/users/charles/log.txt', 'a'))
                time.sleep(3)
                x.poll()
                prints('after poll:', x.returncode, file=open('c:/users/charles/log.txt', 'a'))
I get after poll: '0' in the log which means that the subprocess terminated. I got the same answer with and without the sleep(3).

It occurred to me that the startup might be fast enough where the restarted calibre is seeing the original one and refusing to start. One difference between Home and Pro might be the order that windows runs new processes. To test this I changed main.py as follows:
- first discard all previous changes then:
Code:
def main(args=sys.argv):
    time.sleep(1)
    if iswindows and 'CALIBRE_REPAIR_CORRUPTED_DB' in os.environ:
        windows_repair()
        return 0
where the sleep(1) was arbitrary. Restart now works.
chaley is offline   Reply With Quote
Old 06-23-2017, 08:25 AM   #38
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
@chaley: That would imply something is happening before launching the child, which means the only way to debug is via replacing gui2/main.py in pylib.zip, I'm afraid. I suspect what is happening is that sys.executable is wrong probably does not contain the absolute path. So launching it is failing.
kovidgoyal is online now   Reply With Quote
Old 06-23-2017, 08:26 AM   #39
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
@chaley: Disregard my previous post, cross post.
kovidgoyal is online now   Reply With Quote
Old 06-23-2017, 08:27 AM   #40
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 20,572
Karma: 26954694
Join Date: Mar 2012
Location: Sydney Australia
Device: none
@copyrite - bizarro, hopefully your input might give kovid/chaley some clues.

AFAIK & FWIW - you can't buy a MS Surface Pro, Laptop, Book or Studio with Windows 10 Home edition for love or money, even the new Win 10S they're putting on the Surface Laptop models upgrades to Pro.

BR
BetterRed is offline   Reply With Quote
Old 06-23-2017, 08:32 AM   #41
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
@chaley: I pushed a fix that should do the trick. Need to check restarting in debnug mode as well.
kovidgoyal is online now   Reply With Quote
Old 06-23-2017, 08:43 AM   #42
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 11,742
Karma: 6997045
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by kovidgoyal View Post
@chaley: I pushed a fix that should do the trick. Need to check restarting in debnug mode as well.
After copying main.py with your changes into pylib.zip, all the following work:
  • restart
  • restart into debug mode
  • restart when running from source
  • restart into debug mode when running from source
  • restart while in debug mode while running from source
Seems fixed to me.
chaley is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
calibre not working in windows 8.1 snbhat1 Calibre 2 11-06-2015 12:58 PM
Calibre Updates not working on Windows 8.1 rex176 Devices 3 04-18-2014 08:07 PM
Calibre Stops Working Windows 8 Sydney's Mom Calibre 13 03-29-2013 08:01 PM
Jetbook not working with Windows 7 tselling Ectaco jetBook 4 01-15-2010 01:10 PM
PRS-500 working fine on 64-bit windows fleon Calibre 0 05-21-2009 04:46 AM


All times are GMT -4. The time now is 01:27 PM.


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