I tried to unpack a deDRM'ed AZW file but got the quote below. Any hint how to make it work with this AZW file?
Code:
MobiUnpack 0.53
Based on initial version Copyright © 2009 Charles M. Hannum <root@ihack.net>
Extensions / Improvements Copyright © 2009-2012 P. Durrant, K. Hendricks, S. Siebert, fandrieu, DiapDealer, nickredding.
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
Mobi Version: 6
Codec: utf-8
Title: ••••••••••
Palmdoc compression
Processing Mobi format Ebook ...
Warning: Unknown metadata with id 405 found
Warning: Unknown metadata with id 406 found
Warning: Unknown metadata with id 407 found
Warning: Unknown metadata with id 403 found
Unpack raw markup language
Unpacking images, resources, fonts, etc
Traceback (most recent call last):
File "/Users/jorge/bin/mobi_unpack.py", line 1087, in <module>
sys.exit(main())
File "/Users/jorge/bin/mobi_unpack.py", line 1075, in main
unpackBook(infile, outdir)
File "/Users/jorge/bin/mobi_unpack.py", line 957, in unpackBook
process_all_mobi_headers(files, sect, mhlst, K8Boundary, False)
File "/Users/jorge/bin/mobi_unpack.py", line 705, in process_all_mobi_headers
usize, fflags, dstart, xor_len, xor_start = struct.unpack_from('>LLLLL',data,4)
struct.error: unpack_from requires a buffer of at least 20 bytes