Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old 11-15-2026, 03:41 PM   #241
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,941
Karma: 24259515
Join Date: Dec 2010
Device: Kindle PW2
EPUBCheck is intended for EPUB files. I've uploaded a new version that'll display a warning if you try to check non-EPUB books with it.
Doitsu is offline   Reply With Quote
Old 11-15-2026, 03:44 PM   #242
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 85,738
Karma: 154365285
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Doitsu View Post
EPUBCheck is intended for EPUB files. I've uploaded a new version that'll display a warning if you try to check non-EPUB books with it.
KePub is valid ePub code. It's just ePub with a bunch of spans added all over the place. So there's no reason not to check KePub. It's just a different name because of way Kobo does things.

The attached ZIP file is a KePub. You can easily open it on any program that handles ePub by changing the extinction from .kepub to .epub.

Last edited by JSWolf; 11-15-2026 at 04:01 PM.
JSWolf is online now   Reply With Quote
Old 11-15-2026, 04:23 PM   #243
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,941
Karma: 24259515
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by JSWolf View Post
KePub is valid ePub code. It's just ePub with a bunch of spans added all over the place. So there's no reason not to check KePub. It's just a different name because of way Kobo does things.

The attached ZIP file is a KePub. You can easily open it on any program that handles ePub by changing the extinction from .kepub to .epub.
I've just tested it with the latest plugin version. When I changed the extension from .kepub to kepub.epub the plugin had no problems with it.
Doitsu is offline   Reply With Quote
Old 11-15-2026, 05:47 PM   #244
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 85,738
Karma: 154365285
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Doitsu View Post
I've just tested it with the latest plugin version. When I changed the extension from .kepub to kepub.epub the plugin had no problems with it.
Why did it close the editor when the extension was just .kepub? The thing is, the plugin creates .kepub. So that's what we have,
JSWolf is online now   Reply With Quote
Old 11-15-2026, 05:55 PM   #245
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: 55,914
Karma: 182837452
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
.kepub is what calibre uses internally with the driver changing the extension to .kepub.epub when sending to the device. Most programs use the file extension to determine the file type so epubcheck would need to be modified to see .kepub as being equivalent to .epub.

To me that is not something that I worry about since I seldom store kepub files in calibre uisng either calibre or an external program to convert to kepub before sending to the device.
DNSB is offline   Reply With Quote
Old 11-15-2026, 10:05 PM   #246
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 85,738
Karma: 154365285
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by DNSB View Post
.kepub is what calibre uses internally with the driver changing the extension to .kepub.epub when sending to the device. Most programs use the file extension to determine the file type so epubcheck would need to be modified to see .kepub as being equivalent to .epub.

To me that is not something that I worry about since I seldom store kepub files in calibre uisng either calibre or an external program to convert to kepub before sending to the device.
But epubcheck did run on KePub in the editor. The problem is that it caused the editor to close. That could be due to the bug in the editor that hides KePub code. So if I was to use kepubveri to create a KePub and then edit it, the KePub code is lost and then replaced with calibre's code. That causes epubveri to report errors that should not exist because the code was changed.
JSWolf is online now   Reply With Quote
Old 11-15-2026, 10:28 PM   #247
PeterT
Grand Sorcerer
PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.PeterT ought to be getting tired of karma fortunes by now.
 
Posts: 14,228
Karma: 84699364
Join Date: Nov 2007
Location: Toronto
Device: Libra H2O, Libra Colour
Jon; epubcheck did not run on a kepub in the editor. Calibre does an implicit conversion to Epub when the editor is opened and it's that converted book is passed to epubcheck
PeterT is offline   Reply With Quote
Old 11-15-2026, 10:38 PM   #248
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 85,738
Karma: 154365285
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by PeterT View Post
Jon; epubcheck did not run on a kepub in the editor. Calibre does an implicit conversion to Epub when the editor is opened and it's that converted book is passed to epubcheck
When doing the checking, the editor puts back in calibre's KePub code. That's why epubveri came up with 69 errors that are not in the KePub made by kepubveri. So epubcheck was checking KePub. It was checking using calibre's KePub code. As to why epubcheck closed the editor, I cannot say.
JSWolf is online now   Reply With Quote
Old 11-16-2026, 02:04 AM   #249
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,941
Karma: 24259515
Join Date: Dec 2010
Device: Kindle PW2
Quote:
Originally Posted by JSWolf View Post
That could be due to the bug in the editor that hides KePub code.
The problem was not caused by a bug in the Editor. I simply forgot to check the file extension because I didn't anticipate that someone would try to check non-Epub books with it.
Doitsu is offline   Reply With Quote
Old 11-16-2026, 09:04 AM   #250
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 85,738
Karma: 154365285
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by Doitsu View Post
The problem was not caused by a bug in the Editor. I simply forgot to check the file extension because I didn't anticipate that someone would try to check non-Epub books with it.
It is ePub. It's just got a different file extension. So it should work. And yes, the editor is at fault for changing the code.
JSWolf is online now   Reply With Quote
Old 11-16-2026, 04:04 PM   #251
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: 55,914
Karma: 182837452
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by JSWolf View Post
It is ePub. It's just got a different file extension. So it should work. And yes, the editor is at fault for changing the code.
Rather funny after all the times you complained about kepub and wanted to be able to edit without those kepub bits and bobs making your task harder.
DNSB is offline   Reply With Quote
Old Today, 06:32 AM   #252
Morozko
Junior Member
Morozko began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Mar 2020
Device: Kindle PW3
When I try to run this plugin in the Ebook Editor, it shows an error message, and doesn't run:

Code:
NameError: name 'self' is not defined
Expanding the error shows me

Code:
Traceback (most recent call last):
  File "calibre_plugins.epub_check.main", line 166, in parse_epubcheck_json
    data = json.loads(json_output)
  File "/usr/lib/python3.14/json/__init__.py", line 352, in loads
    return _default_decoder.decode(s)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^
  File "/usr/lib/python3.14/json/decoder.py", line 345, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
               ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.14/json/decoder.py", line 363, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "calibre_plugins.epub_check.main", line 923, in ask_user
    info = parse_epubcheck_json(stdout)
  File "calibre_plugins.epub_check.main", line 169, in parse_epubcheck_json
    self.gui,
    ^^^^
NameError: name 'self' is not defined
This is with Calibre 9.18, and EpubCheck plugin 0.3.1

My guess is it might have something to do with the prompt that pops up asking to update EpubCheck, which I just haven't selected "Yes" to for a while, and it not popping up now, but thinking that it did?
Morozko is offline   Reply With Quote
Old Today, 07:35 AM   #253
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,941
Karma: 24259515
Join Date: Dec 2010
Device: Kindle PW2
I recently updated the plugin and introduced some bugs.

Based on your error message, most likely Java isn't installed or wasn't found.

If you don't get a version number, when you enter the following in a terminal

Code:
java -version
most likely Java isn't installed or couldn't be found. If Java is definitely installed, you'll have to add the java binary path in EpubCheck.json:

Code:
  "java_path": "java",
I attached a beta version that should handle this particular error.
If it fixes your problem, I'll add it to the first post.
Attached Files
File Type: zip Beta_EpubCheck.zip (13.0 KB, 0 views)

Last edited by Doitsu; Today at 07:57 AM.
Doitsu is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
epubcheck plugin for Sigil Doitsu Plugins 576 10-23-2026 08:56 AM
Open Metadata Editor from plugin notbuu Development 5 10-05-2016 01:10 AM
Sample Plugin for the Editor DiapDealer Editor 77 12-10-2014 08:16 AM
Editor plugin question DiapDealer Development 2 07-28-2014 11:23 PM
Web-based epubcheck upgraded to epubcheck 1.0.5 kjk ePub 4 02-09-2010 10:53 PM


All times are GMT -4. The time now is 04:52 PM.


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