I'm getting the following traceback with a large recipe (New York Times Web)
Code:
Failed to generate MOBI index:
Traceback (most recent call last):
File "C:\Users\Nick\calibre\src\calibre\ebooks\mobi\writer2\main.py", line 107, in generate_index
File "C:\Users\Nick\calibre\src\calibre\ebooks\mobi\writer2\indexer.py", line 500, in __init__
File "C:\Users\Nick\calibre\src\calibre\ebooks\mobi\writer2\indexer.py", line 52, in __init__
AttributeError: 'CNCX' object has no attribute '_ctoc'
That line 52 in the CNCX __init__ method is
Code:
pad = 0xfbf8 - self._ctoc.tell()
which I believe should actually read
Code:
pad = 0xfbf8 - buf.tell()
I tested the change and it works.