View Single Post
Old 08-16-2022, 07:06 AM   #1674
listyraesder
Junior Member
listyraesder began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Aug 2022
Device: Kobo Clara HD
TypeError removing xpgt

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.
listyraesder is offline   Reply With Quote