View Single Post
Old 09-29-2014, 04:56 PM   #9
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 74,249
Karma: 129333566
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
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

Last edited by JSWolf; 09-29-2014 at 04:59 PM.
JSWolf is offline   Reply With Quote