View Single Post
Old 12-23-2015, 06:51 AM   #1190
elmimmo
Member
elmimmo began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Oct 2012
Device: Kindle 4
I have a mobi which KindleUnpack v0.80 is not able to unpack. I tried too with the latest version at GitHub. This is what happens:

Code:
$ ./kindleunpack.py book.mobi 
KindleUnpack v0.80
   Based on initial mobipocket version Copyright © 2009 Charles M. Hannum <root@ihack.net>
   Extensive Extensions and Improvements Copyright © 2009-2014 
       by:  P. Durrant, K. Hendricks, S. Siebert, fandrieu, DiapDealer, nickredding, tkeo.
   This program is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation, version 3.
Unpacking Book...
Palm DB type: BOOKMOBI, 118 sections.
Error: 'utf8' codec can't decode byte 0xe8 in position 33: invalid continuation byte
Traceback (most recent call last):
  File "./kindleunpack.py", line 1004, in main
    unpackBook(infile, outdir, apnxfile, epubver, use_hd)
  File "./kindleunpack.py", line 878, in unpackBook
    mh = MobiHeader(sect,0)
  File "./mobi_header.py", line 524, in __init__
    self.parseMetaData()
  File "./mobi_header.py", line 818, in parseMetaData
    addValue(name, content.decode(codec))
  File "/usr/local/Cellar/python/2.7.10_2/Frameworks/Python.framework/Versions/2.7/lib/python2.7/encodings/utf_8.py", line 16, in decode
    return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xe8 in position 33: invalid continuation byte
Tried on Mac OS X 10.10.5, Python 2.7.10 (default, Oct 27 2015, 10:27:07) installed via Homebrew.

Last edited by elmimmo; 12-23-2015 at 06:53 AM. Reason: Added environment details.
elmimmo is offline   Reply With Quote