View Single Post
Old 08-16-2022, 08:54 AM   #1675
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 80,073
Karma: 147983159
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by listyraesder View Post
Code:
calibre, version 6.3.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, 7, 3)
Logfile for book ID 7598 (Stephen / Carl Watkins)
Job details 7598
  Modifying:  /tmp/calibre_6.3.0_tmp_izs4c261/jjbi1ux2_modify_epub/7598.epub
	  Parsing xml file: OPS/package.opf
	  Parsing xml file: OPS/toc.ncx
	Looking for broken links in the NCX
	ncx name:  OPS/toc.ncx
	Looping over ncx entries
	Looking for Adobe xpgt files and links to remove
Stephen - ERROR: Traceback (most recent call last):
  File "calibre_plugins.modify_epub.modify", line 78, in process_book
    is_modified = self._process_book(container, options)
  File "calibre_plugins.modify_epub.modify", line 140, in _process_book
    is_changed |= self._remove_xpgt_files(container)
  File "calibre_plugins.modify_epub.modify", line 392, in _remove_xpgt_files
    for match in RE_CSS_IMPORT1.finditer(data):
TypeError: cannot use a string pattern on a bytes-like object

ePub not changed after 0.32 seconds
So this is occurring on a small handful of books.
  • The plugin runs fine with Remove xpgt files unchecked.
  • The files are all EPUB 3.
  • The files don't have xpgt files inside them.
What other options do you have checked? I do have Remove Adobe .xpgt files and links checked and I do not have any error with Calibre 6.3.0.

Last edited by JSWolf; 08-16-2022 at 08:57 AM.
JSWolf is offline   Reply With Quote