![]() |
#1 |
Connoisseur
![]() 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:
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 |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Connoisseur
![]() Posts: 53
Karma: 10
Join Date: Aug 2015
Device: PC and laptop
|
Quote:
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 |
|
![]() |
![]() |
![]() |
#4 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#5 | |
Connoisseur
![]() Posts: 53
Karma: 10
Join Date: Aug 2015
Device: PC and laptop
|
Quote:
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! |
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#7 |
Connoisseur
![]() Posts: 53
Karma: 10
Join Date: Aug 2015
Device: PC and laptop
|
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.
|
![]() |
![]() |
![]() |
#8 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,600
Karma: 29709834
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
What does the script do?
BR |
![]() |
![]() |
![]() |
#9 |
Connoisseur
![]() Posts: 53
Karma: 10
Join Date: Aug 2015
Device: PC and laptop
|
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!
|
![]() |
![]() |
![]() |
#10 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#11 |
Connoisseur
![]() Posts: 53
Karma: 10
Join Date: Aug 2015
Device: PC and laptop
|
|
![]() |
![]() |
![]() |
#12 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#13 | |
Connoisseur
![]() Posts: 53
Karma: 10
Join Date: Aug 2015
Device: PC and laptop
|
Quote:
I would need step-by-step directions if you are up for it. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |