View Single Post
Old 03-03-2025, 03:15 PM   #201
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 79,961
Karma: 147448039
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Doitsu View Post
The error message is usually displayed because EPUBCheck generated invalid UTF-8 output. This usually happens if the epub file contains files that aren't valid UTF-8 files.

To fix this problem:
  • uninstall the plugin
  • re-download the plugin if you didn't save it
  • extract main.py from the zip file
  • search for and change the following two lines:
    Code:
                stdout = result[0].decode('utf-8')
                stderr = result[1].decode('utf-8')
    to:
    Code:
                stdout = result[0].decode('utf-8', errors='ignore')
                stderr = result[1].decode('utf-8', errors='ignore')
  • replace main.py in the zip file with the modified version
  • re-install the plugin from the .zip file
If you're getting more Python errors, open the book with Calibre Editor, select Tools > Fix HTML - all files followed by Tools > Beautify all files, save the epub and re-run the EpubCheck plugin.
Does this mean there will be a new version?
JSWolf is offline   Reply With Quote