|
|
#61 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 71
Karma: 8682
Join Date: May 2018
Device: Onyx Boox Note Air 2, Kindle Oasis 2
|
Thiago meu –
I'm having a couple issues. for some reason clicking on ACE or EPUB Check or customize from the context menu does nothing. I thought the plugin wasn't working but it runs from the menu bar. However, running ACE Check produces "Invalid EPUB or DRMed" for every book if I run Calibre from Terminal and "ERROR: No report found: Something went wrong. ACE did not produce a report. NoneType: None," if I run do not run Calibre from Terminal. I'm not sure why running Calibre from Terminal or not would produce different results and why neither would work. Terminal shows ACE is installed. Testing with standard EPUB files that I've converted in Calibre (definitely not DRM-protected). Running macOS 15.7, Calibre 8.9, Ace 1.3.7. Usually launch Calibre via Applications folder/Dock. Thanks! |
|
|
|
|
|
#62 | ||
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,329
Karma: 1436993
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
Quote:
![]() Quote:
It works fine here using calibre-debug. P.S.: I just noticed that, for some reason, I forgot to publish the last release (version 0.2.0). Please remove Check Books complely and install the new version from the first post (or via calibre, in an hour or so). |
||
|
|
|
|
|
#63 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,329
Karma: 1436993
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
Version 0.2.0 - 22 Aug 2025
- Bug fixes - Improvements for saving the reports to calibre data folders |
|
|
|
|
|
#64 | ||
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 71
Karma: 8682
Join Date: May 2018
Device: Onyx Boox Note Air 2, Kindle Oasis 2
|
Quote:
Quote:
Thanks, but I'm still having the same issues. See attached images, one from running from Terminal, one without. Note that the issues are the same for all EPUBs. |
||
|
|
|
|
|
#65 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,329
Karma: 1436993
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
I remembered another Mac user having a similar problem. Maybe his solution works for you: https://www.mobileread.com/forums/sh...9&postcount=31
|
|
|
|
|
|
#66 |
|
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 71
Karma: 8682
Join Date: May 2018
Device: Onyx Boox Note Air 2, Kindle Oasis 2
|
Hi thiago.eec,
Following up on my issue. I've managed to clean up my Calibre installation and capture a clean debug log of the "Check Books" plugin failing. The Key Finding: The plugin seems to fail silently. When I run the check, the external ACE tool appears to crash without returning any error message to the Calibre debug log. My System: macOS 15.7 on Apple Silicon Calibre 8.9 (running on Python 3.11.12) Node.js is installed at /usr/local/bin/node What I've Confirmed: The problem occurs on all EPUBs, including the DRM-free Calibre "Quick Start Guide." Calibre has Full Disk Access. I have a clean plugin environment after removing several old, incompatible Python 2 plugins. I am launching Calibre from the terminal (calibre-debug -g) to ensure the correct PATH is used. Please see the complete, clean debug log below. It captures Calibre starting up, me running the check (which produces the "Invalid EPUB" error in the GUI), and then me shutting Calibre down. As you can see, after the startup sequence, no specific error from your plugin is logged to the console. --- CALIBRE DEBUG LOG (from startup through the error) --- Spoiler:
This seems to point to an incompatibility between the ACE tool and the macOS/Apple Silicon environment. Any help you can provide would be greatly appreciated. Thanks! Last edited by mallomar; 08-27-2025 at 04:46 PM. |
|
|
|
|
|
#67 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,329
Karma: 1436993
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
Can you run the ACE editor plugin?
|
|
|
|
|
|
#68 |
|
Member
![]() Posts: 20
Karma: 10
Join Date: May 2025
Device: Kindle PW, iPad
|
I have a question about the EPUBCheck result pass/fail column. If a book has already passed EPUBCheck and has the green checkmark, that checkmark remains for me, even if a subsequent EPUBCheck (after book updates) fails. A red pin does appear on the far left, but the actual EPUBCheck result column still shows it passed (see screenshot).
Is this expected behavior? Just wondering if I'm doing something wrong or need to tweak settings in some way. |
|
|
|
|
|
#69 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,329
Karma: 1436993
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
Quote:
A DRMed book can't have its result marked as FALSE (red X), because it was not analyzed. On the other hand, the book with parsing errors restul should be marked as FALSE. The problem is EPUBCheck treats them equally. If it can't finalize the check, the file is marked with a FATAL flag. I guess the only pratical option would be to clear the status column, when FATAL errors occurs. |
|
|
|
|
|
|
#70 | |
|
Member
![]() Posts: 20
Karma: 10
Join Date: May 2025
Device: Kindle PW, iPad
|
Quote:
I did figure out a way to mark invalid epubs as FALSE using an Action Chains script that reads the JSON reports and sets results to No if there are fatal errors (it also clears/replaces previous Yes results). It doesn't touch the result column for anything else (e.g. files with no report or with a pre-existing pass or fail because of non-fatal errors). If a report is gone or can't be read, it just skips that epub. You can run it on your entire library and it will flag all the FATAL aborts. It's been really fast for me. Almost instantaneous, even on large batches (although I know that will vary by system). Script is below and Action Chain is attached, in case others find it useful. Script: Code:
import json
import re
import urllib.parse
def run(gui, settings, chain):
db = gui.current_db
newdb = db.new_api
book_ids = list(gui.library_view.get_selected_ids())
for book_id in book_ids:
report_html = newdb.field_for('#epubcheck_report', book_id)
if not report_html:
continue
match = re.search(r'href="file:///(.*?)"', report_html)
if not match:
continue
path = '/' + urllib.parse.unquote(match.group(1))
try:
with open(path, 'r', encoding='utf-8') as f:
data = json.load(f)
except:
continue
nFatal = data.get('checker', {}).get('nFatal', 0)
if nFatal > 0:
newdb.set_field('#epubcheck_result', {book_id: False})
|
|
|
|
|
|
|
#71 | |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,329
Karma: 1436993
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
Quote:
I'll release a fix soon. P.S.: For the books already checked in you library, your script be faster, because it just reads the JSON report. Running EPUBCheck again would take a lot longer. |
|
|
|
|
|
|
#72 |
|
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,329
Karma: 1436993
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
|
Version 0.2.1 - 20 Mar 2026
- Set the result column as FALSE when the book is DRMed or invalid (malformed) |
|
|
|
|
|
#73 |
|
Member
![]() Posts: 20
Karma: 10
Join Date: May 2025
Device: Kindle PW, iPad
|
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [GUI Plugin] Quality Check | kiwidude | Plugins | 1282 | 03-13-2026 02:23 PM |
| [GUI Plugin] ScrambleEbook: Getting help with copyrighted books | jackie_w | Plugins | 38 | 05-19-2022 05:23 AM |
| [GUI Plugin] Quality Check Trie title avec "de la " | Doum | Assistance | 4 | 01-18-2021 10:50 AM |
| How to get a list of books corresponding to the selected tag in the GUI plugin? | esvorontsov | Development | 6 | 09-29-2015 10:06 AM |