Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Development

Notices

Reply
 
Thread Tools Search this Thread
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: 327
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
Old 09-02-2011, 05:04 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,355
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Fixed.
kovidgoyal is offline   Reply With Quote
Advert
Old 09-04-2011, 01:45 PM   #3
mkgtu
Zealot
mkgtu is generous with chocolatemkgtu is generous with chocolatemkgtu is generous with chocolatemkgtu is generous with chocolatemkgtu is generous with chocolatemkgtu is generous with chocolatemkgtu is generous with chocolatemkgtu is generous with chocolatemkgtu is generous with chocolatemkgtu is generous with chocolatemkgtu is generous with chocolate
 
Posts: 139
Karma: 33000
Join Date: Feb 2010
Device: Currently:Voyage, Oasis 3, Kindle mobile apps, andKindle Fire
Fix in indexer.py

Having same problem with NYTimes. mobi version for Kindle
Have found your revised indexer.py, revised on 9-2-11
Would like to replace existing indexer.py but can't find it anywhere on my system. There is no src folder in the Calibre2 directory.

There error message I get does not refer as Nick's does to any User or AppData directories etc, but rather to "site-packages". I have no idea where to look. Have done multiple searches to no avail. Are some of these scripts online rather than local?
My OS is Windows7 sp2 64bit, Calibre2 directory is in ProgramFiles(x86)
Calibre is 8.17

Here is the tale end of the job details for the NYTimes (Paper edition, not web, 14.9mb), downloaded Sunday around 10:00 am.
BTW, all other recipes and downloads seem to work just fine.

Generating MOBI index for a periodical
Failed to generate MOBI index:
Traceback (most recent call last):
File "site-packages\calibre\ebooks\mobi\writer2\main.py", line 107, in generate_index
File "site-packages\calibre\ebooks\mobi\writer2\indexer.py", line 500, in __init__
File "site-packages\calibre\ebooks\mobi\writer2\indexer.py", line 52, in __init__
AttributeError: 'CNCX' object has no attribute '_ctoc'

MOBI output written to c:\users\michael\appdata\local\temp\calibre_0.8.17 _tmp_5ebcdq\segtc6_recipe_out.mobi
mkgtu is offline   Reply With Quote
Old 09-04-2011, 02:18 PM   #4
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 45,355
Karma: 27182818
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Just wait for 0.8.18 it will be fixed in that.
kovidgoyal is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Embedded font bug or CSS bug in ADE JSWolf ePub 10 06-11-2011 02:34 PM
EPUB to MOBI Bug? Lornoi Conversion 1 03-17-2011 01:03 PM
conversion failure/bug - epub-rtf-mobi cybmole Calibre 1 12-03-2010 05:37 AM
Unutterably Silly Confuse the Context Specific Advertising Indexer Thread NatCh Lounge 188 02-06-2009 07:01 PM
PRS-505 bug or eBookLib bug? porkupan Sony Reader 3 10-07-2007 10:44 PM


All times are GMT -4. The time now is 03:57 PM.


MobileRead.com is a privately owned, operated and funded community.