Confirmed on needing granian updated. Thanks @mroethke!
Search Criteria
Package Details: paperless-ngx-venv 2.20.4-2
Package Actions
| Git Clone URL: | https://aur.archlinux.org/paperless-ngx-venv.git (read-only, click to copy) |
|---|---|
| Package Base: | paperless-ngx-venv |
| Description: | paperless-ngx: scan, index and archive all your physical documents |
| Upstream URL: | https://docs.paperless-ngx.com/ |
| Keywords: | documents paperless |
| Licenses: | GPL-3.0-or-later |
| Conflicts: | paperless, paperless-ng, paperless-ngx |
| Provides: | paperless, paperless-ngx-venv |
| Replaces: | paperless-ngx |
| Submitter: | AlphaJack |
| Maintainer: | AlphaJack (atomicfs, shtrophic) |
| Last Packager: | shtrophic |
| Votes: | 29 |
| Popularity: | 0.010301 |
| First Submitted: | 2024-11-02 15:19 (UTC) |
| Last Updated: | 2026-01-16 22:49 (UTC) |
Dependencies (24)
- file (file-gitAUR)
- ghostscript (ghostscript-gitAUR)
- gnupg (gnupg-gitAUR, gnupg-largekeysAUR)
- imagemagick (imagemagick-full-gitAUR, imagemagick-gitAUR, imagemagick-fullAUR)
- nltk-data
- optipng
- poppler (poppler-gitAUR)
- python
- redisAUR (redis-testingAUR, redis-gitAUR, keydbAUR, redis-binAUR, redictAUR, valkey)
- sqlite (sqlite-fossilAUR)
- tesseract-data-eng (tesseract-data-eng-gitAUR, tesseract-data-best-engAUR)
- ttf-liberation
- unpaper (unpaper-gitAUR)
- findutils (findutils-gitAUR, findutils-selinuxAUR) (make)
- mariadb (mysql55AUR, mysql81AUR, mysql80AUR, mysql84AUR, mysqlAUR, mariadb-lts, percona-server) (make)
- postgresql (postgresql-12AUR, postgresql-gitAUR, postgresql13AUR, postgresql18-docsAUR, postgresql18AUR, postgresql15-docsAUR, postgresql15AUR, postgresql16-docsAUR, postgresql16AUR, postgresql17-docsAUR, postgresql17AUR) (make)
- postgresql-libs (postgresql-libs-12AUR, postgresql-libs-gitAUR, postgresql13-libsAUR) (make)
- python-virtualenv-tools3AUR (python-virtualenv-tools3-gitAUR) (make)
- uv (make)
- gotenbergAUR (optional) – convert files to pdf
- Show 4 more dependencies...
Required by (0)
Sources (10)
CountMurphy commented on 2026-01-16 22:01 (UTC)
mroethke commented on 2026-01-11 17:32 (UTC)
I had to update granian for paperless-webserver to work with python 3.14
diff --git a/PKGBUILD b/PKGBUILD
index c2db5c8..3fb0477 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -71,6 +71,7 @@ prepare(){
uv venv --clear --no-managed-python -q "$srcdir/venv"
source "$srcdir/venv/bin/activate"
uv pip install -r "$srcdir/$_pkgname/requirements.txt"
+ uv pip install granian==2.6.1
deactivate
# roughly sorted by assumed compatibility
cotsuka commented on 2026-01-10 17:25 (UTC) (edited on 2026-01-10 17:54 (UTC) by cotsuka)
Getting an import error when attempting to rebuild for the latest version of Python:
Traceback (most recent call last):
File "/usr/lib/python3.14/importlib/metadata/__init__.py", line 407, in from_name
return next(iter(cls.discover(name=name)))
StopIteration
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/bin/virtualenv-tools", line 33, in <module>
sys.exit(load_entry_point('virtualenv_tools3==3.1.1', 'console_scripts', 'virtualenv-tools')())
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/bin/virtualenv-tools", line 22, in importlib_load_entry_point
for entry_point in distribution(dist_name).entry_points
~~~~~~~~~~~~^^^^^^^^^^^
File "/usr/lib/python3.14/importlib/metadata/__init__.py", line 960, in distribution
return Distribution.from_name(distribution_name)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.14/importlib/metadata/__init__.py", line 409, in from_name
raise PackageNotFoundError(name)
importlib.metadata.PackageNotFoundError: No package metadata was found for virtualenv_tools3
EDIT: I needed to rebuild more of the underlying dependencies. Disregard!
Yamakaky commented on 2025-12-23 14:02 (UTC)
sudo -u paperless paperless-manage migrate fails with a Permission denied: '../paperless.conf' because I was in my home directory. Running cd / before fixes it. Maybe add it to the /usr/bin/paperless-manage wrapper?
shtrophic commented on 2025-10-17 05:14 (UTC)
Yes :)
npreining commented on 2025-10-16 20:26 (UTC)
@shtrophic thanks for accepting the patch.
Concerning Python packages, I guess you mean --system-site-packages --- yes, I didn't incldue that since I expected problems with versions, but I didn't know that there was another package with exactly that problems.
Thanks for your work on paperless, greatly appreciated!
shtrophic commented on 2025-10-16 19:06 (UTC) (edited on 2025-10-17 05:13 (UTC) by shtrophic)
Thanks for investigating. I've added your patch. About --system-site-packages: maybe you don't know, but before this PKGBUILD another one paperless-ngx existed that tried to use arch python packages as much as possible - causing many issues since upstream totally lags behind in many packages. The -venv version superseded it.
npreining commented on 2025-10-15 21:44 (UTC)
I found the reason for the problems with the builds. You use
uv venv -q "$srcdir/venv"
This is problematic because if the user running yay has already installed a python distribution using uv, with uv python, then uv will use this python. But later on it is supposed to run as user paperless which does not have the uv managed python installed.
I suggest calling instead
uv venv --clear --no-managed-python ....
to ensure that the system provided python is used, otherwise the one in .local/share/uv/python/ is used.
Adding this --no-managed-python ensures that the system python is used for creating the venv. The --clear ensures that a new .venv is created.
You could also depend on some Arch provided python packages, and include --system-site-packages, but this might be dangerous if some package is later removed from the user.
shtrophic commented on 2025-09-20 11:49 (UTC)
Sounds like some sort of umask issue. Can you reproduce this when built in a chroot?
AlexBocken commented on 2025-09-20 11:32 (UTC)
I can confirm that the current build process messes up the venv. Incorrect permissions prohibit the usage of the venv python in the installed location.
I could fix my error by manually rebuilding the venv in the /usr/lib/paperless location and using the paperless user.
Pinned Comments
shtrophic commented on 2025-04-14 20:22 (UTC) (edited on 2025-04-14 20:32 (UTC) by shtrophic)
For people not using
redis: there is now an "automated patching mechanism" that will instead use the next best fork ofredisthat is available on your system as theRequires=dependency in*.service. This way, anyone can use their favorite fork of it. Keep in mind that upstream does not explicitly say that forks ofrediswork as well, and this further makes the builtpaperless-ngx-venvpackage non-portable. Happy experimenting :)