View Single Post
Old 04-23-2016, 04:13 PM   #89
wrCisco
Connoisseur
wrCisco ought to be getting tired of karma fortunes by now.wrCisco ought to be getting tired of karma fortunes by now.wrCisco ought to be getting tired of karma fortunes by now.wrCisco ought to be getting tired of karma fortunes by now.wrCisco ought to be getting tired of karma fortunes by now.wrCisco ought to be getting tired of karma fortunes by now.wrCisco ought to be getting tired of karma fortunes by now.wrCisco ought to be getting tired of karma fortunes by now.wrCisco ought to be getting tired of karma fortunes by now.wrCisco ought to be getting tired of karma fortunes by now.wrCisco ought to be getting tired of karma fortunes by now.
 
Posts: 50
Karma: 605108
Join Date: Apr 2016
Device: none
Hello everyone, I was trying the Epubcheck plugin but I got this error:

Running ePubCheck ... please wait
Traceback (most recent call last):
File "/Applications/Sigil.app/Contents/plugin_launchers/python/launcher.py", line 135, in launch
self.exitcode = target_script.run(container)
File "/Users/francesco/Library/Application Support/sigil-ebook/sigil/plugins/EpubCheck/plugin.py", line 43, in run
epc_errors = result[1].decode(os_encoding).split('\n')
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 136: ordinal not in range(128)
Error: 'ascii' codec can't decode byte 0xc3 in position 136: ordinal not in range(128)

I'm using Sigil 0.9.5 in MacOSX 10.11 and the bundled python interpreter.
If I change the value of os_encoding from locale.getpreferredencoding() (which seems to be US-ASCII unless I start the interpreter from the bash, in which case it is utf-8) to 'utf-8' all goes well, so it's not a big deal to me, but a more general solution would be probably better.

Thanks!
wrCisco is offline   Reply With Quote