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 10-02-2025, 06:11 PM   #1786
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: 80,746
Karma: 150249619
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
The problem is that the same issues with lxml as mentioned in Kovid's bug report are still present in your version that adds the RECOVER_PARSER definition.
I sent a PM to Kiwidude and told him of my changes and your suggested change.

For now, the versions I've posted work with calibre 8.12 and if Kiwidude wants to make the changes then he can and then replace my changes with his. That (IMHO) is the best way to do it.
JSWolf is offline   Reply With Quote
Old 10-02-2025, 06:20 PM   #1787
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: 48,102
Karma: 174315444
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
I sent a PM to Kiwidude and told him of my changes and your suggested change.

For now, the versions I've posted work with calibre 8.12 and if Kiwidude wants to make the changes then he can and then replace my changes with his. That (IMHO) is the best way to do it.
My recompile of calibre 8.12 to use MSVCP 1.44.35207 to test the issue I'm seeing with calibre's Open With and a Sigil version using Qt 6.9.2 is useful for my test purposes but I'm not about to distribute the result. I regard your plugin modifications much the same way though they should not cause any issues other the current issue which is not that easy to trigger.
DNSB is offline   Reply With Quote
Old 10-03-2025, 01:10 AM   #1788
Terisa de morgan
Grand Sorcerer
Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.Terisa de morgan ought to be getting tired of karma fortunes by now.
 
Terisa de morgan's Avatar
 
Posts: 6,686
Karma: 12595249
Join Date: Jun 2009
Location: Madrid, Spain
Device: Kobo Clara/Aura One/Forma,XiaoMI 5, iPad, Huawei MediaPad, YotaPhone 2
Quote:
Originally Posted by DNSB View Post
The problem is that the same issues with lxml as mentioned in Kovid's bug report are still present in your modification that simply adds the direct RECOVER_PARSER definition (and adds a second instance of the "from lxml import etree" line. I looked at the parse_html documentation and examples and it's a lot more work than I am able or willing to do. Not to mention the need to test those changes.
parse_html is fine for html, RECOVER_PARSER is for xml. Kovid has included now in his message which function you can use for xml.
Terisa de morgan is offline   Reply With Quote
Old 10-04-2025, 12:46 PM   #1789
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,127
Karma: 5005503
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Modify ePub v1.8.7

Release Notes
https://github.com/kiwidude68/calibr...fy_epub-v1.8.7

RECOVER_PARSER removed from Calibre, see #131

I've been in touch with kiwidude, he's swamped right now. So I'm putting these fixes up in my capacity as his backup.

Thanks, JSWolf, for stepping up in the interim.
JimmXinu is offline   Reply With Quote
Old 10-10-2025, 04:48 PM   #1790
JohnnyBook
Addict
JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.JohnnyBook holds these truths to be self-evident.
 
Posts: 209
Karma: 126824
Join Date: Dec 2008
Location: Out There
Device: K3 W/3G (Fixed screen!) & Paperwhite Wifi
Moved

Last edited by JohnnyBook; 10-11-2025 at 01:38 PM. Reason: Probably Wrong Topic
JohnnyBook is offline   Reply With Quote
Old 10-14-2025, 10:42 AM   #1791
Ferrari328
Member
Ferrari328 began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jan 2011
Device: Nook Color
Modify cover image size.

I usually do this manually, but this plugin should be able to do it, right? Plugin is installed. I changed the cover size in Preferences ->conversion->output options to 600x906. Clicking on Modify Epub gives an error. Doing a convert Epub to Epub gives a smaller file size, but the image size in Calibre is unchanged. The only things checked are removing embedded fonts, inserting or replacing the cover.

I have been using calibre for a long time, but I'm not familiar with this plugin and may be doing it all wrong.

Errors below.

calibre, version 8.12.0 (win32, embedded-python: True)
Failed to modify ePubs: Failed: Modify ePubs version (1, 8, 1)

Modify ePubs version (1, 8, 1)
Traceback (most recent call last):
File "runpy.py", line 198, in _run_module_as_main
File "runpy.py", line 88, in _run_code
File "site.py", line 83, in <module>
File "site.py", line 78, in main
File "site.py", line 50, in run_entry_point
File "calibre\utils\ipc\worker.py", line 213, in main
File "calibre\utils\ipc\worker.py", line 147, in arbitrary_n
File "importlib\__init__.py", line 126, in import_module
File "<frozen importlib._bootstrap>", line 1204, in _gcd_import
File "<frozen importlib._bootstrap>", line 1176, in _find_and_load
File "<frozen importlib._bootstrap>", line 1147, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 690, in _load_unlocked
File "calibre\customize\zipplugin.py", line 210, in exec_module
File "calibre_plugins.modify_epub.jobs", line 10, in <module>
File "calibre\customize\zipplugin.py", line 210, in exec_module
File "calibre_plugins.modify_epub.modify", line 19, in <module>
File "calibre\customize\zipplugin.py", line 210, in exec_module
File "calibre_plugins.modify_epub.container", line 25, in <module>
ImportError: cannot import name 'RECOVER_PARSER' from 'calibre.ebooks.oeb.parse_utils' (C:\Program Files\Calibre2\app\bin\python-lib.bypy.frozen\calibre\ebooks\oeb\parse_utils.pyc )
Ferrari328 is offline   Reply With Quote
Old 10-14-2025, 11:27 AM   #1792
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,127
Karma: 5005503
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Quote:
Originally Posted by Ferrari328 View Post
calibre, version 8.12.0 (win32, embedded-python: True)
Failed to modify ePubs: Failed: Modify ePubs version (1, 8, 1)
Update to the newest version of the plugin.

Look up two posts. The RECOVER_PARSER issue is specifically mentioned.
JimmXinu is offline   Reply With Quote
Old 10-14-2025, 11:31 AM   #1793
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: 80,746
Karma: 150249619
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 JimmXinu View Post
Update to the newest version of the plugin.

Look up two posts. The RECOVER_PARSER issue is specifically mentioned.
I don't get why some do not update the plugins when calibre notifies them of plugin updates.
JSWolf is offline   Reply With Quote
Old 10-14-2025, 12:44 PM   #1794
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 31,251
Karma: 61360164
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by JSWolf View Post
I don't get why some do not update the plugins when calibre notifies them of plugin updates.
US (Automotive) equipment '$ervice now needed' lights.
A MASSIVE revenue generator.
Some of these were really reminders to change fluids, but there was a $$ charge to just clear the light if you were a DIYer.
theducks is offline   Reply With Quote
Old 10-14-2025, 04:43 PM   #1795
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 22,012
Karma: 30277294
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by JSWolf View Post
I don't get why some do not update the plugins when calibre notifies them of plugin updates.
This is probably peculiar to me, stems from configuration management practices on antiques such as OS/360, MCP, RSX etc.

If I don't need the changes, which is almost always the case, I defer installing plugin updates until I install the next release of calibre. I normally update calibre on the day of a new release.

However, version 8.12 was an exception. I was out of action on the day it was released, when I saw the RECOVER PARSER problems I decided to stick with calibre 8.11. Consequently Modify EPUB and Count pages are waiting for calibre 8.13.

BR
BetterRed is online now   Reply With Quote
Old 10-16-2025, 07:00 AM   #1796
Ferrari328
Member
Ferrari328 began at the beginning.
 
Posts: 11
Karma: 10
Join Date: Jan 2011
Device: Nook Color
After updating the plugin it partly work.

I do update the plugins..

I have remove fonts checked and it did that. However, modify cover did not work. I've also tried converting EBUP to EPUB, and that didn't change the cover size either. I have the output set to 600x906 in shrink larger than.
Ferrari328 is offline   Reply With Quote
Old 10-16-2025, 07:04 AM   #1797
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: 80,746
Karma: 150249619
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 BetterRed View Post
This is probably peculiar to me, stems from configuration management practices on antiques such as OS/360, MCP, RSX etc.

If I don't need the changes, which is almost always the case, I defer installing plugin updates until I install the next release of calibre. I normally update calibre on the day of a new release.

However, version 8.12 was an exception. I was out of action on the day it was released, when I saw the RECOVER PARSER problems I decided to stick with calibre 8.11. Consequently Modify EPUB and Count pages are waiting for calibre 8.13.

BR
I went back to calibre 8.11 from 8.12 because of RECOVER_PARSER. Then I mentioned this in the calibre forum. Kovid gave me the answer to fix the plugins which I then did. So back to 8.12.

Because I'm using the backup plugin, I can update any of the plugins without a worry. If I have a problem with a new version that I did not with the older version, I can revert very easily.
JSWolf is offline   Reply With Quote
Reply

Tags
modify epub


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[GUI Plugin] Quality Check kiwidude Plugins 1277 10-21-2025 10:04 AM
[GUI Plugin] Open With kiwidude Plugins 404 02-21-2025 05:42 AM
[GUI Plugin] Manage Series kiwidude Plugins 167 07-28-2024 03:07 PM
Modify ePub plugin dev thread kiwidude Development 346 09-02-2013 05:14 PM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM


All times are GMT -4. The time now is 07:33 PM.


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