Sounds like some sort of umask issue. Can you reproduce this when built in a chroot?
Search Criteria
Package Details: paperless-ngx-venv 2.18.4-1
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.075782 |
First Submitted: | 2024-11-02 15:19 (UTC) |
Last Updated: | 2025-09-08 18:12 (UTC) |
Dependencies (24)
- file (file-gitAUR)
- ghostscript
- gnupg (gnupg-gitAUR, gnupg-largekeysAUR)
- imagemagick (imagemagick-gitAUR, imagemagick-full-gitAUR, imagemagick-fullAUR)
- nltk-data
- optipng
- poppler (poppler-gitAUR)
- python (python37AUR)
- 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, mysql56AUR, mysql57AUR, mysql80AUR, mysql81AUR, mysql84AUR, mysqlAUR, mariadb-lts, percona-server) (make)
- postgresql (postgresql-12AUR, postgresql15-docsAUR, postgresql15AUR, postgresql-gitAUR, postgresql16-docsAUR, postgresql16AUR, postgresql13AUR, postgresql18-docsAUR, postgresql18AUR) (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)
shtrophic commented on 2025-09-20 11:49 (UTC)
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.
AlexBocken commented on 2025-09-19 08:23 (UTC) (edited on 2025-09-19 08:28 (UTC) by AlexBocken)
Getting the following error on trying to migrate the database on upgrade:
sudo -u paperless paperless-manage migrate
Traceback (most recent call last):
File "/usr/share/paperless/src/manage.py", line 10, in <module>
execute_from_command_line(sys.argv)
~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^
File "/usr/lib/python3.13/site-packages/django/core/management/__init__.py", line 442, in execute_from_command_line
utility.execute()
~~~~~~~~~~~~~~~^^
File "/usr/lib/python3.13/site-packages/django/core/management/__init__.py", line 416, in execute
django.setup()
~~~~~~~~~~~~^^
File "/usr/lib/python3.13/site-packages/django/__init__.py", line 24, in setup
apps.populate(settings.INSTALLED_APPS)
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.13/site-packages/django/apps/registry.py", line 91, in populate
app_config = AppConfig.create(entry)
File "/usr/lib/python3.13/site-packages/django/apps/config.py", line 193, in create
import_module(entry)
~~~~~~~~~~~~~^^^^^^^
File "/usr/lib/python3.13/importlib/__init__.py", line 88, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<frozen importlib._bootstrap>", line 1387, in _gcd_import
File "<frozen importlib._bootstrap>", line 1360, in _find_and_load
File "<frozen importlib._bootstrap>", line 1324, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'drf_spectacular'
Weird thing is that I can confirm it to be installed in the venv, has the venv activation changed somehow?
npreining commented on 2025-05-25 09:34 (UTC)
❯ pacman -Q | grep paperless
paperless-ngx-venv 2.16.2-1
❯ pacman -Qo $(sudo -u paperless which paperless-manage)
[sudo] password for norbert:
/usr/bin/paperless-manage is owned by paperless-ngx-venv 2.16.2-1
AlD commented on 2025-05-25 09:12 (UTC)
Output of
$ pacman -Q | grep paperless
$ pacman -Qo $(sudo -u paperless which paperless-manage)
could be interesting.
npreining commented on 2025-05-25 09:07 (UTC)
Thanks for your comment - that worked:
❯ bash -c "source /usr/lib/paperless/bin/activate && python -c 'import django'" && echo success
success
Do I need to activate the env for the sudo run, too?
shtrophic commented on 2025-05-25 08:18 (UTC) (edited on 2025-05-25 08:18 (UTC) by shtrophic)
@npreining: cannot replicate. what's the output of:
bash -c "source /usr/lib/paperless/bin/activate && python -c 'import django'" && echo success
npreining commented on 2025-05-24 21:39 (UTC)
I would like to try this out, but the guidance given during installation:
To complete the update process of paperless, you should run new migrations with
sudo -u paperless paperless-manage migrate
does simply not work:
sudo -u paperless paperless-manage migrate
Traceback (most recent call last):
File "/usr/share/paperless/src/manage.py", line 8, in <module>
from django.core.management import execute_from_command_line
ModuleNotFoundError: No module named 'django'
What is missing here?
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 of redis
that is available on your system as the Requires=
dependency in *.service
. This way, anyone can use their favorite fork of it. Keep in mind that upstream does not explicitly say that forks of redis
work as well, and this further makes the built paperless-ngx-venv
package non-portable. Happy experimenting :)
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 ofredis
that 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 ofredis
work as well, and this further makes the builtpaperless-ngx-venv
package non-portable. Happy experimenting :)