View Single Post
Old 09-26-2020, 02:37 PM   #1431
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: 46,978
Karma: 169810634
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
Quote:
Originally Posted by chaley View Post
That is very strange. It is saying that the plugin can't import a standard calibre module, in this case six.moves.urllib.request. What OS are you using?
I looked at the 1.5.4 container.py file and lines 10 to 15 read:
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
I copied the segment from the 1.5.3 container.py into the 1.5.4 container.py and now I get a different error message. I tried 4 or 5 single options and the same error.

Spoiler:
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_y3si84vr\81p9w4o7_modify_epub\9905.epub

Dealing With Demons - ERROR: Traceback (most recent call last):

  File "calibre_plugins.modify_epub.modify", line 60, in process_book

  File "calibre_plugins.modify_epub.modify", line 942, in _setup_user_options

  File "calibre_plugins.modify_epub.modify", line 921, in get_user_margins

AttributeError: 'GuiRecommendations' object has no attribute 'iteritems'



ePub not changed after 0.04 seconds


This is with calibre 5.0.1, Windows 10 x64.

Last edited by DNSB; 09-26-2020 at 02:42 PM.
DNSB is offline   Reply With Quote