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

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 08-09-2008, 10:03 AM   #1
AprilHare
Wizard
AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.
 
AprilHare's Avatar
 
Posts: 2,827
Karma: 11253505
Join Date: Apr 2008
Device: Sony Reader PRS-T2
Problems converting epub books

Hello,
I just tried converting a number of sample books off Adobe's website (via Digital Editions) and it was a bit of a hit and miss affair:
'Thirteen Moons' and an extract of 'Hot' converted OK.
'The Father Thing' and 'Death and the Senator' failed.

Error logs follow:
Quote:
('ConversionError', u'.epub extraction failed'):
Failed to perform job: Convert book: The Father Thing
Detailed traceback:
Traceback (most recent call last):
File "", line 760, in worker
File "", line 729, in work
File "library.pyz/calibre.ebooks.lrf.any.convert_from", line 167, in main
File "library.pyz/calibre.ebooks.lrf.any.convert_from", line 137, in process_file
File "library.pyz/calibre.ebooks.lrf.epub.convert_from", line 42, in process_file
File "library.pyz/calibre.ebooks.lrf.epub.convert_from", line 33, in generate_html
ConversionError: .epub extraction failed
Log:
''
Quote:
('ConversionError', u'.epub extraction failed'):
Failed to perform job: Convert book: Death and the Senator
Detailed traceback:
Traceback (most recent call last):
File "", line 760, in worker
File "", line 729, in work
File "library.pyz/calibre.ebooks.lrf.any.convert_from", line 167, in main
File "library.pyz/calibre.ebooks.lrf.any.convert_from", line 137, in process_file
File "library.pyz/calibre.ebooks.lrf.epub.convert_from", line 42, in process_file
File "library.pyz/calibre.ebooks.lrf.epub.convert_from", line 33, in generate_html
ConversionError: .epub extraction failed
Log:
''
AprilHare is offline   Reply With Quote
Old 08-09-2008, 01:58 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: 26,116
Karma: 5101571
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
what version of calibre are you using?
kovidgoyal is online now   Reply With Quote
Old 08-09-2008, 07:59 PM   #3
AprilHare
Wizard
AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.
 
AprilHare's Avatar
 
Posts: 2,827
Karma: 11253505
Join Date: Apr 2008
Device: Sony Reader PRS-T2
Quote:
Originally Posted by kovidgoyal View Post
what version of calibre are you using?
Calibre 0.4.83 on Ubuntu Hardy Heron AMD64

Last edited by AprilHare; 08-09-2008 at 08:03 PM.
AprilHare is offline   Reply With Quote
Old 08-09-2008, 09:33 PM   #4
AprilHare
Wizard
AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.
 
AprilHare's Avatar
 
Posts: 2,827
Karma: 11253505
Join Date: Apr 2008
Device: Sony Reader PRS-T2
An update:
Tried more Adobe sampler eBooks:
God Is A Salesman: Learn From The Master (Extract), Sway (Extract), The Geography of Bliss: One Grump's Search for the Happiest Places in the World (Extract) and Trail of Crumbs: Hunger, Love, and the Search for Home (Extract) converted OK.
Alice in Wonderland and The Adventures of Sherlock Holmes refuse to add to the calibre database:

Error given:
Quote:
ERROR: Unhandled exception
not an .epub OCF container
Detailed traceback:
Traceback (most recent call last):
File "", line 448, in add_books
File "", line 460, in _add_books
File "library.pyz/calibre.ebooks.metadata.meta", line 72, in get_metadata
File "library.pyz/calibre.ebooks.metadata.epub", line 109, in get_metadata
File "library.pyz/calibre.ebooks.metadata.epub", line 80, in __init__
File "library.pyz/calibre.ebooks.metadata.epub", line 59, in __init__
EPubException: not an .epub OCF container
AprilHare is offline   Reply With Quote
Old 08-09-2008, 09:56 PM   #5
llasram
Reticulator of Tharn
llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.
 
llasram's Avatar
 
Posts: 622
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
Quote:
Originally Posted by AprilHare View Post
Alice in Wonderland and The Adventures of Sherlock Holmes refuse to add to the calibre database:
I'm having trouble finding links to these books, but did find another thread on mobileread noting that they fail Adobe's own epubcheck EPUB-compliance-checking tool. It's quite possible these books are malformed, but if DE reads them calibre should probably just give a warning and keep on going... Could you post or PM me a link to these books? Thanks.
llasram is offline   Reply With Quote
Old 08-09-2008, 09:59 PM   #6
DMcCunney
New York Editor
DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.DMcCunney ought to be getting tired of karma fortunes by now.
 
DMcCunney's Avatar
 
Posts: 5,169
Karma: 7350237
Join Date: Aug 2007
Device: Palm TX, Azpen A727 tablet, Fujitsu Lifebook p2110 w/ FBReader
Quote:
Originally Posted by llasram View Post
I'm having trouble finding links to these books, but did find another thread on mobileread noting that they fail Adobe's own epubcheck EPUB-compliance-checking tool. It's quite possible these books are malformed, but if DE reads them calibre should probably just give a warning and keep on going... Could you post or PM me a link to these books? Thanks.
Find them here.
______
Dennis
DMcCunney is offline   Reply With Quote
Old 08-10-2008, 12:08 AM   #7
AprilHare
Wizard
AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.
 
AprilHare's Avatar
 
Posts: 2,827
Karma: 11253505
Join Date: Apr 2008
Device: Sony Reader PRS-T2
Quote:
Originally Posted by llasram View Post
I'm having trouble finding links to these books, but did find another thread on mobileread noting that they fail Adobe's own epubcheck EPUB-compliance-checking tool. It's quite possible these books are malformed, but if DE reads them calibre should probably just give a warning and keep on going... Could you post or PM me a link to these books? Thanks.
See DMcCunney response for URL to the ebooks.
Article link?
AprilHare is offline   Reply With Quote
Old 08-10-2008, 09:03 PM   #8
llasram
Reticulator of Tharn
llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.
 
llasram's Avatar
 
Posts: 622
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
Quote:
Originally Posted by AprilHare View Post
See DMcCunney response for URL to the ebooks.
They sure made downloading the books a pain -- you need to have ADE installed, which meant booting a Windows VM yada yada.

In any case, I took a look at the Alice in Wonderland book and it's completely missing the 'mimetype' file indicating that the containing ZIP archive is in fact an EPUB ebook. If those two ADE sample books are the only "EPUB" books with with this problem, then I don't think calibre -- or other EPUB tools -- should treat them as EPUB books. You can mostly-fix them yourself by adding a file named "mimetype" containing just the string "application/epub+zip" (no newline at the end) to the ZIP archives.

Quote:
Originally Posted by AprilHare View Post
Article link?
http://www.mobileread.com/forums/sho...501#post129662
llasram is offline   Reply With Quote
Old 08-11-2008, 10:25 AM   #9
AprilHare
Wizard
AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.AprilHare ought to be getting tired of karma fortunes by now.
 
AprilHare's Avatar
 
Posts: 2,827
Karma: 11253505
Join Date: Apr 2008
Device: Sony Reader PRS-T2
Well ADE is set up for DRM so yeah they don't make things too easy
I wonder how many of the first EPUB books will be malformed in this way and how they can be detected (except for the .epub filename)?

Quote:
Originally Posted by llasram View Post
They sure made downloading the books a pain -- you need to have ADE installed, which meant booting a Windows VM yada yada.

In any case, I took a look at the Alice in Wonderland book and it's completely missing the 'mimetype' file indicating that the containing ZIP archive is in fact an EPUB ebook. If those two ADE sample books are the only "EPUB" books with with this problem, then I don't think calibre -- or other EPUB tools -- should treat them as EPUB books. You can mostly-fix them yourself by adding a file named "mimetype" containing just the string "application/epub+zip" (no newline at the end) to the ZIP archives.



http://www.mobileread.com/forums/sho...501#post129662
AprilHare is offline   Reply With Quote
Old 08-11-2008, 12:08 PM   #10
jpenglish
Member
jpenglish began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Jun 2008
Location: Austin, TX
Device: Adobe DE, MS Reader, Mobipocket Reader, Sony 505
Quote:
Originally Posted by llasram View Post
They sure made downloading the books a pain -- you need to have ADE installed, which meant booting a Windows VM yada yada.

In any case, I took a look at the Alice in Wonderland book and it's completely missing the 'mimetype' file indicating that the containing ZIP archive is in fact an EPUB ebook. If those two ADE sample books are the only "EPUB" books with with this problem, then I don't think calibre -- or other EPUB tools -- should treat them as EPUB books. You can mostly-fix them yourself by adding a file named "mimetype" containing just the string "application/epub+zip" (no newline at the end) to the ZIP archives.



http://www.mobileread.com/forums/sho...501#post129662
One other detail if you add the mimetype file. That file needs to go into the root directory of the zipfile, and it cannot be compressed.

-----------------------------------------jp english
jpenglish is offline   Reply With Quote
Old 08-11-2008, 01:00 PM   #11
llasram
Reticulator of Tharn
llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.llasram ought to be getting tired of karma fortunes by now.
 
llasram's Avatar
 
Posts: 622
Karma: 400000
Join Date: Jan 2007
Location: EST
Device: Sony PRS-505
Quote:
Originally Posted by jpenglish View Post
One other detail if you add the mimetype file. That file needs to go into the root directory of the zipfile, and it cannot be compressed.
And to actually be OCF-compliant it needs to be the very first file in the archive and not have any extended attributes attached. That's why I said mostly-fixed . As long as it's in the root directory and contains the right MIME type, calibre's EPUB-parsing code will handle it. Not a guarantee of future behavior, but enough to get those files working now.
llasram is offline   Reply With Quote
Old 08-11-2008, 07:31 PM   #12
wallcraft
reader
wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.wallcraft ought to be getting tired of karma fortunes by now.
 
wallcraft's Avatar
 
Posts: 6,979
Karma: 5183568
Join Date: Mar 2006
Location: Mississippi, USA
Device: Kindle 3 and Fire
Quote:
Originally Posted by llasram View Post
You can mostly-fix them yourself by adding a file named "mimetype" containing just the string "application/epub+zip" (no newline at the end) to the ZIP archives.
The python script oeb2epub appears to do exactly that if its input directory contains an exploded ePub.
wallcraft is offline   Reply With Quote
Old 08-11-2008, 08:15 PM   #13
Hadrien
Feedbooks.com Co-Founder
Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.Hadrien understands the importance of being earnest.
 
Hadrien's Avatar
 
Posts: 2,265
Karma: 145123
Join Date: Nov 2006
Location: Paris, France
Device: Sony PRS-t-1/350/300/500/505/600/700, Nexus S, iPad
I've tried epub2lrf several times with books from Feedbooks and it always worked quite well.
Hadrien 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
Problems converting .chm to .mobi (or .epub) Chris. Calibre 4 10-04-2010 08:47 PM
Problems converting LRF to EPUB rbur Calibre 2 06-21-2010 06:28 PM
Problems converting Baen CD mobis to EPUB Robotech_Master Calibre 8 04-14-2010 06:10 AM
Problems converting ePub Feed files into Mobipocket Format torben Calibre 21 02-21-2009 02:42 PM
Problems converting tor books edembowski Calibre 8 04-14-2008 10:18 AM


All times are GMT -4. The time now is 11:26 PM.


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