![]() |
Quote:
(The actual epubcheck.jar file is in the same folder as plugin.py and is located via Sigil Plugin Launcher functions.) Whatever the Calibre Open With code does, it doesn't seem to affect the execution of the epubcheck plugin, at least on 64bit Windows 10 machines. |
Quote:
Calibre: 2.4.3 x64, multiple plugins Sigil: 0.9.0 x64 Installed Python: 2.7 32 bit and 3.4.3 64 bit The 32 bit version is needed when I use a 3D printer. To do some testing, I booted up an Insider Preview Windows 10 VM. OS: Windows 10 x64 build 10576 running under VMWare Workstation Calibre: 2.4.3 x64 with Open With and Kobo Utilities plugins Sigil: 0.9.0 x64 Installed Python: None Result: Flightcrew works either way, epubcheck works from Sigil when launched from command line but does not work when using the Open With plugin to launch. Code:
Status: failed |
Thanks for the detailed information. I believe you're getting this error message because the plugin can't find the Java executable.
Did you follow the instructions at the bottom of the very first post about adding a path to the Java executable to the Windows PATH environment variable and do you see the version number, if you enter java -version in a command prompt window? If not, this might be the cause of the problem, because the plugin assumes that the java executable can be found via PATH (or other environment variables). (I've added the path to the PATH environment variable and have no problems running the epubcheck plugin via Calibre.) Quote:
Maybe a Calibre plugin developer could develop a Calibre epubcheck plugin for you? |
Quote:
Code:
Original:Quote:
|
Further on...
I edited the plugin.py file to add the java path to the 'java' item in line 29 and the plugin works when spawning Sigil using Calibre's Open With plugin. So it would appear that the Open With plugin is not passing the path properly. Code:
args = ['C:\\Program Files\\Java\\jre1.8.0_65\\bin\\java.exe', '-jar', epc_path, temp_dir, '-mode', 'exp'] |
Find the basename of java.exe : https://stackoverflow.com/questions/...s-command-line
Tell Open With to insert the value of that^^ into clean_env['PATH'] |
Quote:
|
Disabling the path removal before launching Sigil from the Open With plugin corrects the issue. So far in opening, editing and validating 10 epubs, I haven't had an issue with Sigil so looks as if that code is not needed for Sigil 0.9.0.
One note is that I am—probably—one of the few people who drag Calibre's Book Detail pane into non-existence so right clicking on the format in that pane to launch Sigil is not an option without adding what I consider to be a waste of precious screen space back into view. As usual, YMMV. |
There has to exist a Windows API (or maybe direct registry queries) to replicate these commands:
Code:
assoc .jar |
Quote:
That link provides a way to search the current PATH, and determine what Code:
C:\> java.exeThere would be no need to manually update either Doitsu's epubcheck plugin OR the calibre Open With plugin, because the calibre plugin is saving the java path before clearing everything else away. Trust me, :cool: I wasn't suggesting Yet Another Way to manually update it every time, I have no patience for manual updating myself. ... That being said, using calibre to open a book in Sigil is slightly roundabout, considering calibre has its own builtin Editor... I'd also like to know why, oh why, does Java feel the need to make highly unpredictable paths, and why has Microsoft never figured out how to provide a decent CLI, but that is getting waaaaaaaaaaaay offtopic. java is always /usr/bin/java on MY computer. :D |
:D
Quote:
Quote:
... Quote:
Quote:
As for the unpredictable paths? There are quite a few programs that require a specific version of Java. Some install the Java files within their own directory, other's expect to find the version where the Sun/Oracle installer would place it. I supported Java 1.4.2 for quite a few years after 1.5 and 1.6 were released for that reason. Anyhow, time to let this thread die since we need the Hubbell to see the topic. :D |
Quote:
BR |
Quote:
I've had one of those for a long time now... Quote:
Quote:
|
Quote:
|
Quote:
I'll do a little testing and talk to kiwidude about updating the plugin. |
| All times are GMT -4. The time now is 06:06 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.