Package Details: calibre-web 0.6.24-4

Git Clone URL: https://aur.archlinux.org/calibre-web.git (read-only, click to copy)
Package Base: calibre-web
Description: Web app for browsing, reading and downloading eBooks stored in a Calibre database
Upstream URL: https://github.com/janeczku/calibre-web
Licenses: GPL3
Provides: calibre-web
Submitter: fryfrog
Maintainer: fryfrog (plenaerts)
Last Packager: fryfrog
Votes: 4
Popularity: 0.93
First Submitted: 2021-11-29 04:13 (UTC)
Last Updated: 2025-02-05 20:12 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 Next › Last »

zynex commented on 2023-05-05 22:28 (UTC) (edited on 2023-05-05 22:29 (UTC) by zynex)

@fryfrog That fixed it!

For others that run into same issue, create a text file with all dependencies and install it from that list. That will force a reinstallation of all packages. I my case; pikaur -S - < list.

fryfrog commented on 2023-05-05 17:03 (UTC)

I would try clean rebuilding every aur python dep of this package.

zynex commented on 2023-05-05 16:48 (UTC) (edited on 2023-05-05 16:57 (UTC) by zynex)

Just updated my system, where Python was updated to v3.11.3. This seems to break something, because i get this error when trying to start the service;

maj 05 18:42:17 kvm-web systemd[1]: Started Calibre-web. maj 05 18:42:18 kvm-web cps.py[8096]: *** "flask-limiter" is needed for calibre-web to run. Please install it using pip: "pip install fla> maj 05 18:42:18 kvm-web systemd[1]: calibre-web.service: Main process exited, code=exited, status=8/n/a maj 05 18:42:18 kvm-web systemd[1]: calibre-web.service: Failed with result 'exit-code'.

I have flask-limiter installed, but it seems that there's some error related to latest python I guess?

>>> import flash_limiter Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'flash_limiter'

Btw, how the heck do I get the green box with text? Can't find it in the markdown syntax guideline.. :)

plenaerts commented on 2023-04-11 06:15 (UTC) (edited on 2023-04-11 06:16 (UTC) by plenaerts)

So, apparently I was not entirely accurate. My description below may not have solved the problem for everyone. Or anyone. I had updated python-limits to 3.3.0 and then ran into the issue below with python-importlib_resources. The issue came from python-limits, not python-flask-limiter.

The python-limits package maintainer has updated python-limits and added the dependency on python-importlib_resources. Performing an AUR upgrade of the python dependencies should fix the issue we have with calibre-web for everyone.

plenaerts commented on 2023-04-10 06:01 (UTC) (edited on 2023-04-10 06:02 (UTC) by plenaerts)

The calibre-web logs are pretty scarce.

I've grepped the calibre-web src for flask-limiter, turns out it tries to import flask-limiter in https://github.com/janeczku/calibre-web/blob/13c0d30a8fb734c544b8de77b36527118ada880d/cps/__init__.py#L45

Trying to import flask-limiter in a python interpreter shows the underlying error:

 % python
Python 3.10.10 (main, Mar 13 2023, 21:04:51) [GCC 12.1.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from flask_limiter import Limiter
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3.10/site-packages/flask_limiter/__init__.py", line 4, in <module>
    from .errors import RateLimitExceeded
  File "/usr/lib/python3.10/site-packages/flask_limiter/errors.py", line 7, in <module>
    from .wrappers import Limit
  File "/usr/lib/python3.10/site-packages/flask_limiter/wrappers.py", line 10, in <module>
    from limits import RateLimitItem, parse_many
  File "/usr/lib/python3.10/site-packages/limits/__init__.py", line 5, in <module>
    from . import _version, aio, storage, strategies
  File "/usr/lib/python3.10/site-packages/limits/aio/__init__.py", line 1, in <module>
    from . import storage, strategies
  File "/usr/lib/python3.10/site-packages/limits/aio/storage/__init__.py", line 6, in <module>
    from .base import MovingWindowSupport, Storage
  File "/usr/lib/python3.10/site-packages/limits/aio/storage/base.py", line 5, in <module>
    from limits.storage.registry import StorageRegistry
  File "/usr/lib/python3.10/site-packages/limits/storage/__init__.py", line 12, in <module>
    from .base import MovingWindowSupport, Storage
  File "/usr/lib/python3.10/site-packages/limits/storage/base.py", line 6, in <module>
    from limits.util import LazyDependency
  File "/usr/lib/python3.10/site-packages/limits/util.py", line 11, in <module>
    import importlib_resources
ModuleNotFoundError: No module named 'importlib_resources'
>>> 

python-flask-limiter is missing a dependency: python-importlib_resources

you can manually install it using pacman -S --asdeps python-importlib_resources and it should work around this problem.

Don't auto-remove the package. Until python-flask-limiter adds it as a dependency it will pop up as an unneeded package.

I've asked the python-flask-limiter maintainer to add this package as a dependency.

fryfrog commented on 2023-04-02 16:54 (UTC)

For some reason, my installation isn't seeing flask-limiter.

fryfrog@apollo /usr/lib/calibre-web 🔒 via 🐍 v3.10.10 ❯ sudo -u calibre-web /usr/lib/calibre-web/cps.py
*** "flask-limiter" is needed for calibre-web to run. Please install it using pip: "pip install flask-limiter" ***

It is installed, but some of the paths are Flask_Limiter and some are flask_limiter, but I'm not familiar enough w/ python packages on Arch to know if that is an issue.

fryfrog@apollo /usr/lib/calibre-web 🔒 via 🐍 v3.10.10 ❯ paru -Ql python-flask-limiter
...
python-flask-limiter /usr/lib/python3.10/site-packages/Flask_Limiter-3.3.0.dist-info/top_level.txt
...
python-flask-limiter /usr/lib/python3.10/site-packages/flask_limiter/commands.py
...

Just the top of basic install details.

fryfrog@apollo /usr/lib/calibre-web 🔒 via 🐍 v3.10.10 ❯ paru -Qi python-flask-limiter Name : python-flask-limiter Version : 3.3.0-1 ```

DrosteEffect commented on 2023-04-02 06:19 (UTC) (edited on 2023-04-02 06:19 (UTC) by DrosteEffect)

python-apscheduler should also be added as a dependency. Calibre-web fails to start without it.

CultofRobots commented on 2023-03-27 20:57 (UTC)

per calibre-web's github release page, flask-limiter has to be installed. It's available in aur. https://aur.archlinux.org/packages/python-flask-limiter

plenaerts commented on 2023-03-25 17:33 (UTC)

@fryfrog, sure. As you see I'm not the quickest to respond either, but I don't mind to help out if there's an issue.

Thanks for your work!