Quote:
Originally Posted by davidfor
The problem has been seen before. A search of the extended driver thread, suggests it is something to do with the Windows username. The username probably has non-ASCII characters in it.
The error is happening when it uses the temporary directory. Changing that in Windows to point elsewhere will probably fix it. Or set the environment variable CALIBRE_TEMP_DIR to point to a suitable directory for calibre to use
|
I tried to do so- I set two environment variables called CALIBRE_TEMP_DIR (one in System Variables and one in User Variables), both to C:\CALTEMPDIR, but for some reason the log still calls some other path, after which the error shows up:
Code:
Copying file 'C:\CALTEMPDIR\calibre_sxsvzh\kepub_nwtglg_stylehacks' to 'C:\CALTEMPDIR\calibre_sxsvzh\c5xevi_epub_container' as 'kte-css/stylehacks.css'
Adding reference to kte-css/stylehacks.css to file text/part0000.html
C:\Program Files (x86)\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)
I am not sure if I did the exact thing, so here are a couple pictures of the "Environment Variables..." window (including part of my username which is likely to be causing the ASCII error, heh):
No idea what to do next, I feel like the next step is to keep Calibre from calling that Calibre2 directory (C:\Program Files (x86)\Calibre2\pylib.zip), but seeing as how it seemingly is where Calibre is installed, I have no idea what to do. Perhaps the folder shouldn't be directly in C:\ ?