GithubHelp home page GithubHelp logo

Comments (3)

OzzieIsaacs avatar OzzieIsaacs commented on May 4, 2024

Please try to update to the newest nightly version. It should work.
The reason behind it: Calibre-Web trys to detect a "fixed-layout", needed for e.g. comic files in epub format. Your error was an unexpected error in this detection. Find the root cause of it and to deal better with it, it would be of interest for me to have the problematic book (or even better the relevant part of it). After update you should get a message like "Could not parse epub metadata of book xxx". If you could take this book (It's the id calibre-web showing in the link if you open a book), then open the (k)epub file of it with a zipper and send me the container.xml located in the META-INF folder (preferably via email found on my profile page, so nobody else has contact with your private book contents).

from calibre-web.

sre3 avatar sre3 commented on May 4, 2024

Thanks for the quick reply! I'll switch to nightly tomorrow and grab the xml.

from calibre-web.

sre3 avatar sre3 commented on May 4, 2024

Well... Ark will not let me open the epub, saying: Failed to open archive: Zip archive inconsistent

The Calibre epub editor also fails to open the book, saying

  File "calibre/ebooks/oeb/polish/container.py", line 1178, in __init__
  File "calibre/utils/zipfile.py", line 1113, in extractall
  File "calibre/utils/zipfile.py", line 1097, in extract
  File "calibre/utils/zipfile.py", line 1166, in _extract_member
  File "calibre/utils/zipfile.py", line 1035, in open
OSError: [Errno 22] Invalid argument

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "calibre/gui2/tweak_book/job.py", line 33, in run
  File "calibre/gui2/tweak_book/boss.py", line 82, in get_container
  File "calibre/ebooks/oeb/polish/container.py", line 1594, in get_container
  File "calibre/ebooks/oeb/polish/container.py", line 1184, in __init__
  File "calibre/utils/localunzip.py", line 252, in extractall
  File "calibre/utils/localunzip.py", line 234, in _extractall
  File "calibre/utils/localunzip.py", line 177, in copy_compressed_file
ValueError: Invalid ZIP file, local header is damaged

I will close the issue as this seems to be an issue with the file, and not calibre-web. Sync is also now working properly as the error is handled gracefully. Thanks again for the quick fix.

from calibre-web.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.