![]() |
#1426 | ||
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
Quote:
EDIT: Sorry if I sound a bit snippy. I do appreciate the suggestions. Last edited by chaley; 09-26-2020 at 01:56 PM. |
||
![]() |
![]() |
![]() |
#1427 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,251
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Spoiler:
See attached image for the options used though I suspect it's not getting that far. Last edited by DNSB; 09-26-2020 at 02:07 PM. Reason: Added version. |
|
![]() |
![]() |
![]() |
#1428 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,762
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#1429 | |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Quote:
EDIT: I just tried it using stock calibre 5.0.1 (not running from source) on Win10 Pro and had no problem. Last edited by chaley; 09-26-2020 at 02:33 PM. |
|
![]() |
![]() |
![]() |
#1430 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,762
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I cannot get 1.5.4 to error with 4.23. I'll try 5.0.1 portable.
|
![]() |
![]() |
![]() |
#1431 | |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,251
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Quote:
Code:
import os, posixpath, sys, re, urllib from lxml import etree from lxml.etree import XMLSyntaxError from urlparse import urldefrag, urlparse, urlunparse from urllib import unquote as urlunquote while the 1.5.3 container.py file has: Code:
import six from six.moves import range from polyglot.builtins import unicode_type __license__ = 'GPL v3' __copyright__ = '2011, Grant Drake <grant.drake@gmail.com>' __docformat__ = 'restructuredtext en' import os, posixpath, sys, re import six.moves.urllib.request, six.moves.urllib.parse, six.moves.urllib.error from io import open from lxml import etree from lxml.etree import XMLSyntaxError from six.moves.urllib.parse import urldefrag, urlparse, urlunparse from six.moves.urllib.parse import unquote as urlunquote Spoiler:
This is with calibre 5.0.1, Windows 10 x64. Last edited by DNSB; 09-26-2020 at 02:42 PM. |
|
![]() |
![]() |
![]() |
#1432 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,762
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Trying 1.5.4 with Calibre 5.0.1, I get a new error. I clicked Save to save my settings and got...
Code:
calibre, version 5.0.1 ERROR: Unhandled exception: <b>AttributeError</b>:'dict' object has no attribute 'iteritems' calibre 5.0.1 Portable embedded-python: True is64bit: False Windows-10-10.0.18362-SP0 Windows ('32bit', 'WindowsPE') 32bit process running on 64bit windows ('Windows', '10', '10.0.18362') Python 3.8.5 Windows: ('10', '10.0.18362', 'SP0', 'Multiprocessor Free') Interface language: None Successfully initialized third party plugins: Amazon hi-res covers (0, 1, 0) && Annotations (1, 12, 0) && BookFusion Plugin (0, 5, 3) && Count Pages (1, 10, 0) && Diaps Editing Toolbag (0, 3, 6) && EpubCheck (0, 2, 3) && EpubSplit (2, 9, 0) && Favourites Menu (1, 0, 5) && Find Duplicates (1, 7, 2) && Hyphenate This! (0, 0, 9) && Set KFX metadata (from KFX Output) (1, 44, 0) && KFX Output (1, 44, 0) && KePub Metadata Reader (3, 2, 9) && KePub Metadata Writer (3, 2, 12) && KePub Output (3, 2, 15) && KindleUnpack - The Plugin (0, 82, 3) && Kobo Books (1, 8, 0) && Kobo Utilities (2, 11, 5) && KoboTouchExtended (3, 2, 15) && Modify ePub (1, 4, 1) && Quality Check (1, 10, 1) && Reading List (1, 6, 15) && ScrambleEbook (0, 4, 5) Traceback (most recent call last): File "calibre_plugins.modify_epub.dialogs", line 198, in _save_clicked AttributeError: 'dict' object has no attribute 'iteritems' |
![]() |
![]() |
![]() |
#1433 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Folks, I think i messed up and posted the original unported version. I will put up the new one after I finish dinner.
|
![]() |
![]() |
![]() |
#1434 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,762
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
|
![]() |
![]() |
![]() |
#1435 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,251
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
|
![]() |
![]() |
![]() |
#1436 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,762
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I too appreciate this. I really do hope we can get it working. It's one of the plugins I use a lot.
|
![]() |
![]() |
![]() |
#1437 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
Here is the latest version -- V1.5.4. This time I checked.
![]() Last edited by chaley; 09-28-2020 at 11:04 AM. Reason: Remove broken beta release |
![]() |
![]() |
![]() |
#1438 |
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 46,251
Karma: 168983734
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
|
Still no joy here. I tried 4 or 5 individual options and the error message was the same.
Code:
calibre, version 5.0.1 ERROR: Modify ePub failed: No ePub files were updated Modify ePubs Modifying: C:\Users\David\AppData\Local\Temp\calibre_dj7nyszb\rw5zcx9r_modify_epub\9904.epub Updating metadata and cover Mind Games - ERROR: Traceback (most recent call last): File "calibre_plugins.modify_epub.modify", line 78, in process_book File "calibre_plugins.modify_epub.container", line 86, in __init__ File "src/lxml/etree.pyx", line 3237, in lxml.etree.fromstring File "src/lxml/parser.pxi", line 1891, in lxml.etree._parseMemoryDocument ValueError: Unicode strings with encoding declaration are not supported. Please use bytes input or XML fragments without declaration. ePub not changed after 0.30 seconds Last edited by DNSB; 09-26-2020 at 05:55 PM. |
![]() |
![]() |
![]() |
#1439 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 79,762
Karma: 145864619
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Still not working,
Calibre 4.23 any option.. Code:
calibre, version 4.23.0 ERROR: Modify ePub failed: No ePub files were updated Modify ePubs Logfile for book ID 2244 (The Measure of the Magic / Terry Brooks) 2244 Modifying: C:\Users\help\AppData\Local\Temp\calibre_xn2tdk\ggfek8_modify_epub\2244.epub The Measure of the Magic - ERROR: Traceback (most recent call last): File "calibre_plugins.modify_epub.modify", line 78, in process_book File "calibre_plugins.modify_epub.container", line 86, in __init__ File "src/lxml/etree.pyx", line 3222, in lxml.etree.fromstring File "src/lxml/parser.pxi", line 1872, in lxml.etree._parseMemoryDocument ValueError: Unicode strings with encoding declaration are not supported. Please use bytes input or XML fragments without declaration. ePub not changed after 0.89 seconds Code:
calibre, version 5.0.1 ERROR: Modify ePub failed: No ePub files were updated Modify ePubs Logfile for book ID 2244 (The Measure of the Magic / Terry Brooks) 2244 Modifying: C:\Users\help\AppData\Local\Temp\calibre_179jmqy8\i1y3qr4f_modify_epub\2244.epub The Measure of the Magic - ERROR: Traceback (most recent call last): File "calibre_plugins.modify_epub.modify", line 78, in process_book File "calibre_plugins.modify_epub.container", line 86, in __init__ File "src/lxml/etree.pyx", line 3237, in lxml.etree.fromstring File "src/lxml/parser.pxi", line 1891, in lxml.etree._parseMemoryDocument ValueError: Unicode strings with encoding declaration are not supported. Please use bytes input or XML fragments without declaration. ePub not changed after 0.72 seconds |
![]() |
![]() |
![]() |
#1440 |
Grand Sorcerer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 12,447
Karma: 8012886
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
|
@DNSB: thanks for the exception log, and @JSWolf: thanks for the copy of an offending book. That let me find another case where something the plugin calls sometimes wants a byte string instead of a "normal" string. The attached version takes care of that.
I tested it with your book that specifies the encoding, and with one of my books that does not. I checked every box. No fatal failures. The plugin did complain about lacking a cover in your book. May it please be that this one works. ![]() Last edited by chaley; 09-28-2020 at 11:05 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 |