Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 10-31-2019, 12:55 PM   #1
woodr2011
Connoisseur
woodr2011 began at the beginning.
 
Posts: 53
Karma: 10
Join Date: Aug 2015
Device: PC and laptop
Python function terminated unexpectedly

I am running the most current update of Calibre 4.2 x64 on Windows 10 Pro and am suddenly having the following error popup when trying to open any book other than a PDF (which I open in Adobe):

Python function terminated unexpectedly
[Errno 2] No such file or directory: 'C:\\Users\\Ryan Wood\\imgsrc\\srv\\generate.py' (Error Code: 1)

Below is the debug log file:
Spoiler:

calibre Debug log
calibre 4.2* [64bit] embedded-python: True is64bit: True
Windows-10-10.0.18362-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.18362')
Python 2.7.16+
Windows: ('10', '10.0.18362', 'SP0', u'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: DeDRM (6, 6, 3) && K4PC, K4Mac, Kindle Mobi and Topaz DeDRM (0, 3, 5) && Inept Epub DeDRM (0, 1, 7) && Ignoble Epub DeDRM (0, 1, 6) && Open With (1, 5, 10) && Find Duplicates (1, 6, 3) && Inept PDF DeDRM (0, 1, 4) && eReader PDB 2 PML (0, 0, 5)
calibre 4.2* [64bit] embedded-python: True is64bit: True
Windows-10-10.0.18362-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.18362')
Python 2.7.16+
Windows: ('10', '10.0.18362', 'SP0', u'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: DeDRM (6, 6, 3) && K4PC, K4Mac, Kindle Mobi and Topaz DeDRM (0, 3, 5) && Inept Epub DeDRM (0, 1, 7) && Ignoble Epub DeDRM (0, 1, 6) && Open With (1, 5, 10) && Find Duplicates (1, 6, 3) && Inept PDF DeDRM (0, 1, 4) && eReader PDB 2 PML (0, 0, 5)
Turning on automatic hidpi scaling
devicePixelRatio: 1.0
logicalDpi: 96.0 x 96.0
physicalDpi: 91.8418079096 x 91.745819398
Using calibre Qt style: True
[0.00] Starting up...
[0.00] Showing splash screen...
[0.58] splash screen shown
[0.58] Initializing db...
[0.77] db initialized
[0.77] Constructing main UI...
[3.58] main UI initialized...
[3.58] Hiding splash screen
[6.05] splash screen hidden
[6.05] Started up in 6.05 seconds with 3941 books
Open: C:\Program Files\Calibre2\ebook-viewer.exe (file): E:\Users\Ryan\Documents\Calibre Library\Jim Hewitt\Egypt Visual Sourcebook (6669)\Egypt Visual Sourcebook - Jim Hewitt.epub (args):
Running Open With commandline: u'"C:\\Program Files\\Calibre2\\ebook-viewer.exe" "E:\\Users\\Ryan\\Documents\\Calibre Library\\Jim Hewitt\\Egypt Visual Sourcebook (6669)\\Egypt Visual Sourcebook - Jim Hewitt.epub"'


Any help would be appreciated as I am ready to pull my hair out!

Last edited by theducks; 10-31-2019 at 03:46 PM. Reason: spoiler tagged
woodr2011 is offline   Reply With Quote
Old 10-31-2019, 01:16 PM   #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: 45,149
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
You are running from source, see https://www.mobileread.com/forums/sh...d.php?t=324376
kovidgoyal is offline   Reply With Quote
Advert
Old 10-31-2019, 04:31 PM   #3
woodr2011
Connoisseur
woodr2011 began at the beginning.
 
Posts: 53
Karma: 10
Join Date: Aug 2015
Device: PC and laptop
Quote:
Originally Posted by kovidgoyal View Post
Hi Kovid,

Thank you for your reply. I am indeed running from source and I have not had any trouble doing so for several years now; however, I am interested in running the app normally. Could you give me the procedure? I neglected to make a record of it, unfortunately. I remember it as being quite a simple process.

Thank you again,

Ryan
woodr2011 is offline   Reply With Quote
Old 10-31-2019, 04:48 PM   #4
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: 21,600
Karma: 29709834
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Moderator Notice
Don't post the same thing twice - I deleted your other thread

Read the Guidelines

BR
BetterRed is online now   Reply With Quote
Old 10-31-2019, 05:21 PM   #5
woodr2011
Connoisseur
woodr2011 began at the beginning.
 
Posts: 53
Karma: 10
Join Date: Aug 2015
Device: PC and laptop
Quote:
Originally Posted by BetterRed View Post
Don't post the same thing twice - I deleted your other thread

Read the Guidelines

BR

My apologies. I managed to find the procedure for deactivating the run from source process. Thankfully, I have preserved virtually all of my emails since 2011!
woodr2011 is offline   Reply With Quote
Advert
Old 10-31-2019, 05:38 PM   #6
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,341
Karma: 203719142
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
If you want to run calibre "normally," you should be able to just unset the CALIBRE_DEVELOP_FROM environment variable.
DiapDealer is offline   Reply With Quote
Old 10-31-2019, 05:57 PM   #7
woodr2011
Connoisseur
woodr2011 began at the beginning.
 
Posts: 53
Karma: 10
Join Date: Aug 2015
Device: PC and laptop
Quote:
Originally Posted by DiapDealer View Post
If you want to run calibre "normally," you should be able to just unset the CALIBRE_DEVELOP_FROM environment variable.
Yes, I deleted the variable. I had been running Calibre from source since 2015, so my memories of the process were scant. Has the program undergone structural changes in the interim that prevent scripts from running as before? Thank you for replying.
woodr2011 is offline   Reply With Quote
Old 10-31-2019, 06:06 PM   #8
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: 21,600
Karma: 29709834
Join Date: Mar 2012
Location: Sydney Australia
Device: none
What does the script do?

BR
BetterRed is online now   Reply With Quote
Old 10-31-2019, 08:12 PM   #9
woodr2011
Connoisseur
woodr2011 began at the beginning.
 
Posts: 53
Karma: 10
Join Date: Aug 2015
Device: PC and laptop
Quote:
Originally Posted by BetterRed View Post
What does the script do?

BR
The script renamed certain menu buttons and drop down options to make Calibre look more like a general file organization utility. "Add Books" became "Add Items," for example. It worked flawlessly until the latest Calibre update, which created a Python error when trying to open all of my ebooks. I was happy to sacrifice the script for a fully functional Calibre!
woodr2011 is offline   Reply With Quote
Old 10-31-2019, 10:03 PM   #10
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: 45,149
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
you just need to update the source checkout and it will continue to work.
kovidgoyal is offline   Reply With Quote
Old 11-02-2019, 08:28 PM   #11
woodr2011
Connoisseur
woodr2011 began at the beginning.
 
Posts: 53
Karma: 10
Join Date: Aug 2015
Device: PC and laptop
Quote:
Originally Posted by kovidgoyal View Post
you just need to update the source checkout and it will continue to work.
How would I update the source checkout exactly? Forgive my programming puerility.
woodr2011 is offline   Reply With Quote
Old 11-02-2019, 09:54 PM   #12
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: 45,149
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Run


git pull

in the directory where you checked out the calibre source code

https://manual.calibre-ebook.com/develop.html
kovidgoyal is offline   Reply With Quote
Old 11-04-2019, 05:26 PM   #13
woodr2011
Connoisseur
woodr2011 began at the beginning.
 
Posts: 53
Karma: 10
Join Date: Aug 2015
Device: PC and laptop
Quote:
Originally Posted by kovidgoyal View Post
Run


git pull

in the directory where you checked out the calibre source code

https://manual.calibre-ebook.com/develop.html


I would need step-by-step directions if you are up for it.
woodr2011 is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Python function terminated unexpectedly... tarmarajah Calibre 33 12-10-2017 08:18 PM
Calibre produces Python function terminated unexpectedly roelvdh Calibre 6 09-09-2013 07:50 PM
Python function terminated unexpectedly Borodin Calibre 2 08-21-2013 03:51 AM
Running recipe error: Python function terminated unexpectedly (Error Code: 1) jpassarella Recipes 0 10-05-2012 12:54 PM
Error: Python function terminated unexpectedly LastMile Calibre 11 01-14-2011 06:07 PM


All times are GMT -4. The time now is 04:13 PM.


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