Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 03-07-2011, 10:29 PM   #1
koland
Grand Sorcerer
koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.
 
Posts: 8,560
Karma: 8033155
Join Date: Aug 2008
Location: TN, USA
Device: kindle(all), nook, nookcolor, Sony, Kobo, epic, iphone, iPad, pc
Problem converting/opening books

I have two versions of a book, one a PRC and the other epub. Calibre won't open either one, nor do any conversion. I haven't tried another mobi reader, but I can open the epub using Nook for PC. I'm fairly certain that the epub was created via PubIt (there is no DRM on either, or isn't supposed to be). With a couple thousand books, I haven't run into this before.

This is the error I get trying to open the PRC:

calibre, version 0.7.47
ERROR: Could not open ebook: Unknown book type: '\x00BOOKMOB'

Traceback (most recent call last):
File "site-packages\calibre\gui2\viewer\main.py", line 62, in run
File "threading.py", line 483, in run
File "site-packages\calibre\ebooks\oeb\iterator.py", line 195, in __enter__
File "site-packages\calibre\customize\conversion.py", line 204, in __call__
File "site-packages\calibre\ebooks\mobi\input.py", line 26, in convert
File "site-packages\calibre\ebooks\mobi\reader.py", line 277, in __init__
MobiError: Unknown book type: '\x00BOOKMOB'


This is the error on the EPUB:
calibre, version 0.7.47
ERROR: Could not open ebook: unpack requires a string argument of length 22

Traceback (most recent call last):
File "site-packages\calibre\gui2\viewer\main.py", line 62, in run
File "threading.py", line 483, in run
File "site-packages\calibre\ebooks\oeb\iterator.py", line 195, in __enter__
File "site-packages\calibre\customize\conversion.py", line 204, in __call__
File "site-packages\calibre\ebooks\epub\input.py", line 137, in convert
File "site-packages\calibre\utils\zipfile.py", line 734, in __init__
File "site-packages\calibre\utils\zipfile.py", line 755, in _GetContents
File "site-packages\calibre\utils\zipfile.py", line 765, in _RealGetContents
File "site-packages\calibre\utils\zipfile.py", line 240, in _EndRecData
error: unpack requires a string argument of length 22


Any suggestions? I tried renaming the .EPUB as .ZIP and opening, but get an error that it isn't a zip file. Yet,the nook app opens it just fine. I just don't want to read it there. Running Calibre 0.7.47
koland is offline   Reply With Quote
Old 03-07-2011, 10:36 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: 43,853
Karma: 22666666
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Both of those files are corrupted.
kovidgoyal is online now   Reply With Quote
Advert
Old 03-07-2011, 11:12 PM   #3
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
I believe Nook prc files are ereader files - definitely not mobi. Not sure what extension you can pick to get Calibre to try and use it's ereader codebase.

It also sounds like you got both version from Barnes and Noble's web site directly/through your Nook. If so they're probably still drm encrypted, which means Calibre can't do anything with them.
ldolse is offline   Reply With Quote
Old 03-07-2011, 11:25 PM   #4
koland
Grand Sorcerer
koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.
 
Posts: 8,560
Karma: 8033155
Join Date: Aug 2008
Location: TN, USA
Device: kindle(all), nook, nookcolor, Sony, Kobo, epic, iphone, iPad, pc
Nook doesn't do PRC, it does PDB (ereader). I don't have any PDB files. Nor are the files from B&N and there is no DRM on either one.

The EPUB was created via pubit (and opens in the nook app, even though it's corrupted).

The PRC was created with mobicreator. I can't open it with anything, so far.

I'm suspecting an issue with the author's web server, possibly misinterpreting the mime types and it's adding something to each file (or cutting it off prematurely). I've sent a note to the author, asking him to download the files and see if he can open them.
koland is offline   Reply With Quote
Old 03-07-2011, 11:40 PM   #5
ldolse
Wizard
ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.ldolse is an accomplished Snipe hunter.
 
Posts: 1,337
Karma: 123455
Join Date: Apr 2009
Location: Malaysia
Device: PRS-650, iPhone
I see now - got confused with discussion of Nooks, epubs, and prcs at the same time. Odd that the nook app can read the epub - maybe an alternate zip program can do a partial extraction, at least to the point of wherever the corruption is - your suspicion is the most likely one.
ldolse is offline   Reply With Quote
Advert
Old 03-08-2011, 12:40 AM   #6
koland
Grand Sorcerer
koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.koland ought to be getting tired of karma fortunes by now.
 
Posts: 8,560
Karma: 8033155
Join Date: Aug 2008
Location: TN, USA
Device: kindle(all), nook, nookcolor, Sony, Kobo, epic, iphone, iPad, pc
The author reloaded, bypassing some type of yahoo software he uses for the web site. Looks like that was corrupting the files, as all is well now.

Thanks.
koland is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem in opening full library didymus Calibre 1 12-31-2009 06:30 AM
Problem converting mobipocket books Flub Calibre 3 08-31-2009 10:33 AM
problem with opening book on Kindle2 alcina Amazon Kindle 10 07-13-2009 12:25 PM
Having problem; mobi2oeb then opening the html in BookDesigner texasnightowl Workshop 4 03-04-2009 12:07 AM
problem opening pdf files from books.google.com arunava77 iRex 11 02-20-2009 01:30 AM


All times are GMT -4. The time now is 03:26 AM.


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