Package Details: calibre-web 0.6.24-3

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: 2
Popularity: 0.000005
First Submitted: 2021-11-29 04:13 (UTC)
Last Updated: 2024-11-20 17:56 (UTC)

Latest Comments

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

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!

icebarf commented on 2023-03-09 03:59 (UTC)

Thanks for maintaining this package!

fryfrog commented on 2023-03-07 00:47 (UTC) (edited on 2023-03-07 00:47 (UTC) by fryfrog)

@plenaerts, thanks a ton for doing this and I'm sorry it took so long to apply the patch! Would you like to co-maintain this package as punishment for being good at fixing it? :)

plenaerts commented on 2023-03-05 09:19 (UTC)

I published an update to this AUR package to https://codeberg.org/plenae/calibre-web/commit/92a9c7e9668011e181ce59673e9deb0a70f475cb which applies the necessary patch to the src.

Should be easy for the pkg maintainer to merge here so the AUR package works again, or for any user to use for a manual makepkg.