Hederis / hederis.github.io

Hederis website
1 stars 0 forks source link

Error in fixKindleSelectors (make_epub) #50

Closed nelliemckesson closed 3 years ago

nelliemckesson commented 3 years ago

An error is occurring when fixing the Kindle selectors:

returning tmp_epub_path: /tmp/9C4hUk2RCU3u4h8eeZZX0a14.epub
Erewhon/LPX5RiklYA2zJQwF4cYe/epub/book.epub
Traceback (most recent call last):
File "/var/task/api/bake_helpers/make_epub.py", line 263, in fixKindleSelectors
ids = findEls(myroot, sel)
File "/var/task/api/bake_helpers/make_epub.py", line 206, in findEls
els = myroot.xpath(sel)
File "src/lxml/etree.pyx", line 1577, in lxml.etree._Element.xpath
File "src/lxml/xpath.pxi", line 307, in lxml.etree.XPathElementEvaluator.__call__
File "src/lxml/xpath.pxi", line 227, in lxml.etree._XPathEvaluatorBase._handle_result
lxml.etree.XPathEvalError: Invalid expression
[('url(', '../linebreak.png'), ('url(', '../chapter.png')]