![]() |
#406 | |
Member
![]() Posts: 14
Karma: 10
Join Date: Dec 2020
Device: web
|
Quote:
|
|
![]() |
![]() |
![]() |
#407 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,737
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
1. In Sigil, select Edit > Preference > Open Preferences Location 2. Double-click plugins > EpubCheck 3. Open plugin.py with a text editor and change the following line: Code:
user_dir_value = '-Duser.dir=' + os.path.join(bk._w.plugin_dir, bk._w.plugin_name, 'temp.epub') + "/"
Code:
user_dir_value = '-Duser.dir=/tmp'
(I can't test this myself because I don't have access to a Mac.) |
|
![]() |
![]() |
Advert | |
|
![]() |
#408 |
Sigil Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 8,860
Karma: 6120478
Join Date: Nov 2009
Device: many
|
I played around with the code enough so it probably doesn't match what is in an official epubcheck plugin.py anymore.
I will pm you an official patch against your current plugin for you to consider including in a future release. Hopefully epubcheck people will fix this soon and all of this extra macOS code can go away. Last edited by KevinH; 12-15-2020 at 01:20 PM. |
![]() |
![]() |
![]() |
#409 |
Member
![]() Posts: 14
Karma: 10
Join Date: Dec 2020
Device: web
|
|
![]() |
![]() |
![]() |
#410 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,737
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
I've attached a new version for macOS users with the changes suggested by KevinH.
If you're not a macOS user you can ignore this update. |
![]() |
![]() |
Advert | |
|
![]() |
#411 | |
Member
![]() Posts: 11
Karma: 10
Join Date: Feb 2017
Device: Android Tablet
|
Quote:
I tried deleting the EPUBCheck.json and re-installing the plugin which didn't work. |
|
![]() |
![]() |
![]() |
#412 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,737
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
Quote:
Are you sure that java -version works when you simply open a Windows command prompt window (CMD) without specifying the full path to the java binary or using cd to change the directory? If so, I can't help you, because I can't reproduce your problem. Otherwise, please follow the instructions on the download page for adding the Java binary path to the path environment variable. Alternatively, you can also specify the Java binary path in EpubCheck.json. For example, on my machine I'd need to use: Code:
"java_path": "C:/Program Files/Java/jre1.8.0_241/bin/java.exe",
Code:
"java_path": "java", Last edited by Doitsu; 12-15-2020 at 04:41 PM. |
|
![]() |
![]() |
![]() |
#413 | |
Member
![]() Posts: 11
Karma: 10
Join Date: Feb 2017
Device: Android Tablet
|
Quote:
Code:
java -version C:\Program Files\Java\jre1.8.0_251\bin\java.exe Code:
echo %JAVA_HOME% C:\Progra~1\Java\jre1.8.0_251\bin\java.exe If it was a java or EpubCheck error, wouldn't I then have trouble running the plugin through terminal and Calibre, not to mention some of the other plugins that also rely on Java? ![]() Calibre works fine, and displays all errors correctly, I've never had any issues at all with Calibre. Since I find myself using Sigil more often, I wanted to get EpubCheck and some other plugins working. I run and receive on terminal the following: Code:
java -jar "C:\Users\jenni\AppData\Local\sigil-ebook\sigil\plugins\EpubCheck\epubcheck.jar" At least one argument expected EPUBCheck completed Code:
java -jar "C:\Users\jenni\OneDrive\Downloads\Sigil Plugins\EpubCheck\epubcheck.jar" "C:\Users\jenni\OneDrive\Documents\Books\Looking for Clara_ A Novel (6192)\Looking for Clara_ A Novel - Simona Grossi_epub3.epub" Validating using EPUB version 3.2 rules. ERROR(OPF-014): C:/Users/jenni/OneDrive/Documents/Books/books/Looking for Clara_ A Novel (6192)/Looking for Clara_ A Novel - Simona Grossi_epub3.epub/OEBPS/Section41.xhtml(-1,-1): The property "remote-resources" should be declared in the OPF file. ERROR(RSC-006): C:/Users/jenni/OneDrive/Documents/Books/books/Looking for Clara_ A Novel (6192)/Looking for Clara_ A Novel - Simona Grossi_epub3.epub/OEBPS/Section41.xhtml(24,28): Remote resource reference not allowed; resource must be placed in the OCF. Check finished with errors Messages: 0 fatals / 2 errors / 0 warnings / 0 infos EPUBCheck completed |
|
![]() |
![]() |
![]() |
#414 | |
Member
![]() Posts: 11
Karma: 10
Join Date: Feb 2017
Device: Android Tablet
|
Quote:
It should read: Code:
java -jar "C:\Users\jenni\AppData\Local\sigil-ebook\sigil\plugins\EpubCheck\epubcheck.jar" At least one argument expected EPUBCheck completed |
|
![]() |
![]() |
![]() |
#415 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,737
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
I wish I could help you, but I can't reproduce your problem.
Try the following: 1. Select Edit > Preferences > Open Preferences Location > plugins_prefs > EpubCheck 2. Open EpubCheck.json with a text editor, for example, Notepad or Notepad++. 3. Insert the following line (marked in blue) at the beginning, before the first entry: Code:
{
"debug": true,
"update_check": true,
4. Run EpubCheck, copy the complete output and paste it here. Note that this change will actually cause the plugin to fail, but it should display additional information. |
![]() |
![]() |
![]() |
#416 | |
Member
![]() Posts: 11
Karma: 10
Join Date: Feb 2017
Device: Android Tablet
|
Quote:
![]() ![]() Well, it works! I'm happy. I could have made do with EpubCheck through Calibre and command line, but it's more convenient when I'm already in Sigil. Thanks for your help. |
|
![]() |
![]() |
![]() |
#417 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 28,664
Karma: 205039118
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
Changing user env vars sometimes require logging back in to take effect. And depending on how/when the JAVA_HOME variable is being set, it may not be available to the python subprocess that Sigil kicks off for the plugin. The best option (especially if you have multiple versions of java installed) is to specify the full path to the binary of the version you want the plugin to use in the plugin's preferences json file. You probably also want to be certain no instances of Sigil are currently open when editing/saving the json file for good measure.
And also use forward slashes in the path specified in the json file rather than backslashes. If you use backslashes, you would probably need to double them. C:\\Program Files\\... Don't use the shortened path format (C:\Progra~1\) in the json file either. It's just a string and the full--real--path will never get substituted when the python subprocess uses it. "java_path": "C:/Program Files/Java/jre1.8.0_251/bin/java.exe", Is what you want in the json file. |
![]() |
![]() |
![]() |
#418 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,754
Karma: 169712580
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Code:
I find it rather curious that you got the path to the java executable echoed from java -version rather than the version information. What I see is: Quote:
Out of curiosity, is the path to the Java executable in your path variable? I have two entries in there, "C:\Program Files (x86)\Common Files\Oracle\Java\javapath;" and "C:\Program Files\Java\jre1.8.0_271\bin\;' Last edited by DNSB; 12-20-2020 at 02:16 PM. Reason: Added question about path variable |
|
![]() |
![]() |
![]() |
#419 |
Member
![]() Posts: 10
Karma: 10
Join Date: Nov 2020
Device: Kindle Paperwhite
|
Hi, I report this problem with Sigil 1.5.1 (Win 10) when User Interface Language is "Italian":
Stato: failed Traceback (most recent call last): File "C:\Program Files\Sigil\plugin_launchers\python\launcher.py", line 142, in launch self.exitcode = target_script.run(container) File "C:\Users\Angelo\AppData\Local\sigil-ebook\sigil\plugins\EpubCheck\plugin.py", line 205, in run translations = gettext.translation('messages', localedir=localedir, languages=[locale]) File "gettext.py", line 588, in translation FileNotFoundError: [Errno 2] No translation file found for domain: 'messages' Error: [Errno 2] No translation file found for domain: 'messages' No probem when language is english |
![]() |
![]() |
![]() |
#420 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,737
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
|
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[Plugin] PunctuationSmarten Sigil plugin | DiapDealer | Plugins | 143 | 07-30-2025 06:58 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 |