Package Details: calibre-web 0.6.21-2

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.000460
First Submitted: 2021-11-29 04:13 (UTC)
Last Updated: 2024-02-13 17:45 (UTC)

Latest Comments

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

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.

zynex commented on 2023-02-23 12:02 (UTC) (edited on 2023-02-23 12:05 (UTC) by zynex)

The fix to make it work again was quite simple, change the lines for each file from the commit in https://github.com/janeczku/calibre-web/commit/94a6931d48d347ae6c07e2b5f0301e8cf97cf53d and it will work again until it's officially released.

Gnarflord commented on 2023-02-22 12:04 (UTC) (edited on 2023-02-22 12:04 (UTC) by Gnarflord)

Currently fails with

Traceback (most recent call last):
  File "/usr/bin/cps", line 5, in <module>
    from calibreweb import main
  File "/usr/lib/python3.10/site-packages/calibreweb/__init__.py", line 29, in <module>
    from cps import create_app
  File "/usr/lib/python3.10/site-packages/calibreweb/cps/__init__.py", line 162, in <module>
    @babel.localeselector
AttributeError: 'Babel' object has no attribute 'localeselector'

Apparently cps release 0.6.19 is incompatible with the latest python-flask. This has been fxied in nightly, but there hasn't been any release with the fix so far :(

See: https://github.com/janeczku/calibre-web/issues/2674