|
|
#1801 | |
|
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,823
Karma: 2220202
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Quote:
|
|
|
|
|
|
|
#1802 |
|
Calibre Plugins Developer
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 4,823
Karma: 2220202
Join Date: Oct 2010
Location: Australia
Device: Kindle Oasis
|
Modify ePub release
|
|
|
|
|
|
#1803 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 273
Karma: 2121470
Join Date: Oct 2011
Location: Arlington, TX
Device: Kobo Libra Color, Kindle PW4, Koreader on a cheap Android tablet
|
Failure modifying css
Hello,
I've been using this plugin for a long time and had it fail today, for the first time, on a new book. From the errors at the end of the log, I decided that it failed processing the "Modify @page and body margin styles" option, so I unchecked that and was able to get past it and successfully modify the epub. Error log: Code:
calibre, version 9.16.0
ERROR: Modify ePub changed no files: No ePub files were updated. If this isn't what you expected then press the Show details button to check for errors in the log.
Modify ePubs version (1, 8, 10)
calibre_plugins.fantastic_fiction.__init__:96: SyntaxWarning: "\." is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\."? A raw string is also an option.
calibre_plugins.fictiondb.__init__:54: SyntaxWarning: "\." is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\."? A raw string is also an option.
Failed to initialize plugin: '/home/john/.config/calibre/plugins/FictionDB.zip'
Traceback (most recent call last):
File "calibre/customize/ui.py", line 903, in initialize_plugins
File "calibre/customize/ui.py", line 88, in load_plugin
File "calibre/customize/zipplugin.py", line 321, in load
File "importlib/__init__.py", line 88, in import_module
File "<frozen importlib._bootstrap>", line 1406, in _gcd_import
File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
File "<frozen importlib._bootstrap>", line 1342, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 938, in _load_unlocked
File "calibre/customize/zipplugin.py", line 224, in exec_module
File "calibre_plugins.fictiondb.__init__", line 11, in <module>
from urllib import quote, urlencode
ImportError: cannot import name 'quote' from 'urllib' (/opt/calibre/lib/calibre-extensions/python-lib.bypy.frozen/urllib/__init__.pyc)
Failed to initialize plugin: '/home/john/.config/calibre/plugins/Kobo Metadata.zip'
Traceback (most recent call last):
File "calibre/customize/ui.py", line 827, in initialize_plugin
File "calibre_plugins.kobo_metadata.__init__", line 129, in __init__
from .kobo_metadata import KoboMetadataImpl
File "calibre/customize/zipplugin.py", line 224, in exec_module
File "calibre_plugins.kobo_metadata.kobo_metadata", line 16, in <module>
import cloudscraper
ModuleNotFoundError: No module named 'cloudscraper'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "calibre/customize/ui.py", line 908, in initialize_plugins
File "calibre/customize/ui.py", line 834, in initialize_plugin
calibre.customize.InvalidPlugin: Initialization of plugin Traceback (most recent call last):
File "calibre/customize/ui.py", line 827, in initialize_plugin
File "calibre_plugins.kobo_metadata.__init__", line 129, in __init__
from .kobo_metadata import KoboMetadataImpl
File "calibre/customize/zipplugin.py", line 224, in exec_module
File "calibre_plugins.kobo_metadata.kobo_metadata", line 16, in <module>
import cloudscraper
ModuleNotFoundError: No module named 'cloudscraper'
failed with traceback:
Traceback (most recent call last):
File "calibre/customize/ui.py", line 827, in initialize_plugin
File "calibre_plugins.kobo_metadata.__init__", line 129, in __init__
from .kobo_metadata import KoboMetadataImpl
File "calibre/customize/zipplugin.py", line 224, in exec_module
File "calibre_plugins.kobo_metadata.kobo_metadata", line 16, in <module>
import cloudscraper
ModuleNotFoundError: No module named 'cloudscraper'
calibre_plugins.webscription.__init__:46: SyntaxWarning: "\d" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\d"? A raw string is also an option.
Failed to initialize plugin: '/home/john/.config/calibre/plugins/Webscription.zip'
Traceback (most recent call last):
File "calibre/customize/ui.py", line 903, in initialize_plugins
File "calibre/customize/ui.py", line 88, in load_plugin
File "calibre/customize/zipplugin.py", line 321, in load
File "importlib/__init__.py", line 88, in import_module
File "<frozen importlib._bootstrap>", line 1406, in _gcd_import
File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
File "<frozen importlib._bootstrap>", line 1342, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 938, in _load_unlocked
File "calibre/customize/zipplugin.py", line 224, in exec_module
File "calibre_plugins.webscription.__init__", line 11, in <module>
import time, re, HTMLParser
ModuleNotFoundError: No module named 'HTMLParser'
Failed to initialize plugin: Kobo Metadata (1, 9, 1)
Logfile for book ID 1558 (Foucault’s Pendulum / Umberto Eco)
Job details 1558
calibre_plugins.fantastic_fiction.__init__:96: SyntaxWarning: "\." is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\."? A raw string is also an option.
calibre_plugins.fictiondb.__init__:54: SyntaxWarning: "\." is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\."? A raw string is also an option.
Failed to initialize plugin: '/home/john/.config/calibre/plugins/FictionDB.zip'
Traceback (most recent call last):
File "calibre/customize/ui.py", line 903, in initialize_plugins
File "calibre/customize/ui.py", line 88, in load_plugin
File "calibre/customize/zipplugin.py", line 321, in load
File "importlib/__init__.py", line 88, in import_module
File "<frozen importlib._bootstrap>", line 1406, in _gcd_import
File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
File "<frozen importlib._bootstrap>", line 1342, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 938, in _load_unlocked
File "calibre/customize/zipplugin.py", line 224, in exec_module
File "calibre_plugins.fictiondb.__init__", line 11, in <module>
from urllib import quote, urlencode
ImportError: cannot import name 'quote' from 'urllib' (/opt/calibre/lib/calibre-extensions/python-lib.bypy.frozen/urllib/__init__.pyc)
Failed to initialize plugin: '/home/john/.config/calibre/plugins/Kobo Metadata.zip'
Traceback (most recent call last):
File "calibre/customize/ui.py", line 827, in initialize_plugin
File "calibre_plugins.kobo_metadata.__init__", line 129, in __init__
from .kobo_metadata import KoboMetadataImpl
File "calibre/customize/zipplugin.py", line 224, in exec_module
File "calibre_plugins.kobo_metadata.kobo_metadata", line 16, in <module>
import cloudscraper
ModuleNotFoundError: No module named 'cloudscraper'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "calibre/customize/ui.py", line 908, in initialize_plugins
File "calibre/customize/ui.py", line 834, in initialize_plugin
calibre.customize.InvalidPlugin: Initialization of plugin Traceback (most recent call last):
File "calibre/customize/ui.py", line 827, in initialize_plugin
File "calibre_plugins.kobo_metadata.__init__", line 129, in __init__
from .kobo_metadata import KoboMetadataImpl
File "calibre/customize/zipplugin.py", line 224, in exec_module
File "calibre_plugins.kobo_metadata.kobo_metadata", line 16, in <module>
import cloudscraper
ModuleNotFoundError: No module named 'cloudscraper'
failed with traceback:
Traceback (most recent call last):
File "calibre/customize/ui.py", line 827, in initialize_plugin
File "calibre_plugins.kobo_metadata.__init__", line 129, in __init__
from .kobo_metadata import KoboMetadataImpl
File "calibre/customize/zipplugin.py", line 224, in exec_module
File "calibre_plugins.kobo_metadata.kobo_metadata", line 16, in <module>
import cloudscraper
ModuleNotFoundError: No module named 'cloudscraper'
calibre_plugins.webscription.__init__:46: SyntaxWarning: "\d" is an invalid escape sequence. Such sequences will not work in the future. Did you mean "\\d"? A raw string is also an option.
Failed to initialize plugin: '/home/john/.config/calibre/plugins/Webscription.zip'
Traceback (most recent call last):
File "calibre/customize/ui.py", line 903, in initialize_plugins
File "calibre/customize/ui.py", line 88, in load_plugin
File "calibre/customize/zipplugin.py", line 321, in load
File "importlib/__init__.py", line 88, in import_module
File "<frozen importlib._bootstrap>", line 1406, in _gcd_import
File "<frozen importlib._bootstrap>", line 1371, in _find_and_load
File "<frozen importlib._bootstrap>", line 1342, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 938, in _load_unlocked
File "calibre/customize/zipplugin.py", line 224, in exec_module
File "calibre_plugins.webscription.__init__", line 11, in <module>
import time, re, HTMLParser
ModuleNotFoundError: No module named 'HTMLParser'
Failed to initialize plugin: Kobo Metadata (1, 9, 1)
Modifying: /tmp/calibre-1jyzfo5k/37mkjxn3_modify_epub/1558.epub
Parsing xml file: OPS/content.opf
Parsing xml file: OPS/toc.ncx
Looking for Adobe xpgt files and links to remove
Looking for pagemaps
Looking for Google Play pagemaps
Looking for Adobe DRM meta tags to remove
Removed meta tag from: OPS/love_1.xhtml
Removed meta tag from: OPS/love_2.xhtml
Removed meta tag from: OPS/c59.xhtml
Removed meta tag from: OPS/c120.xhtml
Removed meta tag from: OPS/c64.xhtml
Removed meta tag from: OPS/c21.xhtml
Removed meta tag from: OPS/c99.xhtml
Removed meta tag from: OPS/c40.xhtml
Removed meta tag from: OPS/c05.xhtml
Removed meta tag from: OPS/c38.xhtml
Removed meta tag from: OPS/c104.xhtml
Removed meta tag from: OPS/c80.xhtml
Removed meta tag from: OPS/c82.xhtml
Removed meta tag from: OPS/c106.xhtml
Removed meta tag from: OPS/c42.xhtml
Removed meta tag from: OPS/c07.xhtml
Removed meta tag from: OPS/c66.xhtml
Removed meta tag from: OPS/c23.xhtml
Removed meta tag from: OPS/c002.xhtml
Removed meta tag from: OPS/back02.xhtml
Removed meta tag from: OPS/c006.xhtml
Removed meta tag from: OPS/c62.xhtml
Removed meta tag from: OPS/c27.xhtml
Removed meta tag from: OPS/c102.xhtml
Removed meta tag from: OPS/c86.xhtml
Removed meta tag from: OPS/c46.xhtml
Removed meta tag from: OPS/c03.xhtml
Removed meta tag from: OPS/c44.xhtml
Removed meta tag from: OPS/c01.xhtml
Removed meta tag from: OPS/c84.xhtml
Removed meta tag from: OPS/c79.xhtml
Removed meta tag from: OPS/c100.xhtml
Removed meta tag from: OPS/c18.xhtml
Removed meta tag from: OPS/c004.xhtml
Removed meta tag from: OPS/c60.xhtml
Removed meta tag from: OPS/c25.xhtml
Removed meta tag from: OPS/c119.xhtml
Removed meta tag from: OPS/c06.xhtml
Removed meta tag from: OPS/c43.xhtml
Removed meta tag from: OPS/c83.xhtml
Removed meta tag from: OPS/c107.xhtml
Removed meta tag from: OPS/c003.xhtml
Removed meta tag from: OPS/c22.xhtml
Removed meta tag from: OPS/c67.xhtml
Removed meta tag from: OPS/c001.xhtml
Removed meta tag from: OPS/c20.xhtml
Removed meta tag from: OPS/c65.xhtml
Removed meta tag from: OPS/c98.xhtml
Removed meta tag from: OPS/back01.xhtml
Removed meta tag from: OPS/c58.xhtml
Removed meta tag from: OPS/c39.xhtml
Removed meta tag from: OPS/c105.xhtml
Removed meta tag from: OPS/c81.xhtml
Removed meta tag from: OPS/titlepage.xhtml
Removed meta tag from: OPS/c04.xhtml
Removed meta tag from: OPS/c41.xhtml
Removed meta tag from: OPS/c85.xhtml
Removed meta tag from: OPS/c78.xhtml
Removed meta tag from: OPS/c101.xhtml
Removed meta tag from: OPS/c45.xhtml
Removed meta tag from: OPS/c24.xhtml
Removed meta tag from: OPS/c61.xhtml
Removed meta tag from: OPS/c118.xhtml
Removed meta tag from: OPS/c005.xhtml
Removed meta tag from: OPS/c19.xhtml
Removed meta tag from: OPS/c26.xhtml
Removed meta tag from: OPS/c63.xhtml
Removed meta tag from: OPS/c007.xhtml
Removed meta tag from: OPS/c02.xhtml
Removed meta tag from: OPS/c47.xhtml
Removed meta tag from: OPS/c103.xhtml
Removed meta tag from: OPS/c87.xhtml
Removed meta tag from: OPS/c76.xhtml
Removed meta tag from: OPS/c33.xhtml
Removed meta tag from: OPS/c116.xhtml
Removed meta tag from: OPS/c92.xhtml
Removed meta tag from: OPS/c52.xhtml
Removed meta tag from: OPS/c17.xhtml
Removed meta tag from: OPS/c50.xhtml
Removed meta tag from: OPS/c15.xhtml
Removed meta tag from: OPS/c90.xhtml
Removed meta tag from: OPS/c114.xhtml
Removed meta tag from: OPS/c28.xhtml
Removed meta tag from: OPS/c009.xhtml
Removed meta tag from: OPS/c49.xhtml
Removed meta tag from: OPS/c010.xhtml
Removed meta tag from: OPS/c89.xhtml
Removed meta tag from: OPS/c74.xhtml
Removed meta tag from: OPS/c31.xhtml
Removed meta tag from: OPS/c08.xhtml
Removed meta tag from: OPS/c109.xhtml
Removed meta tag from: OPS/c70.xhtml
Removed meta tag from: OPS/c35.xhtml
Removed meta tag from: OPS/c54.xhtml
Removed meta tag from: OPS/c11.xhtml
Removed meta tag from: OPS/c110.xhtml
Removed meta tag from: OPS/c69.xhtml
Removed meta tag from: OPS/c94.xhtml
Removed meta tag from: OPS/toc.xml
Removed meta tag from: OPS/c96.xhtml
Removed meta tag from: OPS/c112.xhtml
Removed meta tag from: OPS/c56.xhtml
Removed meta tag from: OPS/c13.xhtml
Removed meta tag from: OPS/front02.xhtml
Removed meta tag from: OPS/c72.xhtml
Removed meta tag from: OPS/c37.xhtml
Removed meta tag from: OPS/c008.xhtml
Removed meta tag from: OPS/c91.xhtml
Removed meta tag from: OPS/c115.xhtml
Removed meta tag from: OPS/c29.xhtml
Removed meta tag from: OPS/c14.xhtml
Removed meta tag from: OPS/c51.xhtml
Removed meta tag from: OPS/c75.xhtml
Removed meta tag from: OPS/c48.xhtml
Removed meta tag from: OPS/c32.xhtml
Removed meta tag from: OPS/c77.xhtml
Removed meta tag from: OPS/c88.xhtml
Removed meta tag from: OPS/c30.xhtml
Removed meta tag from: OPS/c53.xhtml
Removed meta tag from: OPS/c117.xhtml
Removed meta tag from: OPS/c93.xhtml
Removed meta tag from: OPS/front03.xhtml
Removed meta tag from: OPS/c16.xhtml
Removed meta tag from: OPS/c12.xhtml
Removed meta tag from: OPS/c57.xhtml
Removed meta tag from: OPS/c97.xhtml
Removed meta tag from: OPS/c113.xhtml
Removed meta tag from: OPS/c36.xhtml
Removed meta tag from: OPS/c108.xhtml
Removed meta tag from: OPS/c73.xhtml
Removed meta tag from: OPS/c71.xhtml
Removed meta tag from: OPS/c09.xhtml
Removed meta tag from: OPS/c34.xhtml
Removed meta tag from: OPS/c111.xhtml
Removed meta tag from: OPS/c68.xhtml
Removed meta tag from: OPS/front01.xhtml
Removed meta tag from: OPS/c95.xhtml
Removed meta tag from: OPS/c10.xhtml
Removed meta tag from: OPS/c55.xhtml
Looking for html files to remove charset meta tags/encode to utf-8
Switched to UTF-8 encoding for: OPS/toc.xhtml
Switched to UTF-8 encoding for: OPS/love_1.xhtml
Switched to UTF-8 encoding for: OPS/love_2.xhtml
Switched to UTF-8 encoding for: OPS/c59.xhtml
Switched to UTF-8 encoding for: OPS/c120.xhtml
Switched to UTF-8 encoding for: OPS/c64.xhtml
Switched to UTF-8 encoding for: OPS/c21.xhtml
Switched to UTF-8 encoding for: OPS/c99.xhtml
Switched to UTF-8 encoding for: OPS/c40.xhtml
Switched to UTF-8 encoding for: OPS/c05.xhtml
Switched to UTF-8 encoding for: OPS/c38.xhtml
Switched to UTF-8 encoding for: OPS/c104.xhtml
Switched to UTF-8 encoding for: OPS/c80.xhtml
Switched to UTF-8 encoding for: OPS/c82.xhtml
Switched to UTF-8 encoding for: OPS/c106.xhtml
Switched to UTF-8 encoding for: OPS/c42.xhtml
Switched to UTF-8 encoding for: OPS/c07.xhtml
Switched to UTF-8 encoding for: OPS/c66.xhtml
Switched to UTF-8 encoding for: OPS/c23.xhtml
Switched to UTF-8 encoding for: OPS/c002.xhtml
Switched to UTF-8 encoding for: OPS/back02.xhtml
Switched to UTF-8 encoding for: OPS/c006.xhtml
Switched to UTF-8 encoding for: OPS/c62.xhtml
Switched to UTF-8 encoding for: OPS/c27.xhtml
Switched to UTF-8 encoding for: OPS/c102.xhtml
Switched to UTF-8 encoding for: OPS/c86.xhtml
Switched to UTF-8 encoding for: OPS/c46.xhtml
Switched to UTF-8 encoding for: OPS/c03.xhtml
Switched to UTF-8 encoding for: OPS/c44.xhtml
Switched to UTF-8 encoding for: OPS/c01.xhtml
Switched to UTF-8 encoding for: OPS/c84.xhtml
Switched to UTF-8 encoding for: OPS/c79.xhtml
Switched to UTF-8 encoding for: OPS/c100.xhtml
Switched to UTF-8 encoding for: OPS/c18.xhtml
Switched to UTF-8 encoding for: OPS/c004.xhtml
Switched to UTF-8 encoding for: OPS/c60.xhtml
Switched to UTF-8 encoding for: OPS/c25.xhtml
Switched to UTF-8 encoding for: OPS/c119.xhtml
Switched to UTF-8 encoding for: OPS/c06.xhtml
Switched to UTF-8 encoding for: OPS/c43.xhtml
Switched to UTF-8 encoding for: OPS/c83.xhtml
Switched to UTF-8 encoding for: OPS/c107.xhtml
Switched to UTF-8 encoding for: OPS/c003.xhtml
Switched to UTF-8 encoding for: OPS/c22.xhtml
Switched to UTF-8 encoding for: OPS/c67.xhtml
Switched to UTF-8 encoding for: OPS/c001.xhtml
Switched to UTF-8 encoding for: OPS/c20.xhtml
Switched to UTF-8 encoding for: OPS/c65.xhtml
Switched to UTF-8 encoding for: OPS/c98.xhtml
Switched to UTF-8 encoding for: OPS/back01.xhtml
Switched to UTF-8 encoding for: OPS/c58.xhtml
Switched to UTF-8 encoding for: OPS/c39.xhtml
Switched to UTF-8 encoding for: OPS/c105.xhtml
Switched to UTF-8 encoding for: OPS/c81.xhtml
Switched to UTF-8 encoding for: OPS/titlepage.xhtml
Switched to UTF-8 encoding for: OPS/c04.xhtml
Switched to UTF-8 encoding for: OPS/c41.xhtml
Switched to UTF-8 encoding for: OPS/c85.xhtml
Switched to UTF-8 encoding for: OPS/c78.xhtml
Switched to UTF-8 encoding for: OPS/c101.xhtml
Switched to UTF-8 encoding for: OPS/c45.xhtml
Switched to UTF-8 encoding for: OPS/c24.xhtml
Switched to UTF-8 encoding for: OPS/c61.xhtml
Switched to UTF-8 encoding for: OPS/c118.xhtml
Switched to UTF-8 encoding for: OPS/c005.xhtml
Switched to UTF-8 encoding for: OPS/c19.xhtml
Switched to UTF-8 encoding for: OPS/c26.xhtml
Switched to UTF-8 encoding for: OPS/c63.xhtml
Switched to UTF-8 encoding for: OPS/c007.xhtml
Switched to UTF-8 encoding for: OPS/c02.xhtml
Switched to UTF-8 encoding for: OPS/c47.xhtml
Switched to UTF-8 encoding for: OPS/c103.xhtml
Switched to UTF-8 encoding for: OPS/c87.xhtml
Switched to UTF-8 encoding for: OPS/c76.xhtml
Switched to UTF-8 encoding for: OPS/c33.xhtml
Switched to UTF-8 encoding for: OPS/c116.xhtml
Switched to UTF-8 encoding for: OPS/c92.xhtml
Switched to UTF-8 encoding for: OPS/c52.xhtml
Switched to UTF-8 encoding for: OPS/c17.xhtml
Switched to UTF-8 encoding for: OPS/c50.xhtml
Switched to UTF-8 encoding for: OPS/c15.xhtml
Switched to UTF-8 encoding for: OPS/c90.xhtml
Switched to UTF-8 encoding for: OPS/c114.xhtml
Switched to UTF-8 encoding for: OPS/c28.xhtml
Switched to UTF-8 encoding for: OPS/c009.xhtml
Switched to UTF-8 encoding for: OPS/c49.xhtml
Switched to UTF-8 encoding for: OPS/c010.xhtml
Switched to UTF-8 encoding for: OPS/c89.xhtml
Switched to UTF-8 encoding for: OPS/c74.xhtml
Switched to UTF-8 encoding for: OPS/c31.xhtml
Switched to UTF-8 encoding for: OPS/c08.xhtml
Switched to UTF-8 encoding for: OPS/c109.xhtml
Switched to UTF-8 encoding for: OPS/c70.xhtml
Switched to UTF-8 encoding for: OPS/c35.xhtml
Switched to UTF-8 encoding for: OPS/c54.xhtml
Switched to UTF-8 encoding for: OPS/c11.xhtml
Switched to UTF-8 encoding for: OPS/c110.xhtml
Switched to UTF-8 encoding for: OPS/c69.xhtml
Switched to UTF-8 encoding for: OPS/c94.xhtml
Switched to UTF-8 encoding for: OPS/toc.xml
Switched to UTF-8 encoding for: OPS/c96.xhtml
Switched to UTF-8 encoding for: OPS/c112.xhtml
Switched to UTF-8 encoding for: OPS/c56.xhtml
Switched to UTF-8 encoding for: OPS/c13.xhtml
Switched to UTF-8 encoding for: OPS/front02.xhtml
Switched to UTF-8 encoding for: OPS/c72.xhtml
Switched to UTF-8 encoding for: OPS/c37.xhtml
Switched to UTF-8 encoding for: OPS/c008.xhtml
Switched to UTF-8 encoding for: OPS/c91.xhtml
Switched to UTF-8 encoding for: OPS/c115.xhtml
Switched to UTF-8 encoding for: OPS/c29.xhtml
Switched to UTF-8 encoding for: OPS/c14.xhtml
Switched to UTF-8 encoding for: OPS/c51.xhtml
Switched to UTF-8 encoding for: OPS/c75.xhtml
Switched to UTF-8 encoding for: OPS/c48.xhtml
Switched to UTF-8 encoding for: OPS/c32.xhtml
Switched to UTF-8 encoding for: OPS/c77.xhtml
Switched to UTF-8 encoding for: OPS/c88.xhtml
Switched to UTF-8 encoding for: OPS/c30.xhtml
Switched to UTF-8 encoding for: OPS/c53.xhtml
Switched to UTF-8 encoding for: OPS/c117.xhtml
Switched to UTF-8 encoding for: OPS/c93.xhtml
Switched to UTF-8 encoding for: OPS/front03.xhtml
Switched to UTF-8 encoding for: OPS/c16.xhtml
Switched to UTF-8 encoding for: OPS/c12.xhtml
Switched to UTF-8 encoding for: OPS/c57.xhtml
Switched to UTF-8 encoding for: OPS/c97.xhtml
Switched to UTF-8 encoding for: OPS/c113.xhtml
Switched to UTF-8 encoding for: OPS/c36.xhtml
Switched to UTF-8 encoding for: OPS/c108.xhtml
Switched to UTF-8 encoding for: OPS/c73.xhtml
Switched to UTF-8 encoding for: OPS/c71.xhtml
Switched to UTF-8 encoding for: OPS/c09.xhtml
Switched to UTF-8 encoding for: OPS/c34.xhtml
Switched to UTF-8 encoding for: OPS/c111.xhtml
Switched to UTF-8 encoding for: OPS/c68.xhtml
Switched to UTF-8 encoding for: OPS/front01.xhtml
Switched to UTF-8 encoding for: OPS/c95.xhtml
Switched to UTF-8 encoding for: OPS/c10.xhtml
Switched to UTF-8 encoding for: OPS/c55.xhtml
Looking for CSS margins
Modified CSS margins in: OPS/ORIMldl.css
Foucault’s Pendulum - ERROR: Traceback (most recent call last):
File "calibre_plugins.modify_epub.modify", line 74, in process_book
is_modified = self._process_book(container, options)
File "calibre_plugins.modify_epub.modify", line 170, in _process_book
is_changed |= self._rewrite_css_margins(container)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
File "calibre_plugins.modify_epub.modify", line 423, in _rewrite_css_margins
dirtied = mu.rewrite_css_margins()
File "calibre_plugins.modify_epub.margins", line 186, in rewrite_css_margins
if self._match_margins(match_styles):
~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^
File "calibre_plugins.modify_epub.margins", line 69, in _match_margins
value = float(re.sub(r'[^\d.]+', '', style[1]))
ValueError: could not convert string to float: ''
ePub not changed after 0.31 seconds
|
|
|
|
|
|
#1804 |
|
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 32,018
Karma: 65700000
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
Code:
Failed to initialize plugin: '/home/john/.config/calibre/plugins/Kobo Metadata.zip' I do not have this PI installed and have not see this fail. ![]() A file name case issue? Linux is case sensitive, This may have flown on Windows. Look at line 16 of the named file Code:
File "calibre_plugins.kobo_metadata.kobo_metadata", line 16, in <module>
import cloudscraper
|
|
|
|
|
|
#1805 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,374
Karma: 154365103
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
I think cloudscraper is correct all lowercase.
Last edited by JSWolf; Today at 04:37 AM. |
|
|
|
|
|
#1806 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,374
Karma: 154365103
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
@Section8 please post your unmodified CSS. I'd like to run it through Modify ePub on Windows 11. DId you get calibre from the official site or a repository?
Last edited by JSWolf; Today at 04:39 AM. |
|
|
|
|
|
#1807 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 273
Karma: 2121470
Join Date: Oct 2011
Location: Arlington, TX
Device: Kobo Libra Color, Kindle PW4, Koreader on a cheap Android tablet
|
Thank you for looking at this. Calibre in my linux distro (gentoo) is currently pretty old (8.something I think) so I am currently using a bash script (I think I got from here years ago) to update it from Calibre's download site.
This book has 2 css files (copied below). I thought maybe the small, second one was the problem since the lines are all indented more than normally, but running the "beautify" function in the Calibre editor on it, which gets rid of that, doesn't make any difference. hmh.css: Code:
/*
---------------------------------------------------------
HMH standard CSS
Last modified: 15 September 2015
Packaged with eBookimator v1.0.10
Created by: HMH
---------------------------------------------------------
*/
/*
EXAMPLE FONT DECLARATION
@font-face {
font-family: "FONT";
font-weight:normal;
font-style:normal;
src:url(../font/FONT.otf);
}
*/
/* Reset */
body {
/*font-family: Athelas, Iowan, Georgia, Palatino, serif; */
}
h1, h2, h3, h4, h5, h6 {
page-break-after:avoid;
-webkit-hyphens:none; /* prevent hyphenation in heads */
-epub-hyphens:none;
-moz-hyphens:none;
hyphens:none;
}
p {
margin: 0;
text-indent:0em;
text-align:left;
widows:2;
orphans:2;
}
/* page margins for nook and kobo */
@page {
font-family: "GaramondThreeLTStd", Garamond, Palatino, serif;
margin:30px 20px 0 20px;
}
/* Header Styles */
h1 {
text-align: center;
font-size:1.5em;
margin:1.5em 0em 1.5em 0em;
font-weight: bold;
}
h1.fronttitle, h1.chaptertitle, h1.backtitle {
}
.paired {
margin-bottom: 0em; /*remove space between title and subtitle */
}
h1.parttitle {
font-size:1.75em;
}
h2.sectiontitle, h2.frontsectiontitle, h2.backsectiontitle {
text-align:left;
font-size: 1.25em;
margin:2em 0em 1em 0em;
font-weight: bold;
}
h2.chaptersubtitle {
text-align: center;
font-weight: normal;
font-style: italic;
font-size: 1.5em;
margin:0em 0em 1.5em 0em;
}
h2.sectionsubtitle {
font-size: 1.25em;
font-style: italic;
margin:0em 0em 1em 0em;
text-align: center;
}
h2.sectionsubtitle.teaser {
text-align: center;
font-size:1.5em;
margin:1.5em 0em 1.5em 0em;
font-weight: bold;
font-style:normal;
}
h3.sectionsubtitle {
text-align: left;
font-size: 1.25em;
font-style: italic;
margin:0em 0em 1em 0em;
}
/* General Image Styling */
img {
width:100%;
max-height:100%;
page-break-inside:avoid;
display: block;
margin-left: auto;
margin-right: auto;
}
div.both-space {
margin-top:.75em;
margin-bottom:.75em;
}
div.bottom-space {
margin-bottom:.75em;
}
div.top-space {
margin-top:.75em;
}
span.inline {
display:inline-block;
text-indent:0;
/* width:5em; adjust for your image (comment out if inline images are already sized) */
}
/* Specific Image Sizing */
div.full {
width:100%;
page-break-inside:avoid;
text-align: center;
}
div.five-sixth {
width:90%;
margin-left:5%;
page-break-inside:avoid;
}
div.half {
width:50%;
margin-left:25%;
page-break-inside:avoid;
}
div.third {
width:33%;
margin-left:33.5%;
page-break-inside:avoid;
}
div.sixth {
width:15%;
margin-left:42.5%;
page-break-inside:avoid;
}
div.quarter {
width:25%;
margin-left:37.5%;
page-break-inside:avoid;
}
div.two-third {
width:66%;
margin-left:17%;
page-break-inside:avoid;
}
div.three-quarter {
width:75%;
margin-left:12.5%;
page-break-inside:avoid;
}
/* Caption Styling */
p.caption {
text-align:center;
font-size:85%;
}
p.source {
text-align:center;
font-size:80%;
font-style:italic;
}
/* Paragraph Styles */
p.left {
text-indent: 0em;
}
p.right {
text-align:right;
}
p.center {
text-align:center;
text-indent:0em;
}
p.hang {
text-indent: -1em;
margin:0 0 0 1em;
}
p.follow {
text-indent: 1em;
}
/* Font Classes */
.sans {
font-family: Helvetica, sans-serif;
}
.mono {
font-family: "Lucida Sans Typewriter", Courier, monospace;
font-size: x-small;
}
/* Text Decoration */
span.underline {
text-decoration: underline;
}
span.smallcaps {
text-transform:uppercase;
font-size:80%;
}
.strikethrough{
text-decoration:line-through;
}
b {
font-weight:bold;
}
/* Horizontal Rule for Footnotes */
hr.halfwidth {
width: 50%;
}
hr.dotted { /*CUSTOM*/
width: 100%;
border: 1px dashed;
}
/* Text Alignment */
.centerobject {
margin: 0 auto;
}
/* Object Alignment */
.centertext {
text-align: center;
}
.fig {
margin: 1.0em 0 .5em 0;
text-align:center;
}
/* Extra Space */
.spaceabove1 {
margin-top: 1em;
}
.spacebelow1 {
margin-bottom: 1em;
}
.spaceabove2 {
margin-top: 2em;
}
.spacebelow2 {
margin-bottom: 2em;
}
.sink {
margin-top:5.7em;
}
/* Hyphenation */
.nohyphens {
-webkit-hyphens:none; /* prevent hyphenation */
-epub-hyphens:none;
-moz-hyphens:none;
hyphens:none;
}
/* Lists */
ul.plain {
list-style-type:none;
}
li p.follow {
text-indent:0;
}
/* Indent Styles */
blockquote {
margin: 0 5% 0 5%;
}
.indent2 {
margin: 0 10% 0 10%;
}
.indent3 {
margin: 0 15% 0 15%;
}
.indent4 {
margin: 0 20% 0 20%;
}
.epigraph {
text-indent: 0.0em;
margin: 0 20% 0 30%;
}
.epigraph2 {
text-indent: 0.0em;
margin: 0 20% 0 20%;
}
/* Table Styles */
table {
width: auto; /* don't force 100% width; allow centering */
border:none;
border-collapse:collapse;
}
td {
vertical-align: top;
page-break-inside: avoid;
padding: 3px 5px; /* breathing space around each cell */
}
td p {
text-indent: 0em; /* no paragraph indent, hanging or otherwise */
margin-left: 0em;
}
/* Table Style Options */
/* shaded table, table row, or table cell */
/* default is blue; #EEEEEE gray; #E8F1E8 green */
table.shaded, tr.shaded, td.shaded {
background-color: #F3F9FF;
}
/* border on table, table row, or table cell */
table.border, tr.border, td.border {
border: 1px solid black;
}
/* tables and table columns with a particular width */
table.width90, td.width90 {
width: 90%;
}
table.width75, td.width75 {
width: 75%;
}
table.width66, td.width66 {
width: 66%;
}
table.width50, td.width50 {
width: 50%;
}
table.width33, td.width33 {
width: 33%;
}
table.width25, td.width25 {
width: 25%;
}
table.width15, td.width15 {
width: 15%;
}
/* Table of Contents Styles */
/* for all TOCs */
p.toc {
margin: 0px;
padding: 1px 0px; /* space above/below each item */
-webkit-hyphens:none; /* prevent hyphenation in TOC */
-epub-hyphens:none;
-moz-hyphens:none;
hyphens:none;
}
/* part titles */
p.part {
letter-spacing: 0.1em;
font-weight: bold;
margin-top: 10px;
}
/* subitems */
p.sub {
font-style: italic;
}
/* left-aligned TOC */
/* sets margins, left-aligns title and TOC, styles hr, adds hanging indents */
div#toc {
margin-left: 5%;
margin-right: 5%;
}
div#toc h1 {
text-align: left;
}
div#toc hr {
width: 100%;
}
p.toc {
margin-left: 2em;
text-indent: -1em;
}
p.part {
margin-left: 1em;
text-indent: -1em;
}
/* centered TOC */
/* if using, comment out all left-aligned TOC CSS */
/* centers title, hr, and TOC */
/*
div#toc h1, div#toc p {
text-align: center;
text-indent: 0em;
}
div#toc hr {
width: 50%;
margin-left: 25%;
}
*/
/* Box Styles */
/* main box */
div.box {
width: 90%;
margin: 1em auto;
padding: 1em;
border: 1px solid black;
background-color: transparent; /* CUSTOM */
/* night-mode lines */
-webkit-box-shadow: 0 -1px 0 white, 0 1px 0 white;
box-shadow: 0 -1px 0 white, 0 1px 0 white;
/* border-radius: 5px; */ /* rounded edges */
}
/* floating box (right) */
div.box.floatR {
width: 50%;
float: right;
margin: 0.5em 0em 0em 1em;
}
/* floating box (left) */
div.box.floatL {
width: 50%;
float: left;
margin-top: 0.5em 1em 0em 0em;
}
/* clear floats */
.clear {
clear: both;
}
/* box titles */
h4.boxtitle {
text-align: center;
font-weight:bold;
font-size: 1.25em;
font-style:normal;
margin: 0em 0em 1em 0em;
}
h4.boxsubtitle {
text-align: center;
font-weight: normal;
font-style: italic;
font-size: 1.25em;
margin: 0em 0em 1em 0em;
}
/* Index Styles */
p.index-nav {
text-align:center;
font-size:1.1em;
line-height:1.4;
letter-spacing:2px;
margin:1.5em 0 0 0;
}
h1.IndexLetter {
text-align:left;
color:#565060; /* default is dark gray; #339966 green */
font-size:2.25em;
line-height:1.4;
margin: .4em 0em .2em 0em;
/*font-family: Athelas, Iowan, Georgia, Palatino, serif; */
/* font-family: Futura, Helvetica, sans-serif; */
/* text-shadow: 2px 2px #989898; */ /*gray shadow */
}
p.index-1 {
margin-left:1.5em;
text-indent:-1.5em;
}
p.index-2 {
margin-left:3em;
text-indent:-1.5em;
}
p.index-3 {
margin-left:5em;
text-indent:-1.5em;
}
/* Space Breaks */
div.timebreak {
}
div.graphicbreak {
text-align: center;
font-size: 3em;
/*add visibility: hidden; and remove font-size if you want it to show up as a space break */
}
/* Break Classes */
.breakboth {
page-break-before:always;
page-break-after:always;
}
.breakafter {
page-break-after:always;
}
.breakbefore {
page-break-before:always;
}
/* about the author page button */
div.buttonbox {
text-align: center;
}
div.websitebutton {
border-radius: 60px;
text-align: center;
vertical-align: middle;
font-size: 1.1em;
color: #3B3B3B;
background-color: #D3D3D3;
padding: 10px 15px;
margin: 5px;
display: inline-block;
}
a.websitebutton {
text-decoration: none;
}
.smaller { /*CUSTOM*/
font-size: smaller;
}
.smallest { /*CUSTOM*/
font-size: x-small;
}
.overline { /*CUSTOM*/
text-decoration: overline;
}
/*CUSTOM SOCIAL MEDIA CSS*/
div.subcontainer{
display: inline-block;
width: 8em;
margin: 0.25em 0.25em 0em 0em;
}
Code:
body {
margin: 3%;
}
.orm_ldl {
margin: 1em auto;
padding: 0.5em 0 0.5em 0;
text-indent: 0;
text-align: center;
page-break-inside: avoid;
max-width: 100%;
max-height: 100%;
}
|
|
|
|
|
|
#1808 |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,374
Karma: 154365103
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Post a screen grab of your Modify ePub settings. With my settings and the @page/margins setting, it works no problem here. I'd like to try your settings.
|
|
|
|
|
|
#1809 |
|
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 273
Karma: 2121470
Join Date: Oct 2011
Location: Arlington, TX
Device: Kobo Libra Color, Kindle PW4, Koreader on a cheap Android tablet
|
I've attached a screenshot of my modify epub settings, and a scrambled copy of the epub where this happens, and which reproduces the problem for me.
|
|
|
|
|
|
#1810 | |
|
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 85,374
Karma: 154365103
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
Quote:
What book is this? Can you try scambling it and see if you get the same error? If you do, you can post the scrambled version so we can try it. |
|
|
|
|
![]() |
| Tags |
| modify epub |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [GUI Plugin] Quality Check | kiwidude | Plugins | 1302 | Yesterday 07:24 AM |
| [GUI Plugin] Manage Series | kiwidude | Plugins | 175 | 10-16-2026 10:38 PM |
| [GUI Plugin] Open With | kiwidude | Plugins | 406 | 10-10-2026 12:59 AM |
| 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 |