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

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

Notices

Reply
 
Thread Tools Search this Thread
Old 01-11-2012, 04:19 AM   #1
MichaelBKK
Junior Member
MichaelBKK began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2012
Device: Galaxy Tab
Error reading ODT Doc

Seems like this error is a recurring one, but I can't find a situation that matches mine, or a solution, since this obviously isn't a DRM issue. I've been using Calibre for a while now, and currently I'm trying to create a new ebook from existing source material I have. I've done some preliminary conversions without any problems, but now that I have the nearly complete book done, I'm getting the following error trying to convert to Mobi or ePub:

calibre, version 0.8.8
ERROR: Conversion Error: <b>Failed</b>: Convert book 1 of 1 (Bangkok Essentials)
Spoiler:

Convert book 1 of 1 (Bangkok Essentials)
Resolved conversion options
calibre version: 0.8.8
{'asciiize': False,
'author_sort': None,
'authors': None,
'base_font_size': 0.0,
'book_producer': None,
'change_justification': u'original',
'chapter': u"//*[((name()='h1' or name()='h2') and re:test(., 'chapter|book|section|part|prologue|epilogue\\s+', 'i')) or @class = 'chapter']",
'chapter_mark': u'pagebreak',
'comments': None,
'cover': u'/tmp/calibre_0.8.8_tmp_NuOKvy/calibre_0.8.8_haVZaj.jpeg',
'debug_pipeline': None,
'dehyphenate': True,
'delete_blank_paragraphs': True,
'disable_font_rescaling': False,
'dont_compress': False,
'enable_heuristics': False,
'extra_css': None,
'fix_indents': True,
'font_size_mapping': None,
'format_scene_breaks': True,
'html_unwrap_factor': 0.4,
'input_encoding': None,
'input_profile': <calibre.customize.profiles.InputProfile object at 0xa6b29ac>,
'insert_blank_line': False,
'insert_metadata': False,
'isbn': None,
'italicize_common_cases': True,
'keep_ligatures': False,
'language': None,
'level1_toc': None,
'level2_toc': None,
'level3_toc': None,
'line_height': 0.0,
'linearize_tables': False,
'margin_bottom': 5.0,
'margin_left': 5.0,
'margin_right': 5.0,
'margin_top': 5.0,
'markup_chapter_headings': True,
'max_toc_links': 50,
'minimum_line_height': 120.0,
'mobi_ignore_margins': False,
'no_chapters_in_toc': True,
'no_inline_navbars': True,
'no_inline_toc': False,
'output_profile': <calibre.customize.profiles.KindleOutput object at 0xa6b932c>,
'page_breaks_before': u"//*[name()='h1' or name()='h2']",
'personal_doc': u'[PDOC]',
'prefer_author_sort': False,
'prefer_metadata_cover': False,
'pretty_print': False,
'pubdate': None,
'publisher': None,
'rating': None,
'read_metadata_from_opf': u'/tmp/calibre_0.8.8_tmp_NuOKvy/calibre_0.8.8_Y1v94n.opf',
'remove_fake_margins': True,
'remove_first_image': False,
'remove_paragraph_spacing': False,
'remove_paragraph_spacing_indent_size': 1.5,
'renumber_headings': True,
'replace_scene_breaks': u'',
'rescale_images': False,
'series': None,
'series_index': None,
'smarten_punctuation': False,
'sr1_replace': None,
'sr1_search': None,
'sr2_replace': None,
'sr2_search': None,
'sr3_replace': None,
'sr3_search': None,
'tags': None,
'timestamp': None,
'title': None,
'title_sort': None,
'toc_filter': None,
'toc_threshold': 6,
'toc_title': None,
'unwrap_lines': True,
'use_auto_toc': False,
'verbose': 2}
InputFormatPlugin: ODT Input running
on /tmp/calibre_0.8.8_tmp_NuOKvy/calibre_0.8.8_qGdfO7.odt
Extracting ODT file...
Traceback (most recent call last):
File "/usr/bin/calibre-parallel", line 19, in <module>
sys.exit(main())
File "/usr/lib/calibre/calibre/utils/ipc/worker.py", line 181, in main
result = func(*args, **kwargs)
File "/usr/lib/calibre/calibre/gui2/convert/gui_conversion.py", line 31, in gui_convert_override
override_input_metadata=True)
File "/usr/lib/calibre/calibre/gui2/convert/gui_conversion.py", line 25, in gui_convert
plumber.run()
File "/usr/lib/calibre/calibre/ebooks/conversion/plumber.py", line 922, in run
accelerators, tdir)
File "/usr/lib/calibre/calibre/customize/conversion.py", line 204, in __call__
log, accelerators)
File "/usr/lib/calibre/calibre/ebooks/odt/input.py", line 120, in convert
return Extract()(stream, '.', log)
File "/usr/lib/calibre/calibre/ebooks/odt/input.py", line 82, in __call__
html = self.odf2xhtml(stream)
File "/usr/lib/calibre/odf/odf2xhtml.py", line 1501, in odf2xhtml
self.load(odffile)
File "/usr/lib/calibre/odf/odf2xhtml.py", line 1486, in load
self._walknode(self.document.topnode)
File "/usr/lib/calibre/odf/odf2xhtml.py", line 1492, in _walknode
self._walknode(c)
File "/usr/lib/calibre/odf/odf2xhtml.py", line 1492, in _walknode
self._walknode(c)
File "/usr/lib/calibre/odf/odf2xhtml.py", line 1492, in _walknode
self._walknode(c)
File "/usr/lib/calibre/odf/odf2xhtml.py", line 1492, in _walknode
self._walknode(c)
File "/usr/lib/calibre/odf/odf2xhtml.py", line 1490, in _walknode
self.startElementNS(node.qname, node.tagName, node.attributes)
File "/usr/lib/calibre/odf/odf2xhtml.py", line 555, in startElementNS
self.handle_starttag(tag, method, attrs)
File "/usr/lib/calibre/odf/odf2xhtml.py", line 572, in handle_starttag
method(tag,attrs)
File "/usr/lib/calibre/odf/odf2xhtml.py", line 1161, in s_text_a
if href[0] == "#":
IndexError: string index out of range


I'm guessing there may be a bad hyperlink in the document, but I don't see any clues that will help me find it. Any suggestions?

Last edited by theducks; 01-11-2012 at 09:38 AM. Reason: wrap HUGE paste in spoiler
MichaelBKK is offline   Reply With Quote
Old 01-11-2012, 05:07 AM   #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: 26,117
Karma: 5101571
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
That's caused by empty links, but calibre shouldn't be stopping on them,fixed in the next release.
kovidgoyal is offline   Reply With Quote
Old 01-11-2012, 05:57 AM   #3
MichaelBKK
Junior Member
MichaelBKK began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2012
Device: Galaxy Tab
That's what I guessed from the error. I'd just as soon get rid of the empty hyperlink in the source doc, but I can't find any reference for doing that in Libreoffice. Anyone have any ideas?
MichaelBKK is offline   Reply With Quote
Old 01-11-2012, 02:29 PM   #4
alansplace
Wizard
alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.alansplace ought to be getting tired of karma fortunes by now.
 
alansplace's Avatar
 
Posts: 3,853
Karma: 30292046
Join Date: Feb 2010
Location: USA, 33.938556° N, -117.271334° W
Device: Kindle 2, Kindle KB, Kindle PW 1 & 2, Kindle Voyage, Kindle Fire 2
Cool Error reading ODT Doc

Quote:
Originally Posted by MichaelBKK View Post
That's what I guessed from the error. I'd just as soon get rid of the empty hyperlink in the source doc, but I can't find any reference for doing that in Libreoffice. Anyone have any ideas?
IIRC, right click the hyperlink and there's a choice to 'delete hyperlink'.
alansplace is online now   Reply With Quote
Old 01-11-2012, 09:19 PM   #5
MichaelBKK
Junior Member
MichaelBKK began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Jan 2012
Device: Galaxy Tab
Quote:
Originally Posted by alansplace View Post
IIRC, right click the hyperlink and there's a choice to 'delete hyperlink'.
Rigghhht... so which hyperlink is it? The question is how to find the offending hyperlink, since the error message gives no information about where in the document it is.
MichaelBKK 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
PRS-T1 Reading Word doc on T1 bob_ninja Sony Reader 12 01-02-2012 09:03 PM
Using Calibre to make doc -> mobi files. Problems with "start reading" section. Stodder Calibre 0 07-03-2011 10:32 AM
Error not reading Kindle 20LEgend Devices 3 04-12-2011 04:17 AM
New Google Doc Feature Allows for Reading Locked Down Documents zyzzyva57 General Discussions 0 01-14-2011 11:10 AM
PRS-505 Reading .DOC file on PRS 505 someoneinseattle Sony Reader 4 07-05-2010 01:05 PM


All times are GMT -4. The time now is 11:27 AM.


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