Thread
:
AZW Conversion Output Plugin
View Single Post
07-31-2011, 10:19 AM
#
31
tylau0
Connoisseur
Posts: 82
Karma: 10
Join Date: Oct 2010
Device: Kindle
Kovid, I have a problem running your inspect-mobi part of your source code on my Ubuntu 11.04 machine. Would you check the following error message?
Spoiler
:
> calibre-debug --inspect-mobi tnyt.azw
Traceback (most recent call last):
File "/usr/bin/calibre-debug", line 19, in <module>
sys.exit(main())
File "/usr/lib/calibre/calibre/debug.py", line 236, in main
inspect_mobi(opts.inspect_mobi)
File "/usr/lib/calibre/calibre/ebooks/mobi/debug.py", line 1184, in inspect_mobi
f = MOBIFile(stream)
File "/usr/lib/calibre/calibre/ebooks/mobi/debug.py", line 1117, in __init__
self.mobi_header.huffman_record_count)]
AttributeError: 'int' object has no attribute 'raw'
I check line 1117 of the corresponding source code as follows:
Spoiler
:
huffrecs = [r.raw for r in
xrange(self.mobi_header.huffman_record_offset,
self.mobi_header.huffman_record_offset +
self.mobi_header.huffman_record_count)]
Thanks.
tylau0
View Public Profile
Find More Posts by tylau0
Track Posts by tylau0 via RSS