|
|
#1426 | ||
|
Grumpy old git
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,062
Karma: 3789385
Join Date: Jan 2010
Location: UK
Device: Reader
|
Quote:
Quote:
EDIT: Sorry if I sound a bit snippy. I do appreciate the suggestions. Last edited by chaley; 09-26-2020 at 02:56 PM. |
||
|
|
|
|
|
#1427 | |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 16,943
Karma: 82522897
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Kobo Forma, Kobo Clara HD, Lenovo M8 FHD, iPad Pro, Tolino
|
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 03:07 PM. Reason: Added version. |
|
|
|
|
| Advert | |
|
|
|
|
#1428 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 64,324
Karma: 104254653
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, PRS-650, PRS-T1, nook STR, iPad 4, iPhone SE 2020, PW3
|
|
|
|
|
|
|
#1429 | |
|
Grumpy old git
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,062
Karma: 3789385
Join Date: Jan 2010
Location: UK
Device: Reader
|
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 03:33 PM. |
|
|
|
|
|
|
#1430 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 64,324
Karma: 104254653
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, PRS-650, PRS-T1, nook STR, iPad 4, iPhone SE 2020, PW3
|
I cannot get 1.5.4 to error with 4.23. I'll try 5.0.1 portable.
|
|
|
|
| Advert | |
|
|
|
|
#1431 | |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 16,943
Karma: 82522897
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Kobo Forma, Kobo Clara HD, Lenovo M8 FHD, iPad Pro, Tolino
|
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 03:42 PM. |
|
|
|
|
|
|
#1432 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 64,324
Karma: 104254653
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, PRS-650, PRS-T1, nook STR, iPad 4, iPhone SE 2020, 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 |
|
Grumpy old git
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,062
Karma: 3789385
Join Date: Jan 2010
Location: UK
Device: Reader
|
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: 64,324
Karma: 104254653
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, PRS-650, PRS-T1, nook STR, iPad 4, iPhone SE 2020, PW3
|
|
|
|
|
|
|
#1435 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 16,943
Karma: 82522897
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Kobo Forma, Kobo Clara HD, Lenovo M8 FHD, iPad Pro, Tolino
|
|
|
|
|
|
|
#1436 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 64,324
Karma: 104254653
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, PRS-650, PRS-T1, nook STR, iPad 4, iPhone SE 2020, 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 |
|
Grumpy old git
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,062
Karma: 3789385
Join Date: Jan 2010
Location: UK
Device: Reader
|
Here is the latest version -- V1.5.4. This time I checked.
Last edited by chaley; 09-28-2020 at 12:04 PM. Reason: Remove broken beta release |
|
|
|
|
|
#1438 |
|
Bibliophagist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 16,943
Karma: 82522897
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Kobo Forma, Kobo Clara HD, Lenovo M8 FHD, iPad Pro, Tolino
|
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 06:55 PM. |
|
|
|
|
|
#1439 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 64,324
Karma: 104254653
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Aura H2O, PRS-650, PRS-T1, nook STR, iPad 4, iPhone SE 2020, 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 |
|
Grumpy old git
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 10,062
Karma: 3789385
Join Date: Jan 2010
Location: UK
Device: Reader
|
@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 12:05 PM. Reason: Remove broken beta release |
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [GUI Plugin] Open With | kiwidude | Plugins | 386 | 11-24-2021 01:38 AM |
| [GUI Plugin] Quality Check | kiwidude | Plugins | 1093 | 09-27-2021 12:19 PM |
| [GUI Plugin] Manage Series | kiwidude | Plugins | 156 | 09-30-2020 12:17 PM |
| Modify ePub plugin dev thread | kiwidude | Development | 346 | 09-02-2013 06:14 PM |
| [GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 01:27 PM |