![]() |
#196 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,680
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
|
![]()
This thread is not intended for discussing the pros and cons of using EPUBCheck or best practices.
@ryder please ask questions about best practices in the ePub forum. I'll ask the mods to hide future posts that are not about installing or using the Calibre EPUBCheck plugin. Last edited by Doitsu; 01-19-2025 at 03:32 AM. |
![]() |
![]() |
![]() |
#197 | |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Sep 2021
Device: none
|
Hello!
I get an error message when starting this plugin: Quote:
Hope you can help. Morea |
|
![]() |
![]() |
Advert | |
|
![]() |
#198 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,047
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Are you using the latest 64-bit version of Java? If it's any 32-bit version of Java, then you will have a problem.
|
![]() |
![]() |
![]() |
#199 | |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Sep 2021
Device: none
|
Quote:
BUT the user settings of my Calibre installation come from an older installation of Calibre - and perhaps that was a 32-bit installation... |
|
![]() |
![]() |
![]() |
#200 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,680
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
|
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:
|
![]() |
![]() |
Advert | |
|
![]() |
#201 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,047
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#202 | ||
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,695
Karma: 168431851
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Personally, if I get an error message indicating that an ePub files contains encoding that is not UTF-8 or UTF-16 (I've seen 2 ePubs in my entire involvement with ereading that were UTF-16 encoded), that ePub is not standards compliant and should be fixed. As section 3.9 of the ePub 3.3 recommendation states:
Quote:
Quote:
Last edited by DNSB; 03-04-2025 at 01:46 AM. |
||
![]() |
![]() |
![]() |
#203 | |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Sep 2021
Device: none
|
Quote:
![]() I did not try to fix the plugin's main.py, since I used the epubcheck plugin in the version 4.26 for some years and never got such a crash. I suppose there is something new in Windows 11 that was no problem in Windows 10 all these years... |
|
![]() |
![]() |
![]() |
#204 |
Junior Member
![]() Posts: 9
Karma: 10
Join Date: Sep 2021
Device: none
|
Fix
Now I fixed the plugin's main.py as you described and: yes! It works like charm, with the old 4.26 epubcheck version and the new 5.12 one!
This is the fixed zip: https://www.mobileread.com/forums/at...1&d=1741082768 Thank you! |
![]() |
![]() |
![]() |
#205 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 100
Karma: 1435120
Join Date: Nov 2010
Location: West of the Pecos
Device: FireHD8, iPad
|
Getting a really strange error window when I run EpubCheck; way beyond my pay grade. Seems to be the same error with any ePub I open with the Edit command and then run the EpubCheck.
![]() |
![]() |
![]() |
![]() |
#206 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 44,695
Karma: 168431851
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Rather odd. What version of Java are you running? If you are running a 64 bit version of Java, you could try modifying the main.py file in the EPUBCHECK directory by modifying the 64 bit command line parameters line to read:
Code:
# define epubcheck command line parameters if is32bit: args = [java_path, '-Dfile.encoding=UTF8', '-Xss1024k', '-jar', epc_path, '--version'] else: args = [java_path, '-Dfile.encoding=UTF8', '-Xss2048k', '-jar', epc_path, '--version'] Last edited by DNSB; 05-01-2025 at 08:22 PM. |
![]() |
![]() |
![]() |
#207 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 5,680
Karma: 23983815
Join Date: Dec 2010
Device: Kindle PW2
|
There's no need to modify the source code. Simply change the is32bit parameter in the EpubCheck.json file to true.
Code:
"is32bit": true, ![]() |
![]() |
![]() |
![]() |
#208 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 100
Karma: 1435120
Join Date: Nov 2010
Location: West of the Pecos
Device: FireHD8, iPad
|
Will try the fix(es) suggested in the morning. I'm writing this from another computer and EpubCheck is working correctly (once I installed the 64-bit Java - this machine actually didn't have -any- Java installed).
I did get a message about installing a new version of EpubCheck but, when I had Calibre check for one, it didn't do anything. I believe I have 4.26 installed. I'll advise tomorrow afternoon how it all goes. Thank you! |
![]() |
![]() |
![]() |
#209 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 100
Karma: 1435120
Join Date: Nov 2010
Location: West of the Pecos
Device: FireHD8, iPad
|
My installed Java (on the machine displaying the stackOverflow) was v8 161 (which I do not believe was ID'd as 64-bit). I DL'd the new Java installer and it removed the old version and installed v8 451 which -is- 64-bit.
The EpubCheck ran without any Java errors and all seems to be fine. Again, thanks for the advice. ![]() |
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
epubcheck plugin for Sigil | Doitsu | Plugins | 539 | 04-19-2025 08:45 AM |
Open Metadata Editor from plugin | notbuu | Development | 5 | 10-05-2016 12:10 AM |
Sample Plugin for the Editor | DiapDealer | Editor | 77 | 12-10-2014 07:16 AM |
Editor plugin question | DiapDealer | Development | 2 | 07-28-2014 10:23 PM |
Web-based epubcheck upgraded to epubcheck 1.0.5 | kjk | ePub | 4 | 02-09-2010 09:53 PM |