View Single Post
Old 04-20-2017, 07:45 AM   #259
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by alex23rus View Post
Calibre log:

Code:
Cleaning markup for file titlepage.xhtml
Copying file 'C:\CalibreData\Temporary\calibre_wmp8hz\kepub_myx8u6_hyphenate' to 'C:\CalibreData\Temporary\calibre_wmp8hz\bqdh7w_epub_container' as 'kte-css/hyphenation.css'
Adding reference to kte-css/hyphenation.css to file OEBPS/html/00_FM.xhtml
C:\Program Files\Calibre2\pylib.zip\ntpath.py:532: UnicodeWarning: Unicode unequal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
Python function terminated unexpectedly
  All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters (Error Code: 1)
Traceback (most recent call last):
  File "site.py", line 132, in main
  File "site.py", line 109, in run_entry_point
  File "site-packages\calibre\utils\ipc\worker.py", line 195, in main
  File "site-packages\calibre\gui2\convert\gui_conversion.py", line 33, in gui_convert_override
  File "site-packages\calibre\gui2\convert\gui_conversion.py", line 26, in gui_convert
  File "site-packages\calibre\ebooks\conversion\plumber.py", line 1252, in run
  File "calibre_plugins.kepubout.conversion.kepub_output", line 131, in convert
  File "calibre_plugins.kepubout.common", line 103, in modify_epub
  File "calibre_plugins.kepubout.container", line 178, in add_content_file_reference
  File "lxml.etree.pyx", line 1445, in lxml.etree._Element.makeelement (src\lxml\lxml.etree.c:49848)
  File "apihelpers.pxi", line 133, in lxml.etree._makeElement (src\lxml\lxml.etree.c:14869)
  File "apihelpers.pxi", line 121, in lxml.etree._makeElement (src\lxml\lxml.etree.c:14748)
  File "apihelpers.pxi", line 268, in lxml.etree._initNodeAttributes (src\lxml\lxml.etree.c:16296)
  File "apihelpers.pxi", line 290, in lxml.etree._addAttributeToNode (src\lxml\lxml.etree.c:16701)
  File "apihelpers.pxi", line 1395, in lxml.etree._utf8 (src\lxml\lxml.etree.c:26485)
ValueError: All strings must be XML compatible: Unicode or ASCII, no NULL bytes or control characters
The marked line is where the error is happening. It's something related to the locale or some character used in the user profile name and hence the users directories including the temporary directory. There is a discussion on this ending on the previous page. The workaround is to set the environment variable "CALIBRE_TEMP_DIR" to somewhere else.
davidfor is offline   Reply With Quote