05-29-2024, 04:18 AM | #511 |
Connoisseur
Posts: 90
Karma: 50000
Join Date: Oct 2009
Device: none
|
|
06-26-2024, 10:19 PM | #512 |
Junior Member
Posts: 5
Karma: 10
Join Date: Apr 2022
Device: Onyx Poke Pro
|
Error in specific language
Hi~
I found that the below error occurs in a folder where the user name is Korean. I tested Windows 10 and 11. Status: failed Running EPUBCheck 5.1.0... please wait. An exception of type UnicodeDecodeError occurred. For example, an error occurs in a folder written in Korean as shown below. C:\Users\한국어\AppData\Local\sigil-ebook\sigil\plugins\EpubCheck It is thought that similar errors will occur not only in Korean but also in other foreign languages. Please check to see if this problem can be resolved. I am always grateful for your efforts. Thanks. |
06-27-2024, 04:12 AM | #513 | |
Grand Sorcerer
Posts: 5,621
Karma: 23190435
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
In the meantime please try the following: Locate the following lines in plugin.py: Code:
stdout = result[0].decode("utf-8") stderr = result[1].decode("utf-8") Code:
stdout = result[0].decode("utf-8", "ignore") stderr = result[1].decode("utf-8", "ignore") |
|
Today, 06:24 AM | #514 |
Junior Member
Posts: 6
Karma: 11018
Join Date: Feb 2024
Device: none
|
Is installing a JDK also necessary?
I'm nearing the end of my first big e-book project, so I thought it would be a good idea to use the EpubCheck plugin. When running it, I get the same error message every time.
I followed the installation instructions in the first post, made sure I had Python (version 2.7.16), and downloaded Java (version 8 update 421) from Oracle's website and successfully installed it on my old MacBook Air running macOS Catalina. Adding the EpubCheck plugin (version 0.4.7.1) to Sigil was a very quick and easy process. When running EpubCheck, I get the following output (see below) with an error message at the end ("Error: Expecting value: line 1 column 1 (char 0)") plus a pop-up window saying "To use the java command-line tool you need to install a JDK". The instructions do not mention anything about installing other software packages except Java. Does the error message mean that I also need to install a JDK? If so, are there several so-called JDKs to choose from? Output from EpubCheck: Code:
Running EPUBCheck 5.1.0... please wait. Traceback (most recent call last): File "/Applications/Sigil.app/Contents/plugin_launchers/python/launcher.py", line 142, in launch self.exitcode = target_script.run(container) File "/Users/jan-erik/Library/Application Support/sigil-ebook/sigil/plugins/EpubCheck/plugin.py", line 557, in run parsed_json = json.loads(stdout) File "json/__init__.py", line 346, in loads File "json/decoder.py", line 337, in decode File "json/decoder.py", line 355, in raw_decode json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) Error: Expecting value: line 1 column 1 (char 0) |
Today, 08:17 AM | #515 |
Sigil Developer
Posts: 7,872
Karma: 5449552
Join Date: Nov 2009
Device: many
|
I have no idea if this is related or not but Python version 2.7.16 is very very out of date.
Python moved to Python 3 (now at Python 3.9 or higher) almost exclusively and Sigil followed. So when running epubcheck, you should be using Sigil's built in Python (ie. check the box to use Sigil's internal Python on macOS). And yes a Java virtual machine is needed. At least the JRE, but on macOS I strongly recommend the full JDK as it is the only one that properly sets the proper path for you. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Plugin] PunctuationSmarten Sigil plugin | DiapDealer | Plugins | 138 | 07-11-2023 11:22 AM |
[Plugin] KindleImport Sigil plugin | DiapDealer | Plugins | 187 | 07-04-2022 10:11 AM |
Sigil Plugin Index | Thasaidon | Plugins | 0 | 10-04-2014 07:41 AM |
FC and Sigil 0.5.3 ePUBcheck failure | Hitch | Sigil | 32 | 04-17-2012 02:56 AM |
Web-based epubcheck upgraded to epubcheck 1.0.5 | kjk | ePub | 4 | 02-09-2010 09:53 PM |