Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Recipes

Notices

Reply
 
Thread Tools Search this Thread
Old 04-15-2012, 10:18 AM   #1
ekeller
Junior Member
ekeller began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2012
Device: Sony PRS-600
Exception when downloading ePub

I am trying to download ePubs by overriding the build_index() method as described in the 'sticky: reusable code'. The files are located at
Code:
http://dp.x-cago.net/pdf/DePers.epub
http://pragprog.com/magazines/download/34.epub
The files are valid, I can drag them in Calibre OK -the first one is even created by Calibre. And everthing goes well, until in the end the process crashes with:
Code:
Creating EPUB Output...
67% Creating EPUB Output
# snip..
Failed to read image dimensions
Traceback (most recent call last):
  File "site-packages/calibre/ebooks/oeb/transforms/cover.py", line 124, in inspect_cover
  File "site-packages/calibre/utils/magick/draw.py", line 142, in identify_data
TypeError: must be string or read-only buffer, not lxml.etree._Element

Failed to read cover dimensions
EPUB output written to /home/edwin/Documents/git/calibre/pragpub/pragpub.epub
Output saved to   /home/edwin/Documents/git/calibre/pragpub/pragpub.epub
I tried replacing the downloaded 'cover_image.jpg' with Calibre's default cover, but that gave the same error.

Am I overlooking something or is there something broken?

Edwin
ekeller is offline   Reply With Quote
Old 04-18-2012, 11:28 AM   #2
ekeller
Junior Member
ekeller began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Apr 2012
Device: Sony PRS-600
Solved

I found a work around: convert the downloaded epub to OEB format and pass that on down the pipeline. See this thread

It even improves the formatting.
ekeller is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Downloading epub from public library elkrott General Discussions 24 03-19-2012 09:15 AM
downloading epub in recipe Biweekly.pl luka6000 Recipes 2 01-02-2012 06:43 PM
EPUB to PDF conversion unhandled exception CodingBeaver Conversion 1 07-26-2011 03:29 PM
problem downloading epub to ade Lola33 ePub 0 11-24-2010 10:18 AM
downloading google epub europas_ice Sony Reader 3 03-22-2009 10:27 AM


All times are GMT -4. The time now is 09:54 PM.


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