View Single Post
Old 09-29-2014, 05:14 PM   #11
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,617
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
Quote:
Originally Posted by JSWolf View Post
I've come across an error trying to import a Mobi eBook from Amazon. I am using Windows 7 32-bit and Python 32-bit (version 2.7.6) from Python.org with the 32-bit Sigil.

Code:
Status: failed

Traceback (most recent call last):
  File "C:\Program Files\Sigil\plugin_launchers\\python\launcher.py", line 137, in launch
    self.exitcode = target_script.run(container)
  File "C:\Users\Jon\AppData\Local\sigil-ebook\sigil\plugins\KindleImport\plugin.py", line 111, in run
    mobidir, mobi_html, mobi_opf, mobiBaseName = mp.unpackMOBI(temp_dir)
  File "C:\Users\Jon\AppData\Local\sigil-ebook\sigil\plugins\KindleImport\mobi_stuff.py", line 92, in unpackMOBI
    mu = _mu.unpackBook(self.infile, outdir, epubver=self.ePubVersion, use_hd=self.useHDImages)
  File "C:\Users\Jon\AppData\Local\sigil-ebook\sigil\plugins\KindleImport\kindleunpack\kindleunpack.py", line 871, in unpackBook
    process_all_mobi_headers(files, apnxfile, sect, mhlst, K8Boundary, False, epubver, use_hd)
  File "C:\Users\Jon\AppData\Local\sigil-ebook\sigil\plugins\KindleImport\kindleunpack\kindleunpack.py", line 794, in process_all_mobi_headers
    processMobi7(mh, metadata, sect, files, imgnames)
  File "C:\Users\Jon\AppData\Local\sigil-ebook\sigil\plugins\KindleImport\kindleunpack\kindleunpack.py", line 641, in processMobi7
    opf.writeOPF()
  File "C:\Users\Jon\AppData\Local\sigil-ebook\sigil\plugins\KindleImport\kindleunpack\mobi_opf.py", line 529, in writeOPF
    data = self.buildMobi7OPF()
  File "C:\Users\Jon\AppData\Local\sigil-ebook\sigil\plugins\KindleImport\kindleunpack\mobi_opf.py", line 467, in buildMobi7OPF
    opf_metadata = self.buildOPFMetadata(metadata_tag)
  File "C:\Users\Jon\AppData\Local\sigil-ebook\sigil\plugins\KindleImport\kindleunpack\mobi_opf.py", line 300, in buildOPFMetadata
    imageName = self.imgnames[imageNumber]
IndexError: cannot fit 'long' into an index-sized integer
Error: cannot fit 'long' into an index-sized integer
Hey Jon,

By any chance, does that same book fail when trying to unpack using KindleUnpack (plugin or stand-alone)? If so, we may want to take this to the KindleUnpack thread. That's what the KindleImport plugin uses.

Last edited by DiapDealer; 09-29-2014 at 05:17 PM.
DiapDealer is offline   Reply With Quote