View Single Post
Old 07-28-2009, 11:04 AM   #2
superanima
W2E & ePub freak
superanima began at the beginning.
 
Posts: 38
Karma: 10
Join Date: May 2009
Device: cybook gen3 + boox60
this is an example of what I'm talking....
a regular odt file, with one image, h1 and h2 header for parts and chapters.
At first, during conversion, I managed to get calibre detect parts and chapters, but the conversion process get stuck at this point.
after a little correction fo the odt file, this is what I get during conversion:

Convert book 1 of 1 (u"-----------------")
InputFormatPlugin: ODT Input running on /Users/T/Documents/libreria calibre---------------
Extracting ODT file...
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/Applications/calibre.app/Contents/console.app/Contents/Resources/lib/python2.6/site-packages.zip/calibre/utils/ipc/worker.py", line 90, in main
File "calibre/gui2/convert/gui_conversion.pyo", line 17, in gui_convert
File "calibre/ebooks/conversion/plumber.pyo", line 648, in run
File "calibre/customize/conversion.pyo", line 217, in __call__
File "calibre/ebooks/odt/input.pyo", line 65, in convert
File "calibre/ebooks/odt/input.pyo", line 36, in __call__
File "odf/odf2xhtml.pyo", line 1291, in odf2xhtml
File "odf/odf2xhtml.pyo", line 1299, in xhtml
File "odf/odf2xhtml.pyo", line 1284, in parseodf
File "xml/sax/expatreader.pyo", line 107, in parse
File "xml/sax/xmlreader.pyo", line 123, in parse
File "xml/sax/expatreader.pyo", line 207, in feed
File "xml/sax/expatreader.pyo", line 338, in start_element_ns
File "odf/odf2xhtml.pyo", line 486, in startElementNS
File "odf/odf2xhtml.pyo", line 476, in handle_starttag
File "odf/odf2xhtml.pyo", line 999, in s_text_h
File "odf/odf2xhtml.pyo", line 521, in classname
File "xml/sax/xmlreader.pyo", line 316, in __getitem__
KeyError: (u'urnasis:names:tcpendocument:xmlns:text:1.0' , 'style-name')
superanima is offline   Reply With Quote