Package Details: paperless-ngx-venv 2.17.1-1

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.31
First Submitted: 2024-11-02 15:19 (UTC)
Last Updated: 2025-06-19 22:32 (UTC)

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 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 :)

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 8 9 10 11 .. 14 Next › Last »

AlexBocken commented on 2024-04-25 07:07 (UTC)

@atomicfs Thanks for the info, yes I've already done so for now. A friend of mine has the same issue so I doubt it's something about the peculiarities of my setup.Let me know if I can help you in triage in any way.

atomicfs commented on 2024-04-25 06:35 (UTC)

@AlexBocken pacman cannot pin versions, it is pacman design decision. So that is not going to work.

However you can prevent package from being upgraded by ignoring it with IgnorePkg=python-pillow in /etc/pacman.conf.

From upstream repository it seems like on master branch they are already using pillow 10.3.0 which was merged 3 weeks ago. Paperless-ngx 2.7.2 was releases 2 weeks ago. So I guess it should work. I will try to reproduce the issue.

AlexBocken commented on 2024-04-24 19:16 (UTC)

Consumer does not work with latest python-pillow 10.3.0. 10.2.0 works fine. Please either investigate for patch or pin version for now to <=10.2.0.

Here's my journalctl -xeu paperless-task-queue.service when it fails consumption:

Apr 24 21:08:02 seenas celery[3457103]: [2024-04-24 21:08:02,424] [INFO] [paperless.consumer] Consuming Raiffeisen_Visa_Debitkarte.pdf
Apr 24 21:08:02 seenas celery[3457103]: [2024-04-24 21:08:02,449] [INFO] [paperless.parsing.tesseract] pdftotext exited 0
Apr 24 21:08:02 seenas celery[3457103]: [2024-04-24 21:08:02,737] [ERROR] [paperless.consumer] Unexpected error while consuming document Raiffeisen_Visa_Debitkarte.pdf: cannot import name 'Coords' from 'PIL._typing' (/usr/lib/python3.11/site-packages/PIL/_typing.py)
Apr 24 21:08:02 seenas celery[3457103]: Traceback (most recent call last):
Apr 24 21:08:02 seenas celery[3457103]:   File "/usr/lib/python3.11/site-packages/asgiref/sync.py", line 349, in main_wrap
Apr 24 21:08:02 seenas celery[3457103]:     raise exc_info[1]
Apr 24 21:08:02 seenas celery[3457103]:   File "/usr/share/paperless/src/documents/consumer.py", line 612, in try_consume_file
Apr 24 21:08:02 seenas celery[3457103]:     document_parser.parse(self.working_copy, mime_type, self.filename)
Apr 24 21:08:02 seenas celery[3457103]:   File "/usr/share/paperless/src/paperless_tesseract/parsers.py", line 351, in parse
Apr 24 21:08:02 seenas celery[3457103]:     import ocrmypdf
Apr 24 21:08:02 seenas celery[3457103]:   File "/usr/lib/python3.11/site-packages/ocrmypdf/__init__.py", line 13, in <module>
Apr 24 21:08:02 seenas celery[3457103]:     from ocrmypdf._pipelines._common import (
Apr 24 21:08:02 seenas celery[3457103]:   File "/usr/lib/python3.11/site-packages/ocrmypdf/_pipelines/_common.py", line 28, in <module>
Apr 24 21:08:02 seenas celery[3457103]:     from ocrmypdf._pipeline import (
Apr 24 21:08:02 seenas celery[3457103]:   File "/usr/lib/python3.11/site-packages/ocrmypdf/_pipeline.py", line 22, in <module>
Apr 24 21:08:02 seenas celery[3457103]:     from PIL import Image, ImageColor, ImageDraw
Apr 24 21:08:02 seenas celery[3457103]:   File "/usr/lib/python3.11/site-packages/PIL/ImageDraw.py", line 40, in <module>
Apr 24 21:08:02 seenas celery[3457103]:     from ._typing import Coords
Apr 24 21:08:02 seenas celery[3457103]: ImportError: cannot import name 'Coords' from 'PIL._typing' (/usr/lib/python3.11/site-packages/PIL/_typing.py)
Apr 24 21:08:02 seenas celery[3457103]: [2024-04-24 21:08:02,760] [ERROR] [celery.app.trace] Task documents.tasks.consume_file[0a736d3e-22fa-4210-b6a8-5f1a4dc7137a] raised unexpected: ConsumerError("Raiffeisen_Visa_Debitkarte.pdf: Unexpected error while consuming document Raiffeisen_Visa_Debitkarte.pdf: cannot import name 'Coords' from 'PIL._typing' (/usr/lib/python3.11/site-packages/PIL/_typing.py)")
Apr 24 21:08:02 seenas celery[3457103]: Traceback (most recent call last):
Apr 24 21:08:02 seenas celery[3457103]:   File "/usr/lib/python3.11/site-packages/asgiref/sync.py", line 349, in main_wrap
Apr 24 21:08:02 seenas celery[3457103]:     raise exc_info[1]
Apr 24 21:08:02 seenas celery[3457103]:   File "/usr/share/paperless/src/documents/consumer.py", line 612, in try_consume_file
Apr 24 21:08:02 seenas celery[3457103]:     document_parser.parse(self.working_copy, mime_type, self.filename)
Apr 24 21:08:02 seenas celery[3457103]:   File "/usr/share/paperless/src/paperless_tesseract/parsers.py", line 351, in parse
Apr 24 21:08:02 seenas celery[3457103]:     import ocrmypdf
Apr 24 21:08:02 seenas celery[3457103]:   File "/usr/lib/python3.11/site-packages/ocrmypdf/__init__.py", line 13, in <module>
Apr 24 21:08:02 seenas celery[3457103]:     from ocrmypdf._pipelines._common import (
Apr 24 21:08:02 seenas celery[3457103]:   File "/usr/lib/python3.11/site-packages/ocrmypdf/_pipelines/_common.py", line 28, in <module>
Apr 24 21:08:02 seenas celery[3457103]:     from ocrmypdf._pipeline import (
Apr 24 21:08:02 seenas celery[3457103]:   File "/usr/lib/python3.11/site-packages/ocrmypdf/_pipeline.py", line 22, in <module>
Apr 24 21:08:02 seenas celery[3457103]:     from PIL import Image, ImageColor, ImageDraw
Apr 24 21:08:02 seenas celery[3457103]:   File "/usr/lib/python3.11/site-packages/PIL/ImageDraw.py", line 40, in <module>
Apr 24 21:08:02 seenas celery[3457103]:     from ._typing import Coords
Apr 24 21:08:02 seenas celery[3457103]: ImportError: cannot import name 'Coords' from 'PIL._typing' (/usr/lib/python3.11/site-packages/PIL/_typing.py)
Apr 24 21:08:02 seenas celery[3457103]: The above exception was the direct cause of the following exception:
Apr 24 21:08:02 seenas celery[3457103]: Traceback (most recent call last):
Apr 24 21:08:02 seenas celery[3457103]:   File "/usr/lib/python3.11/site-packages/celery/app/trace.py", line 477, in trace_task
Apr 24 21:08:02 seenas celery[3457103]:     R = retval = fun(*args, **kwargs)
Apr 24 21:08:02 seenas celery[3457103]:                  ^^^^^^^^^^^^^^^^^^^^
Apr 24 21:08:02 seenas celery[3457103]:   File "/usr/lib/python3.11/site-packages/celery/app/trace.py", line 760, in __protected_call__
Apr 24 21:08:02 seenas celery[3457103]:     return self.run(*args, **kwargs)
Apr 24 21:08:02 seenas celery[3457103]:            ^^^^^^^^^^^^^^^^^^^^^^^^^
Apr 24 21:08:02 seenas celery[3457103]:   File "/usr/share/paperless/src/documents/tasks.py", line 166, in consume_file
Apr 24 21:08:02 seenas celery[3457103]:     document = Consumer().try_consume_file(
Apr 24 21:08:02 seenas celery[3457103]:                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Apr 24 21:08:02 seenas celery[3457103]:   File "/usr/share/paperless/src/documents/consumer.py", line 649, in try_consume_file
Apr 24 21:08:02 seenas celery[3457103]:     self._fail(
Apr 24 21:08:02 seenas celery[3457103]:   File "/usr/share/paperless/src/documents/consumer.py", line 292, in _fail
Apr 24 21:08:02 seenas celery[3457103]:     raise ConsumerError(f"{self.filename}: {log_message or message}") from exception
Apr 24 21:08:02 seenas celery[3457103]: documents.consumer.ConsumerError: Raiffeisen_Visa_Debitkarte.pdf: Unexpected error while consuming document Raiffeisen_Visa_Debitkarte.pdf: cannot import name 'Coords' from 'PIL._typing' (/usr/lib/python3.11/site-packages/PIL/_typing.py)

atomicfs commented on 2024-04-11 13:38 (UTC) (edited on 2024-04-11 14:49 (UTC) by atomicfs)

@amo did I just mess it up by trying to push a commit to master branch?

UPDATE: never-mind I guess, I think AUR had some hiccup and it took unusually long to push.

atomicfs commented on 2024-04-05 08:03 (UTC)

@amo yeah, sure. I should really fix my RSS aggregator to get notifications about new releases to make this as simple as possible :)

amo commented on 2024-04-04 21:32 (UTC)

Awesome, @atomicfs ! Would you also be willing to take over my packaged python dependencies for paperless? You can find them by clicking on my user account. Maintaining them is pretty straight-forward. The packages need to be updated every once in a while but it's mostly just adapting the version number and checksum in the PKGBUILD.

atomicfs commented on 2024-04-02 20:58 (UTC)

Hey @AlphaJack, if no one has messaged you yet yet, I would like to volunteer to be a co-maintainer. The same goes for you @amo

amo commented on 2024-02-25 13:39 (UTC)

Hey everyone, I've had a lot of fun packaging and (co)maintaining paperless and a few of its dependencies, but I'd like to step down as co-maintainer of this package and as maintainer of the python dependencies I submitted. Since I am moving my paperless to a hosted instance at paperless-home.com, I'd like to hand over my AUR packages and the co-maintainership to anyone who is interested.

For taking over the co-maintenance of paperless-ngx, please reach out to AlphaJack. For the python dependencies, please see my AUR profile to find the AUR packages in question and reach out to me (I still need to figure out the easiest way to hand over a package to a new owner, but I think there is something on the wiki about that).

A word of encouragement: Maintaining a package is not hard. Really not. Initially submitting one takes more effort and testing, but maintaining is easy. It boils down to 1. updating the version number and checksum in the PKGBUILD file, 2. test making and installing the package (1 command), 3. generating a .SRCINFO file (1 command) and 4. git-pushing the two files.

Gnarflord commented on 2024-02-24 17:28 (UTC)

Dependency uvicorn was upgraded to 0.26.0 in January which causes subpath installations (https://mydomain.com/paperless) to break. This leads to infinite redirects when trying to access the domain, see https://github.com/paperless-ngx/paperless-ngx/issues/5494

If anyone else ran into this issue, a simple pacman downgrade fixed it for me:

sudo pacman -U file:///var/cache/pacman/pkg/uvicorn-0.25.0-1-any.pkg.tar.zst