View Single Post
Old 09-02-2011, 05:01 PM   #1
nickredding
onlinenewsreader.net
nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'nickredding knows the difference between 'who' and 'whom'
 
Posts: 328
Karma: 10143
Join Date: Dec 2009
Location: Phoenix, AZ & Victoria, BC
Device: Kindle 3, Kindle Fire, IPad3, iPhone4, Playbook, HTC Inspire
mobi/writer2/indexer.py bug

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.
nickredding is offline   Reply With Quote