View Single Post
Old 01-27-2020, 12:40 PM   #293
Julie34
Enthusiast
Julie34 began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Oct 2017
Location: where is my heart
Device: Kobo Glo, and...
problem with Python and UFT8

Hi,
Have un sudden disfunction with this plugin. No change in my computed, except a "fatal error" yesterday which may have endomaged some files.

When using bundled python i get :

Code:
Statut : failed

EPUBCheck v4.2.2 en cours d'exécution ... veuillez patienter.
Traceback (most recent call last):
File "C:\Program Files\Sigil\plugin_launchers\python\launcher.py", line 135, in launch
self.exitcode = target_script.run(container)
File "C:\Users\franc\AppData\Local\sigil-ebook\sigil\plugins\EpubCheck\plugin.py", line 507, in run
stdout = result[0].decode(os_encoding)
File "encodings\cp65001.py", line 17, in decode
UnicodeDecodeError: 'CP_UTF8' codec can't decode bytes in position 0--1: No mapping for the Unicode character exists in the target code page.
Error: 'CP_UTF8' codec can't decode bytes in position 0--1: No mapping for the Unicode character exists in the target code page.
The epub (3) is fine with epubcheck on another computer.

Installing the last version of python, same problem with epubcheck :

Code:
EPUBCheck v4.2.2 en cours d'exécution ... veuillez patienter.
Traceback (most recent call last):
File "C:\Program Files\Sigil\plugin_launchers\python\launcher.py", line 135, in launch
self.exitcode = target_script.run(container)
File "C:\Users\franc\AppData\Local\sigil-ebook\sigil\plugins\EpubCheck\plugin.py", line 507, in run
stdout = result[0].decode(os_encoding)
File "C:\Users\franc\AppData\Local\Programs\Python\Python38\lib\encodings\utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe9 in position 19: invalid continuation byte
Error: 'utf-8' codec can't decode byte 0xe9 in position 19: invalid continuation byte
No detection of any wrong with test plugin.

Editing the files mentionned in the code line, I see nothing wrong and the same code as the other computer...
Have Epubcheck 0.4.3 and reinstalled it with no change

May you help me ?

Last edited by Julie34; 01-27-2020 at 12:42 PM. Reason: add info
Julie34 is offline   Reply With Quote