View Single Post
Old 06-05-2013, 04:00 AM   #1
SauliusP.
Plugin developer
SauliusP. can name that song in three notesSauliusP. can name that song in three notesSauliusP. can name that song in three notesSauliusP. can name that song in three notesSauliusP. can name that song in three notesSauliusP. can name that song in three notesSauliusP. can name that song in three notesSauliusP. can name that song in three notesSauliusP. can name that song in three notesSauliusP. can name that song in three notesSauliusP. can name that song in three notes
 
SauliusP.'s Avatar
 
Posts: 108
Karma: 24394
Join Date: Feb 2012
Location: Lithuania
Device: Kindle
DOCX Input [Calibre native]

As a first DOCX Input developer, I am starting this thread for a new Kovid's baby: native DOCX Input.

So with big interest I hurried to get dev trunk and, unfortunately, on the first try got the exception:

Spoiler:
InputFormatPlugin: DOCX Input running
on /tmp/calibre_0.9.33_tmp_HdwPid/qemoxw.docx
Traceback (most recent call last):
File "site.py", line 58, in main
File "/Advanced/workspace/Calibre/src/calibre/utils/ipc/worker.py", line 189, in main
result = func(*args, **kwargs)
File "/Advanced/workspace/Calibre/src/calibre/gui2/convert/gui_conversion.py", line 31, in gui_convert_override
override_input_metadata=True)
File "/Advanced/workspace/Calibre/src/calibre/gui2/convert/gui_conversion.py", line 25, in gui_convert
plumber.run()
File "/Advanced/workspace/Calibre/src/calibre/ebooks/conversion/plumber.py", line 1010, in run
accelerators, tdir)
File "/Advanced/workspace/Calibre/src/calibre/customize/conversion.py", line 239, in __call__
log, accelerators)
File "/Advanced/workspace/Calibre/src/calibre/ebooks/conversion/plugins/docx_input.py", line 21, in convert
return Convert(stream, log=log)()
File "/Advanced/workspace/Calibre/src/calibre/ebooks/docx/to_html.py", line 85, in __call__
self.read_page_properties(doc)
File "/Advanced/workspace/Calibre/src/calibre/ebooks/docx/to_html.py", line 164, in read_page_properties
for p in descendants(doc, 'w', 'w:tbl'):
File "/Advanced/workspace/Calibre/src/calibre/ebooks/docx/names.py", line 105, in descendants
return elem.iterdescendants(*map(expand, args))
File "lxml.etree.pyx", line 1290, in lxml.etree._Element.iterdescendants (src/lxml/lxml.etree.c:40339)
TypeError: iterdescendants() takes at most 1 positional argument (2 given)

SauliusP. is offline   Reply With Quote