View Single Post
Old 02-01-2010, 11:05 PM   #98
lmamakos
Member
lmamakos began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Dec 2009
Device: PRS-600
Using Calibre 0.6.37, (on OSX Snow Leopard) the catalog creation fails if there are one or more books which do not have an author. I took a quick look, and I didn't notice this reported. Here's the error that pops up:

Code:
ERROR: Conversion Error: <b>Failed</b>: Generate catalog

Generate catalog
Python function terminated unexpectedly: string index out of range
Catalog_EPUB_MOBI:run
 path_to_output: /var/folders/eO/eO4HadZ9HPW2GHYXtKIit++++TI/-Tmp-/calibre_0.6.36_PbwU0P_catalog_out.epub
 Output format: epub
 Book count: 246
 opts:
  basename: Catalog
  catalog_title: My Books
  creator: calibre
  descriptionClip: 250
  exclude_genre: \[[\w ]*\]
  exclude_tags: ~
  fmt: epub
  log: <calibre.utils.logging.Log object at 0x65b2470>
  note_tag: *
  output_profile: sony
  plugin_path: <class 'calibre.library.catalog.EPUB_MOBI'>
  read_tag: +
  search_text: None
  sort_by: None
  verbose: True
CatalogBuilder(): Generating epub for sony
0.00% fetchBooksByTitle()
0.08% fetchBooksByAuthor()
0.15% generateHTMLDescriptions()
0.23% generateHTMLByTitle()
0.31% generateHTMLByAuthor()
Traceback (most recent call last):
  File "/Users/louie/Apps/calibre.app/Contents/Resources/Python/lib/python2.6/site.py", line 147, in main
    return run_entry_point()
  File "/Users/louie/Apps/calibre.app/Contents/Resources/Python/lib/python2.6/site.py", line 116, in run_entry_point
    return getattr(pmod, func)()
  File "site-packages/calibre/utils/ipc/worker.py", line 99, in main
  File "site-packages/calibre/gui2/convert/gui_conversion.py", line 59, in gui_catalog
  File "site-packages/calibre/library/catalog.py", line 2391, in run
  File "site-packages/calibre/library/catalog.py", line 746, in buildSources
  File "site-packages/calibre/library/catalog.py", line 1213, in generateHTMLByAuthor
IndexError: string index out of range
Adding something in the author fields "fixes" the problem, and the catalog gets created.

It would be very slick if somehow you could link between documents on the individual ebook readers, but I haven't seen that quite yet..

Last edited by lmamakos; 02-01-2010 at 11:06 PM. Reason: add OS information
lmamakos is offline