wustho / epy

CLI Ebook (epub2, epub3, fb2, mobi) Reader
GNU General Public License v3.0
962 stars 52 forks source link

Hourglass instead of opening epub #20

Closed fabricalado closed 3 years ago

fabricalado commented 3 years ago

I had epy installed previously and didn't have this problem, but since I powerwashed my Chromebook and re-installed epy, all I get when trying to open epubs is this:

image

and then, when I crash the program with ctrl+c, I get this error message: image so, apparently my error is this: Keyerror: 'there is no item named 'OEBPS/../titlepage.xhtml' in the archive'

Any ideas?

P.S.: Thanks and congrats on the program! It's literally a sight for my sore eyes.

wustho commented 3 years ago

Hey there, thanks man. Are you opening mobi or epub? Does this happen to one particular ebook or others as well?

What version did you use? check with epy -v

fabricalado commented 3 years ago

wow, that was quick!

I just checked and it seems to have happened only with this particular epub. Guess I'll try to re-download it and see if that fixes it. The other message I got on a different epub was this: ERROR: Badly-structured ebook. 'Epub' object has no attribute 'toc'

My version is v2021.2.3

wustho commented 3 years ago

Ah, yes, indeed some epub isn't really compiled as it should be, best solution is to redownload same book from other sources...

As for: ERROR: Badly-structured ebook. 'Epub' object has no attribute 'toc'. I already have some ideas to fix it, just haven't had the time to implement it... Hope you can wait a little...

fabricalado commented 3 years ago

My bad, it didn't occur to me to try with another epub before posting here.

Anyway, I'm glad it's solved, and thanks for all the effort you're putting into this! No hurries!

wustho commented 3 years ago

https://github.com/wustho/epy/commit/6d89f3b440e46fd016ffb1973ce702d9a006b632