Activity log for bug #1813905

Date Who What changed Old value New value Message
2019-01-30 09:50:52 Tshu Wang bug added bug
2019-01-30 09:50:52 Tshu Wang attachment added a sample book https://bugs.launchpad.net/bugs/1813905/+attachment/5234150/+files/%E9%BB%84%E7%93%9C%E7%9A%84%E9%BB%84%EF%BC%8C%E8%A5%BF%E7%93%9C%E7%9A%84%E8%A5%BF-%E9%BB%84%E8%A5%BF.mobi
2019-01-30 09:54:34 Tshu Wang description if I convert azw3 or mobi books in terminal to zip, I always got the following error. However everything work fine if I convert book in GUI. I wander if there is any option should set in command line convertation or any other tips. thx BTW, attachment is a sample book. Error: Python function terminated unexpectedly: All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters Traceback (most recent call last): File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 154, in main return run_entry_point() File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 114, in run_entry_point return getattr(pmod, func)() File "site-packages/calibre/ebooks/conversion/cli.py", line 391, in main File "site-packages/calibre/ebooks/conversion/plumber.py", line 1270, in run File "site-packages/calibre/ebooks/conversion/plugins/html_output.py", line 123, in convert File "site-packages/calibre/ebooks/conversion/plugins/html_output.py", line 75, in generate_html_toc File "site-packages/calibre/ebooks/conversion/plugins/html_output.py", line 69, in generate_toc File "site-packages/calibre/ebooks/conversion/plugins/html_output.py", line 61, in build_node File "site-packages/calibre/ebooks/oeb/base.py", line 318, in element File "src/lxml/lxml.etree.pyx", line 3127, in lxml.etree.SubElement (src/lxml/lxml.etree.c:78512) File "src/lxml/apihelpers.pxi", line 203, in lxml.etree._makeSubElement (src/lxml/lxml.etree.c:18851) File "src/lxml/apihelpers.pxi", line 198, in lxml.etree._makeSubElement (src/lxml/lxml.etree.c:18777) File "src/lxml/apihelpers.pxi", line 302, in lxml.etree._initNodeAttributes (src/lxml/lxml.etree.c:20259) File "src/lxml/apihelpers.pxi", line 316, in lxml.etree._addAttributeToNode (src/lxml/lxml.etree.c:20597) File "src/lxml/apihelpers.pxi", line 1443, in lxml.etree._utf8 (src/lxml/lxml.etree.c:31876) ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters if I convert azw3 or mobi books in terminal to zip, I always got the following error. However everything work fine if I convert book in GUI. I wander if there is any option should set in command line convertation or any other tips. thx BTW, attachment is a sample book. System: macOS Mojave 10.14.3 Calibre: 3.38.1 ebook-convert (calibre 3.38.1) Created by: Kovid Goyal <kovid@kovidgoyal.net> Error: Python function terminated unexpectedly: All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters Traceback (most recent call last):   File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 154, in main     return run_entry_point()   File "/Applications/calibre.app/Contents/Resources/Python/lib/python2.7/site.py", line 114, in run_entry_point     return getattr(pmod, func)()   File "site-packages/calibre/ebooks/conversion/cli.py", line 391, in main   File "site-packages/calibre/ebooks/conversion/plumber.py", line 1270, in run   File "site-packages/calibre/ebooks/conversion/plugins/html_output.py", line 123, in convert   File "site-packages/calibre/ebooks/conversion/plugins/html_output.py", line 75, in generate_html_toc   File "site-packages/calibre/ebooks/conversion/plugins/html_output.py", line 69, in generate_toc   File "site-packages/calibre/ebooks/conversion/plugins/html_output.py", line 61, in build_node   File "site-packages/calibre/ebooks/oeb/base.py", line 318, in element   File "src/lxml/lxml.etree.pyx", line 3127, in lxml.etree.SubElement (src/lxml/lxml.etree.c:78512)   File "src/lxml/apihelpers.pxi", line 203, in lxml.etree._makeSubElement (src/lxml/lxml.etree.c:18851)   File "src/lxml/apihelpers.pxi", line 198, in lxml.etree._makeSubElement (src/lxml/lxml.etree.c:18777)   File "src/lxml/apihelpers.pxi", line 302, in lxml.etree._initNodeAttributes (src/lxml/lxml.etree.c:20259)   File "src/lxml/apihelpers.pxi", line 316, in lxml.etree._addAttributeToNode (src/lxml/lxml.etree.c:20597)   File "src/lxml/apihelpers.pxi", line 1443, in lxml.etree._utf8 (src/lxml/lxml.etree.c:31876) ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters
2019-01-30 10:24:25 Kovid Goyal calibre: status New Fix Released