View Single Post
Old 10-16-2014, 06:56 PM   #1067
Peter Ahlstrom
Connoisseur
Peter Ahlstrom ought to be getting tired of karma fortunes by now.Peter Ahlstrom ought to be getting tired of karma fortunes by now.Peter Ahlstrom ought to be getting tired of karma fortunes by now.Peter Ahlstrom ought to be getting tired of karma fortunes by now.Peter Ahlstrom ought to be getting tired of karma fortunes by now.Peter Ahlstrom ought to be getting tired of karma fortunes by now.Peter Ahlstrom ought to be getting tired of karma fortunes by now.Peter Ahlstrom ought to be getting tired of karma fortunes by now.Peter Ahlstrom ought to be getting tired of karma fortunes by now.Peter Ahlstrom ought to be getting tired of karma fortunes by now.Peter Ahlstrom ought to be getting tired of karma fortunes by now.
 
Posts: 80
Karma: 500000
Join Date: Oct 2011
Location: Utah
Device: iPad
I'm getting a bug in version 75 of the script (OS X version) today, but only on some files. Here's the report:

Quote:
Traceback (most recent call last):
File "/Applications/KindleUnpack v0.75.app/Contents/Resources/kindleunpack.py", line 968, in <module>
sys.exit(main())
File "/Applications/KindleUnpack v0.75.app/Contents/Resources/kindleunpack.py", line 957, in main
unpackBook(infile, outdir, apnxfile, epubver, use_hd)
File "/Applications/KindleUnpack v0.75.app/Contents/Resources/kindleunpack.py", line 871, in unpackBook
process_all_mobi_headers(files, apnxfile, sect, mhlst, K8Boundary, False, epubver, use_hd)
File "/Applications/KindleUnpack v0.75.app/Contents/Resources/kindleunpack.py", line 761, in process_all_mobi_headers
imgnames, image_ptr = processCRES(i, files, imgnames, sect, data, beg, image_ptr, use_hd)
File "/Applications/KindleUnpack v0.75.app/Contents/Resources/kindleunpack.py", line 300, in processCRES
outimg = os.path.join(imgdest, imgname)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/posixpath.py", line 75, in join
if b.startswith('/'):
AttributeError: 'NoneType' object has no attribute 'starts with'
Judging by that, this may actually be some kind of python 2.7 bug, but I'm not sure... (And none of my images start with "/")

This is on a mobi today that I made by uploading an epub to KDP and downloading the preview file. Doing that and extracting via KindleUnpack v 75 was working earlier today, but some of the html and css coding has changed since then. The current file will unpack using v 64 of the script, but that's of course lacking features like the HD Image stuff. If I run the same epub through kindlegen, the resulting mobi will unpack fine with v 75.

Earlier today I could upload an ePub with image files larger than 127K and KDP would spit out a .mobi with the large files in it—but I had font embedding problems. I've fixed the font embedding problems, but now I can't tell if the large jpegs are still in there, since KindleUnpack is failing.

Last edited by Peter Ahlstrom; 10-16-2014 at 07:01 PM.
Peter Ahlstrom is offline   Reply With Quote