Skip to content

Instantly share code, notes, and snippets.

@hub2git
Created September 29, 2020 18:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hub2git/427ec2a4a5f29e8fd6b5e4bf3ac0fb73 to your computer and use it in GitHub Desktop.
Save hub2git/427ec2a4a5f29e8fd6b5e4bf3ac0fb73 to your computer and use it in GitHub Desktop.
error message on the one problem epub
calibre, version 5.0.1
ERROR: Loading book failed: Failed to open the book at /home/me/text/calibrelibrary/Unknown/somebook.epub. Click "Show details" for more info.
Failed to convert book: /home/me/text/calibrelibrary/Unknown/somebook.epub with error:
DeDRM v7.0.0: Trying to decrypt somebook.epub
DeDRM v7.0.0: Verifying zip archive integrity
DeDRM v7.0.0: Error 'can only concatenate str (not "bytes") to str' when checking zip archive
Failed to initialize plugin: '/home/me/.config/calibre/plugins/Goodreads More Tags.zip'
InputFormatPlugin: EPUB Input running
on /home/me/text/calibrelibrary/Unknown/somebook.epub
WARNING: Header ('OEBPS/images/Reyn_9780307761927_epub_039_r1.jpg') and directory ('OEBPS/images/Reyn_9780307761927_epub\x0bi╟mh╛2\x00√\x7f\r') filenames do not match inside ZipFile
Using directory filename 'OEBPS/images/Reyn_9780307761927_epub\x0bi╟mh╛2\x00√\x7f\r'
WARNING: Header ('Reyn_9780307761927_epub_opf_r1.opf') and directory ('Reyn_9780307761927_epub_opwZ╟mî¡2\x00') filenames do not match inside ZipFile
Using directory filename 'Reyn_9780307761927_epub_opwZ╟mî¡2\x00'
Failed to run pipe worker with command: from calibre.srv.render_book import viewer_main; viewer_main()
Traceback (most recent call last):
File "site-packages/calibre/customize/ui.py", line 428, in get_file_type_metadata
File "site-packages/calibre/customize/builtins.py", line 194, in get_metadata
File "site-packages/calibre/ebooks/metadata/epub.py", line 238, in get_quick_metadata
File "site-packages/calibre/ebooks/metadata/epub.py", line 218, in get_metadata
File "site-packages/calibre/ebooks/metadata/epub.py", line 156, in read_bytes
File "site-packages/calibre/utils/zipfile.py", line 1007, in read
File "site-packages/calibre/utils/zipfile.py", line 1035, in open
File "site-packages/calibre/utils/zipfile.py", line 996, in getinfo
KeyError: "There is no item named 'Reyn_9780307761927_epub_opf_r1.opf' in the archive"
Running file type plugin DeDRM failed with traceback:
Traceback (most recent call last):
File "calibre_plugins.dedrm.zipfix", line 140, in fix
File "calibre_plugins.dedrm.zipfilerugged", line 826, in read
File "calibre_plugins.dedrm.zipfilerugged", line 864, in open
calibre_plugins.dedrm.zipfilerugged.BadZipfile: File name in directory "b'Reyn_9780307761927_epub_opwZ\xc7m\x8c\xad2\x00' " and header "b'Reyn_9780307761927_epub_opf_r1.opf'" differ.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "calibre_plugins.dedrm.init", line 204, in ePubDecrypt
File "calibre_plugins.dedrm.zipfix", line 143, in fix
File "calibre_plugins.dedrm.zipfix", line 105, in getfiledata
File "calibre_plugins.dedrm.zipfix", line 78, in uncompress
TypeError: can only concatenate str (not "bytes") to str
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "site-packages/calibre/customize/ui.py", line 172, in _run_filetype_plugins
File "calibre_plugins.dedrm.init", line 637, in run
File "calibre_plugins.dedrm.init", line 207, in ePubDecrypt
Exception: can only concatenate str (not "bytes") to str
Traceback (most recent call last):
File "runpy.py", line 194, in _run_module_as_main
File "runpy.py", line 87, in _run_code
File "site.py", line 48, in
File "site.py", line 44, in main
File "site-packages/calibre/utils/ipc/worker.py", line 195, in main
File "", line 1, in
File "site-packages/calibre/srv/render_book.py", line 871, in viewer_main
File "site-packages/calibre/srv/render_book.py", line 862, in render_for_viewer
File "site-packages/calibre/srv/render_book.py", line 839, in render
File "site-packages/calibre/ebooks/oeb/iterator/book.py", line 63, in extract_book
File "site-packages/calibre/customize/conversion.py", line 245, in call
File "site-packages/calibre/ebooks/conversion/plugins/epub_input.py", line 281, in convert
ValueError: /home/me/text/calibrelibrary/Unknown/somebook.epub is not a valid EPUB file (could not find opf)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment