Problem Description
If i try to read a e-book in webbrowser from FB Calibre Libraries i get an error
Steps to Reproduce
Login to FreedomBox
Go to Calibre application page
Click on your Library
Select uploaded e-book
Click on read this book
Expected Results
open the e-book
Actual results
I get an error with the following message:
Traceback (most recent call last):
File “/usr/lib/calibre/calibre/utils/ipc/simple_worker.py”, line 289, in main
res = {‘result’:func(*args, **kwargs)}
File “/usr/lib/calibre/calibre/srv/render_book.py”, line 524, in render
Container(pathtoebook, output_dir, book_hash=book_hash)
File “/usr/lib/calibre/calibre/srv/render_book.py”, line 178, in init
ContainerBase.init(self, tdir, opfpath, log)
File “/usr/lib/calibre/calibre/ebooks/oeb/polish/container.py”, line 288, in init
raise InvalidBook(‘Could not locate opf file: %r’%opfpath)
InvalidBook: Could not locate opf file: u’/var/lib/private/calibre-server-freedombox/.cache/calibre/srvb/s/HxixE6/metadata.opf’
When I tested the same in a Debian testing container, I still found that the metadata.opf file is not generated. However, this doesn’t break the calibre web reader (version 5.2.0)
Might be worth testing on the buster-backports version too.
Same here.
InvalidBook: Could not locate opf file: u’/var/lib/private/calibre-server-freedombox/.cache/calibre/srvb/s/LrWT0S/content.opf’
I wanted to look up the path via ssh, but /var/lib/private doesn’t exist, and for /var/lib/calibre-server-freedombox permission is denied. Whatever that means, just found it remarkable
The latest release of calibre is 5.5.0. What’s new.
Please do not use your distribution provided calibre package, as those are often buggy/outdated. Instead use the Binary install described below.
Debian10’s package is still on 3.39.1 and - as you mentioned before - broken on several features. Which is maybe understandable in regard to another statement on the same page:
WARNING: calibre is a highly complex piece of software with lots of very finicky dependencies.
This issue seems to have been solved by the version of Calibre (5.12.0) that came with the upgrade from buster to bullseye. I’m now able to use the web-based e-reader on epubs that failed before.