View Single Post
Old 07-16-2019, 06:35 AM   #1248
Rev. Bob
Wizard
Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.Rev. Bob ought to be getting tired of karma fortunes by now.
 
Rev. Bob's Avatar
 
Posts: 1,760
Karma: 9918418
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo H2O, iPad mini 3, Kindle Touch
Quote:
Originally Posted by lumpynose View Post
Something about write and KeyError at the bottom of the log file.

Edit: unchecking "Remove unmanifested files from ePub" gets rid of this error and it finishes successfully.
Let’s take a look...

Spoiler:
(Chopped for clarity…)

Looking for unmanifested files
Found file to to remove: OEBPS/@public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-3.htm.html

Applying smarten punctuation
Roy Blakeley in the Haunted Camp - ERROR: Traceback (most recent call last):
File "calibre_plugins.modify_epub.modify", line 81, in process_book
File "calibre_plugins.modify_epub.container", line 680, in write
KeyError: u'OEBPS/@public@vhost@g@gutenberg@html@files@31452@31452-h@31452-h-3.htm.html'

ePub not changed after 0.38 seconds

My instinct on this one is to look at the odd filename. I suspect the @ symbols may be causing trouble, even though neither Windows nor MacOS forbids them. Another possibility could be the sequence of smartening vs. removal; the log shows that the plugin is trying to apply both functions to the file. If it’s getting deleted before it gets smartened, that could definitely complicate matters.

Could you see if you get the same error when only trying to remove unmanifested files?
Rev. Bob is offline   Reply With Quote