View Single Post
Old 09-03-2023, 11:19 PM   #70
mimicxz
Member
mimicxz began at the beginning.
 
Posts: 12
Karma: 10
Join Date: Nov 2011
Device: Kindle
TypeError: Argument must be bytes or unicode, got 'NoneType'

Traceback (most recent call last):
File "runpy.py", line 196, in _run_module_as_main
File "runpy.py", line 86, in _run_code
File "site.py", line 82, in <module>
File "site.py", line 77, in main
File "site.py", line 49, 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.conversi on", line 108, in convert_book
File "calibre\ebooks\conversion\plumber.py", line 1281, in run
File "calibre_plugins.ebook_translator.lib.conversi on", line 100, in convert
File "calibre_plugins.ebook_translator.lib.element" , line 298, in add_translations
File "calibre_plugins.ebook_translator.lib.element" , line 109, in add_translation
File "src/lxml/etree.pyx", line 833, in lxml.etree._Element.set
File "src/lxml/apihelpers.pxi", line 594, in lxml.etree._setAttributeValue
File "src/lxml/apihelpers.pxi", line 1539, in lxml.etree._utf8
TypeError: Argument must be bytes or unicode, got 'NoneType'


The Version I used are 2.1.2 and 2.1.3. Both got the error message.

When I translate book from Simplified Chinese to Traditional Chinese, If I keep the original text in the book, I can generate a complete epub. When I just output the traditional Chinese translation, the above error message will appear. How to solve this problem?

Best Regards,

Last edited by mimicxz; 09-04-2023 at 02:35 AM.
mimicxz is offline   Reply With Quote