Thread: EPUB output
View Single Post
Old 10-01-2008, 01:03 PM   #135
JeffElkins
Guru
JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.JeffElkins is no ebook tyro.
 
JeffElkins's Avatar
 
Posts: 780
Karma: 1416
Join Date: Jan 2008
Device: Kobo Clara 2E/HD, Kindle PW
Doing cleanup on the very few books that my batch job failed to convert:

Code:
any2epub --cover=cover.jpg complete_fuzzy.html
Produces:

Quote:
Traceback (most recent call last):
File "<string>", line 167, in <module>
File "<string>", line 163, in main
File "<string>", line 138, in any2epub
File "library.pyz/contextlib", line 33, in __exit__
File "library.pyz/contextlib", line 118, in nested
File "<string>", line 138, in any2epub
File "library.pyz/calibre.ebooks.epub.from_html", line 223, in convert
File "library.pyz/calibre.ebooks.epub.from_html", line 171, in process_title_page
File "/usr/lib/python2.5/site-packages/PIL/Image.py", line 1272, in save

File "/usr/lib/python2.5/site-packages/PIL/ImageFile.py", line 181, in load
seek(o)
ValueError: I/O operation on closed file
However if I modify the main html file, adding
Code:
<img src="cover.jpg">
at the start of the <body> the epub converts w/o error.
JeffElkins is offline   Reply With Quote