Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 11-29-2015, 09:06 PM   #1
MontyJ
Addict
MontyJ began at the beginning.
 
Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
Question Unable to open/convert MOBI files

Environment: Mint Linux

I downloaded a nice collection of MOBI ebooks. I can import the books into my working library w/o any errors, but most of the ebooks simply will not open for reading or converting in Calibre.

The error: MobiError: Unknown book type: '\x00\x00\x00\x00\x00\x00\x00\x00

The files appear the right size, etc, and I can open and read the books in the Linux version of FBReader, so I know the files are not corrupt.

Any ideas?

Monty
MontyJ is offline   Reply With Quote
Old 11-29-2015, 10:27 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: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That error indicates the file you are trying to read is full of null bytes. Almost certainly a damaged file. Try opening the *exact same file* in fbreader.
kovidgoyal is online now   Reply With Quote
Advert
Old 11-29-2015, 10:40 PM   #3
MontyJ
Addict
MontyJ began at the beginning.
 
Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
Quote:
Originally Posted by kovidgoyal View Post
That error indicates the file you are trying to read is full of null bytes. Almost certainly a damaged file. Try opening the *exact same file* in fbreader.
Yes, that is what I did...exact same file. FB opens and I can read it fine, but not in Calibre.

Here are the details:

calibre, version 1.25.0
ERROR: Could not open ebook: Unknown book type: '\x00\x00\x00\x00\x00\x00\x00\x00'

Traceback (most recent call last):
File "/usr/lib/calibre/calibre/gui2/viewer/main.py", line 40, in run
Thread.run(self)
File "/usr/lib/python2.7/threading.py", line 763, in run
self.__target(*self.__args, **self.__kwargs)
File "/usr/lib/calibre/calibre/ebooks/oeb/iterator/book.py", line 99, in __enter__
{}, self.base)
File "/usr/lib/calibre/calibre/customize/conversion.py", line 241, in __call__
log, accelerators)
File "/usr/lib/calibre/calibre/ebooks/conversion/plugins/mobi_input.py", line 33, in convert
options.debug_pipeline, try_extra_data_fix=True)
File "/usr/lib/calibre/calibre/ebooks/mobi/reader/mobi6.py", line 83, in __init__
raise MobiError('Unknown book type: %s' % repr(self.ident))
MobiError: Unknown book type: '\x00\x00\x00\x00\x00\x00\x00\x00'

Last edited by MontyJ; 11-29-2015 at 10:43 PM. Reason: Add info
MontyJ is offline   Reply With Quote
Old 11-29-2015, 11:17 PM   #4
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,508
Karma: 78910112
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
You have a very old version of calibre. It's quite possible that there are fixes since then which might handle this.
PeterT is offline   Reply With Quote
Old 11-29-2015, 11:45 PM   #5
MontyJ
Addict
MontyJ began at the beginning.
 
Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
Quote:
Originally Posted by PeterT View Post
You have a very old version of calibre. It's quite possible that there are fixes since then which might handle this.
Yea, noticed that. I had done a normal package install from the default distribution source. I didn't think too much of it, as an experienced member had posted, re a different issue:

Installing the official binaries vs. the repository version will not interfere with your configuration!

In any case, I just went through the binary install from the Calibre site (V 2.45) using Kovid's script. It installed just fine, but the error is still similar on the same file! Here is the errors with 2.45:

calibre, version 2.45.0
ERROR: Could not open ebook: Unknown book type: '\x00\x00\x00\x00\x00\x00\x00\x00'

Traceback (most recent call last):
File "site-packages/calibre/gui2/viewer/main.py", line 37, in run
File "threading.py", line 763, in run
File "site-packages/calibre/ebooks/oeb/iterator/book.py", line 112, in __enter__
File "site-packages/calibre/customize/conversion.py", line 241, in __call__
File "site-packages/calibre/ebooks/conversion/plugins/mobi_input.py", line 33, in convert
File "site-packages/calibre/ebooks/mobi/reader/mobi6.py", line 78, in __init__
MobiError: Unknown book type: '\x00\x00\x00\x00\x00\x00\x00\x00'
MontyJ is offline   Reply With Quote
Advert
Old 11-29-2015, 11:53 PM   #6
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Warning! Distro version of calibre ahead!

Please uninstall your distro calibre and re-install the version on calibre's website.
There is no official support for distro calibre packages, only errors which can be duplicated with the official binaries.

Distros mess around with the sources too much -- besides for being terribly out of date usually.



EDIT: crosspost, and I see you still have the problem.
Must reload page more often.

Last edited by eschwartz; 11-29-2015 at 11:56 PM.
eschwartz is offline   Reply With Quote
Old 11-29-2015, 11:58 PM   #7
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Well, if you are certain the same file works in fbreader but not in calibre, then there isn't much more we can do without a way to duplicate the problem. You'll need to upload a copy of the faulty book: http://calibre-ebook.com/bugs
eschwartz is offline   Reply With Quote
Old 11-30-2015, 09:52 AM   #8
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,183
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
I just downloaded a azw from Amazon and it loaded and converted find in calibre.
Delete and re-download.

Using Mint 17.2 Cinnamon.

bernie

p.s.
Tried one of my old prc files off the original Baen CD no problems.
gbm is offline   Reply With Quote
Old 11-30-2015, 10:14 AM   #9
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by gbm View Post
I just downloaded a azw from Amazon and it loaded and converted find in calibre.
Delete and re-download.

Using Mint 17.2 Cinnamon.

bernie

p.s.
Tried one of my old prc files off the original Baen CD no problems.
Just because your books were fine, does not mean another book wasn't.
Some files are outliers, and have weird oddnesses that calibre doesn't expect. If another application can read them, it is worth seeing if calibre can figure out how to read them as well.

Now, calibre has a long history, and the chances of such a book are low. Not completely impossible though, and @MontyJ has stated the same files do open in FBReader.
eschwartz is offline   Reply With Quote
Old 11-30-2015, 10:20 AM   #10
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: 45,345
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Need the file
kovidgoyal is online now   Reply With Quote
Old 11-30-2015, 01:37 PM   #11
gbm
Wizard
gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.gbm ought to be getting tired of karma fortunes by now.
 
Posts: 2,183
Karma: 8888888
Join Date: Jun 2010
Device: Kobo Clara HD,Hisence Sero 7 Pro RIP, Nook STR, jetbook lite
Quote:
Originally Posted by eschwartz View Post
Just because your books were fine, does not mean another book wasn't.
Some files are outliers, and have weird oddnesses that calibre doesn't expect. If another application can read them, it is worth seeing if calibre can figure out how to read them as well.

Now, calibre has a long history, and the chances of such a book are low. Not completely impossible though, and @MontyJ has stated the same files do open in FBReader.
That is why I said delete--should have said rename-- and redownload. If calibre can read my 13 year-old prc files it should read newer non drm MOBI with no problems.


bernie
gbm is offline   Reply With Quote
Old 11-30-2015, 01:42 PM   #12
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,421
Karma: 85400180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Quote:
Originally Posted by gbm View Post
That is why I said delete--should have said rename-- and redownload. If calibre can read my 13 year-old prc files it should read newer non drm MOBI with no problems.


bernie
The OP made it sound as though they were just downloaded.
And redownloading will most likely just get the same exact file again especially as Amazon are not the only source of MOBI.
And you are assuming that whatever the source, they are regenerating the MOBI from scratch on each download. Which may not necessarily be the case even with Amazon.

...

Age has little or nothing to do with it.



Bottom line -- Kovid needs to see the file, then maybe something could be done.

Last edited by eschwartz; 11-30-2015 at 01:44 PM.
eschwartz is offline   Reply With Quote
Old 12-01-2015, 07:40 PM   #13
MontyJ
Addict
MontyJ began at the beginning.
 
Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
Apologies for the delay!

Do I need to register at ubuntu to upload the file? The link above takes me to their login page and I do not have an ubuntu login.

I will gladly upload the .mobi file in question.

Just to clarify:

I downloaded a batch of .mobi ebooks. All of them will import into Calibre and show correct metadata. But when I try to open the book to read or convert, I get the error message I posted previously. This is in version 2.45.0.

With FBReader, I can open and read the book normally. It displays normally, as did a few others I tried that Calibre would not display.

Monty
MontyJ is offline   Reply With Quote
Old 12-01-2015, 09:17 PM   #14
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 13,508
Karma: 78910112
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Bug tracker is here --> http://calibre-ebook.com/bugs
PeterT is offline   Reply With Quote
Old 12-01-2015, 09:40 PM   #15
MontyJ
Addict
MontyJ began at the beginning.
 
Posts: 224
Karma: 10
Join Date: Jul 2012
Device: Kindle
I created a bug report and uploaded one of the ebooks that produced the error.

MontyJ
MontyJ is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to open my epub files (7.4) under fedora. Andjety Sigil 14 01-05-2014 06:54 PM
Unable to open MOBI books Cefoxtrot Calibre 1 11-24-2013 10:57 PM
mobi to epub conversion fail and unable to open vulcan_girl Conversion 1 12-24-2012 01:27 PM
Unable to convert to MOBI chota Conversion 7 03-06-2011 06:19 AM
Classic Nook unable to open certain files Craig_P Barnes & Noble NOOK 1 01-06-2011 05:01 PM


All times are GMT -4. The time now is 11:07 AM.


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