View Single Post
Old 03-03-2025, 02:41 PM   #200
Doitsu
Grand Sorcerer
Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.Doitsu ought to be getting tired of karma fortunes by now.
 
Doitsu's Avatar
 
Posts: 5,747
Karma: 24032915
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Morea View Post
I get an error message when starting this plugin
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.
Doitsu is offline   Reply With Quote