Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Sigil > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 08-23-2020, 07:29 PM   #346
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,844
Karma: 6120478
Join Date: Nov 2009
Device: many
According to your log, epubcheck ran to completion and found a bunch of empty "id" attributes. It also found some missing files and missing targets fragment. So the parsing of the epubcheck output must be an issue but what looks so strange here are the file paths have path joiner set to "." instead of the normal "/" character. I am not sure if that is the issue or not but since file extensions and "." are allowed in file names and directory names, it will cause serious issues when trying to parse a path.
KevinH is offline   Reply With Quote
Old 08-23-2020, 08:01 PM   #347
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,844
Karma: 6120478
Join Date: Nov 2009
Device: many
Okay, I took a look at the plugin.py code and this appears to be expected behaviour that results from a bug when a python subprocess is used to run a java command line program on macOSX.

My guess is the subprocess is not capturing any of the environment variable settings so no locale is detected and no java Properties are set (specifically the file.separator property). Or they try to lower case the os.name but without a Locale set in the environment it fails.

So my guess is your Sigil or temp path or book path has a "." someplace in the path that is confusing the workaround (perhaps here: "epub3-v4.1")

This is all a guess.

Perhaps adding a -Dos.name="Mac OS X" to the java command line of epubcheck on macOS may help prevent the need for the workaround.

Doitsu, I would be happy to test that for you if you decide to try that approach.

Last edited by KevinH; 08-23-2020 at 08:32 PM. Reason: "
KevinH is offline   Reply With Quote
Advert
Old 08-24-2020, 09:17 AM   #348
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,736
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by David Kudler View Post
I've attached the file — which, nicely, gave me the errors that epubcheck found, so yay for that too.
Thanks for the attaching the raw output file.

Since I don't have access to a Mac right now, KevinH had a look at my code and updated it to make the macOS message parser more robust.

Please download the new version and give it a try.

Last edited by Doitsu; 08-24-2020 at 04:21 PM.
Doitsu is offline   Reply With Quote
Old 09-12-2020, 05:14 PM   #349
cakeman1
Junior Member
cakeman1 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Sep 2020
Device: Kindle Paperwhite
Error: Plugin not a valid sigil plugin

I have the latest Sigil 1.30 and Java 64bit running on my Windows 10 64bit machine. I am unable to install epubcheck 4.2.4 or any earlier version. I get "Error: Plugin not a valid sigil plugin".

In Command I checked that java is installed.

I tried installing the plugin from my desktop, not Downloads.

However when I try "python -V" nothing shows. Python is supposed to be bundled with Sigil and it says it is in the manage plugin area "python 3.4".

Please advise.

I used your epubcheck program in the past and it is great. However, I updated to a new computer and cannot install it!

Thanks!
cakeman1 is offline   Reply With Quote
Old 09-12-2020, 07:19 PM   #350
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,613
Karma: 169712392
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by cakeman1 View Post
I have the latest Sigil 1.30 and Java 64bit running on my Windows 10 64bit machine. I am unable to install epubcheck 4.2.4 or any earlier version. I get "Error: Plugin not a valid sigil plugin".

In Command I checked that java is installed.

I tried installing the plugin from my desktop, not Downloads.

However when I try "python -V" nothing shows. Python is supposed to be bundled with Sigil and it says it is in the manage plugin area "python 3.4".

Please advise.

I used your epubcheck program in the past and it is great. However, I updated to a new computer and cannot install it!

Thanks!
Are you adding the zip file or attempting to add an unzipped version though I seem to remember the plugin installer only accepts .zip files.

Do you have the "Use Bundled Python" checkbox checked? If not, have you browsed to the python executable where ever it is installed on your computer using the Set button? Please note that unless you open a command prompt in the Sigil install directory, python3 -V will not work to check the bundled Python version since the Sigil directory is not added to the path.

Does your download match the following:
Code:
Name: EpubCheck_v0.4.5.zip
Size: 12038818 bytes (11 MiB)
SHA256: 79B7B0113C098AB2A8FD84CCCAB844C90D40F7FE7CB295D58C74D4630E5529A7
DNSB is offline   Reply With Quote
Advert
Old 09-12-2020, 10:08 PM   #351
DiapDealer
Grand Sorcerer
DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.DiapDealer ought to be getting tired of karma fortunes by now.
 
DiapDealer's Avatar
 
Posts: 28,645
Karma: 204624552
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
As already mentioned: make sure you're not unzipping or renaming the downloaded plugin. And make sure no browser download helpers are unzipping/renaming them for you.
DiapDealer is offline   Reply With Quote
Old 09-15-2020, 05:56 PM   #352
cakeman1
Junior Member
cakeman1 began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Sep 2020
Device: Kindle Paperwhite
Thank you !!! ver. 4.2.5 worked, the others do not. Very grateful!

BTW, yes, had the bundle checked and only loading in a zip.

Cakeman
cakeman1 is offline   Reply With Quote
Old 09-26-2020, 11:44 PM   #353
Rand Brittain
Bookmaker
Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.
 
Posts: 427
Karma: 2143650
Join Date: Sep 2010
Device: Cybook Opus
Hm, lately the plugin for Sigil and Calibre both keeps telling me it can't find the file specified, which research indicates is a Java problem. I reinstalled Java, which got it working for an hour or so before it started throwing the same error again.
Rand Brittain is offline   Reply With Quote
Old 09-27-2020, 01:25 AM   #354
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,736
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by Rand Brittain View Post
Hm, lately the plugin for Sigil and Calibre both keeps telling me it can't find the file specified, which research indicates is a Java problem. I reinstalled Java, which got it working for an hour or so before it started throwing the same error again.
Please post more information about your OS and the exact error message.

BTW, if you know the exact location of the Java executable, you can specify it via the java_path entry in the EpubCheck.json file. (Obviously, the Java path on your machine will be different.)

Code:
  "java_path": "C:\\Program Files\\Java\\jre1.8.0_191\\bin\\java.exe",
Note that you'll need to use double backslashes, if you have a Windows machine.
Doitsu is offline   Reply With Quote
Old 09-27-2020, 12:10 PM   #355
Rand Brittain
Bookmaker
Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.
 
Posts: 427
Karma: 2143650
Join Date: Sep 2010
Device: Cybook Opus
Quote:
Originally Posted by Doitsu View Post
Please post more information about your OS and the exact error message.

BTW, if you know the exact location of the Java executable, you can specify it via the java_path entry in the EpubCheck.json file. (Obviously, the Java path on your machine will be different.)
calibre, version 5.0.1
ERROR: Unhandled exception: <b>FileNotFoundError</b>:[WinError 2] The system cannot find the file specified

calibre 5.0.1 [64bit] embedded-python: True is64bit: True
Windows-10-10.0.19041-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19041')
Python 3.8.5
Windows: ('10', '10.0.19041', 'SP0', 'Multiprocessor Free')
Interface language: None
Successfully initialized third party plugins: EpubCheck (0, 2, 3) && Kobo Utilities (2, 11, 5) && KoboTouchExtended (3, 2, 15) && Modify ePub (1, 4, 1)
Traceback (most recent call last):
File "calibre_plugins.epub_check.main", line 401, in ask_user
File "calibre_plugins.epub_check.main", line 113, in jarWrapper
File "subprocess.py", line 854, in __init__
File "subprocess.py", line 1307, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified
Rand Brittain is offline   Reply With Quote
Old 09-27-2020, 12:13 PM   #356
Rand Brittain
Bookmaker
Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.Rand Brittain ought to be getting tired of karma fortunes by now.
 
Posts: 427
Karma: 2143650
Join Date: Sep 2010
Device: Cybook Opus
Specifying the java path in the JSON has gotten it to work for now, anyway.
Rand Brittain is offline   Reply With Quote
Old 10-31-2020, 11:51 AM   #357
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 46,613
Karma: 169712392
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
After an update to Java 8 update 271 on Windows 10 x64, I started getting the same error as @Rand Brittain. The java path workaround fixed the issue. I did notice the Java path in the environment was still showing the old version's path.

Last edited by DNSB; 10-31-2020 at 11:54 AM.
DNSB is offline   Reply With Quote
Old 10-31-2020, 01:40 PM   #358
hobnail
Running with scissors
hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.hobnail ought to be getting tired of karma fortunes by now.
 
Posts: 1,589
Karma: 14328510
Join Date: Nov 2019
Device: none
Quote:
Originally Posted by DNSB View Post
After an update to Java 8 update 271 on Windows 10 x64, I started getting the same error as @Rand Brittain. The java path workaround fixed the issue. I did notice the Java path in the environment was still showing the old version's path.
I just installed that version, 8u271, and epubcheck still works for me.

On my system for some time now Oracle has been installing a Windows symbolic hard link (?) to the current java version. In the System (not user) environment variables in the PATH environment variable it added

C:\Program Files (x86)\Common Files\Oracle\Java\javapath

which is a symbolic hard linked folder. The icon for that looks like a Windows shortcut but when you open its properties you don't get the usual properties window for a shortcut. I don't remember how I determined that it's a symbolic hard link, which are rarely seen (in my experience) on Windows. (Hard links appear to be an obscure and not well publicized feature of NTFS. Allowing multiple named data streams in files is another one.)

So if you use that in your PATH you shouldn't need to keep updating your PATH when new versions are installed.

I installed the 64 bit version of Java and I'm guessing that the x86 in the above is something to make everyone happy, including x86 things.

I'm wondering why you guys aren't getting this slightly convoluted wrapper for the java path. Maybe if you had it with the explicit path the installer keeps using that and I got the new method when I rebuilt my system.

Edit: fix link type.

Last edited by hobnail; 10-31-2020 at 02:08 PM.
hobnail is offline   Reply With Quote
Old 11-01-2020, 01:54 AM   #359
Thasaidon
Hedge Wizard
Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.Thasaidon ought to be getting tired of karma fortunes by now.
 
Thasaidon's Avatar
 
Posts: 802
Karma: 19999999
Join Date: May 2011
Location: UK/Philippines
Device: Kobo Touch, Nook Simple
Hi Doitsu

I recently upgraded to Calibre 5.4 on Windows 10 Enterprise and am running Sigil 1.1.0

This last couple of days I have been getting the following error message
when I have run ePubCheck in Sigil.

N.B. I ca run ePubCheck in Calibre Editor without problems.


Quote:
Status: failed

Traceback (most recent call last):
File "C:\Prog1\Sigil\plugin_launchers\python\launcher.p y", line 135, in launch
self.exitcode = target_script.run(container)
File "C:\Users\ryzen\AppData\Local\sigil-ebook\sigil\plugins\EpubCheck\plugin.py", line 213, in run
arch = get_arch(java_path)
File "C:\Users\ryzen\AppData\Local\sigil-ebook\sigil\plugins\EpubCheck\plugin.py", line 34, in get_arch
_, stderr = jar_wrapper(*args)
File "C:\Users\ryzen\AppData\Local\sigil-ebook\sigil\plugins\EpubCheck\plugin.py", line 44, in jar_wrapper
process = Popen(args, stdout=PIPE, stderr=PIPE, shell=False)
File "subprocess.py", line 775, in __init__
File "subprocess.py", line 1178, in _execute_child
FileNotFoundError: [WinError 2] The system cannot find the file specified
Error: [WinError 2] The system cannot find the file specified
Any ideas?
Thasaidon is offline   Reply With Quote
Old 11-01-2020, 01:02 AM   #360
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,736
Karma: 24031401
Join Date: Dec 2010
Device: Kindle PW2
You'll have to manually specify the java.exe path.
Doitsu is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 11:54 PM.


MobileRead.com is a privately owned, operated and funded community.