![]() |
#1396 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,760
Karma: 9918418
Join Date: Feb 2013
Location: Here on the perimeter, there are no stars
Device: Kobo H2O, iPad mini 3, Kindle Touch
|
So, calibre 5.0.0 is now out, and with it comes the move to Python v3.
Which I do not know. (Okay, technically I don't really know Python v2, either, but tinkering within a code base is a lot easier than trying to upgrade to a new one.) So this leaves us in a pickle: incompatible and outdated. Does anyone both know Python v3 and have the time and inclination to tackle this upgrade? |
![]() |
![]() |
![]() |
#1397 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
|
![]() |
![]() |
![]() |
#1398 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Python 3-compatible version for testing. As I said, I don't use the plugin so I don't know how to test it. This version starts on calibre 5 and can embed metadata. I didn't try it on calibre 4
Last edited by chaley; 09-28-2020 at 11:01 AM. Reason: Remove broken beta release |
![]() |
![]() |
![]() |
#1399 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,975
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
"Update Metadata" seems to work as expected. The feature I use most returned this error, though.
Remove calibre bookmark files: Code:
Modifying: C:\Users\[username]\AppData\Local\Temp\calibre_7mgpz7uw\u9snmsek_modify_epub\5035.epub Parsing xml file: content.opf Parsing xml file: toc.ncx Looking for files to remove: ['META-INF/calibre_bookmarks.txt'] Found file to remove: META-INF/calibre_bookmarks.txt No Cats Allowed - ERROR: Traceback (most recent call last): File "calibre_plugins.modify_epub.modify", line 80, in process_book File "calibre_plugins.modify_epub.container", line 687, in write TypeError: string argument without an encoding ePub not changed after 0.44 seconds |
![]() |
![]() |
![]() |
#1400 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
This version fixes that problem, and probably several others.
Last edited by chaley; 09-28-2020 at 11:01 AM. Reason: Remove broken beta release |
![]() |
![]() |
![]() |
#1401 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#1402 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,975
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Thanks for the fix.
![]() |
![]() |
![]() |
![]() |
#1403 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,220
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Using calibre 5.0.1, Modify Epub errors on quite a few functions. Most of the error messages were along the lines of:
Smarten Punctuation: TypeError: a bytes-like object is required, not 'str' Strip Spans: TypeError: cannot use a string pattern on a bytes-like object |
![]() |
![]() |
![]() |
#1404 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Honestly, I am considering abandoning the port project. ![]() |
|
![]() |
![]() |
![]() |
#1405 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I do use this plugin very much. If it's not converted, I'll have to stay with 4.23. So please don't abandon porting.
|
![]() |
![]() |
![]() |
#1406 |
Custom User Title
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,975
Karma: 75337983
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
|
Here's the error I got running strip spans + smarten puncuation. If you need them run separately I can do that.
Code:
Modifying: C:\Users\[user]\AppData\Local\Temp\calibre_n7_o6tj0\k9ixvfiz_modify_epub\5036.epub Parsing xml file: content.opf Parsing xml file: toc.ncx Applying smarten punctuation No Cats Allowed - ERROR: Traceback (most recent call last): File "calibre_plugins.modify_epub.modify", line 78, in process_book File "calibre_plugins.modify_epub.modify", line 180, in _process_book File "calibre_plugins.modify_epub.modify", line 518, in _smarten_punctuation File "calibre_plugins.modify_epub.modify", line 504, in smarten_punctuation_for_page TypeError: a bytes-like object is required, not 'str' ePub not changed after 0.43 seconds |
![]() |
![]() |
![]() |
#1407 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,220
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
|
![]() |
![]() |
![]() |
#1408 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Yet another test version. I tested it by choosing many of the options. It completed without crashing. I suspect the output is even correct.
![]() I don't know if this version is compatible with python 2 (calibre 4). There are a zillion fiddly bits around character conversion that it might not be. Last edited by chaley; 09-28-2020 at 11:02 AM. Reason: Remove broken beta release |
![]() |
![]() |
![]() |
#1409 | |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,758
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
|
|
![]() |
![]() |
![]() |
#1410 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Thank you.
Attached is a version that eliminates one possibility of incompatibility. Last edited by chaley; 09-28-2020 at 11:02 AM. Reason: Remove broken beta release |
![]() |
![]() |
![]() |
Tags |
modify epub |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Quality Check | kiwidude | Plugins | 1251 | 07-07-2025 09:13 PM |
[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 |