bookfere / Ebook-Translator-Calibre-Plugin

A Calibre plugin to translate ebook into a specified language.
https://translator.bookfere.com
GNU General Public License v3.0
1.74k stars 115 forks source link

[Bug report] Unable to create new epub translated file #352

Open Ludko4444 opened 1 month ago

Ludko4444 commented 1 month ago

Basic information Hello. This add-on works like a charm. However I have problem with translating one epub file to my own native language. I get error: Time consuming: 0.01 minutes Translation completed. Traceback (most recent call last): File "runpy.py", line 198, in _run_module_as_main File "runpy.py", line 88, in _run_code File "site.py", line 83, in File "site.py", line 78, in main File "site.py", line 50, in run_entry_point File "calibre\utils\ipc\worker.py", line 215, in main File "calibre\utils\ipc\worker.py", line 150, in arbitrary_n File "calibre_plugins.ebook_translator.lib.conversion", line 242, in convert_item File "calibre_plugins.ebook_translator.lib.conversion", line 86, in convert_book File "calibre\ebooks\conversion\plumber.py", line 1307, in run File "calibre_plugins.ebook_translator.lib.conversion", line 74, in convert File "calibre_plugins.ebook_translator.lib.element", line 683, in add_translations File "calibre_plugins.ebook_translator.lib.element", line 269, in add_translation File "src/lxml/etree.pyx", line 1655, in lxml.etree.ContentOnlyElement.set File "src/lxml/etree.pyx", line 1651, in lxml.etree.ContentOnlyElement._raiseImmutable TypeError: this element does not have children or attributes

bookfere commented 1 month ago

Could you upload a sample related to this error? You can either upload it here or send it to me via email.