Paperless NGX: Externally Managed Environment Error

This morning I wanted to upgrade my paperless instance on Debian 12 to the latest version 2.14.1. Unfortunately, the installation of the requirements.txt via pip resulted in the following error: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 error: externally-managed-environment × This environment is externally managed ╰─> To install Python packages system-wide, try apt install python3-xyz, where xyz is the package you are trying to install. If you wish to install a non-Debian-packaged Python package, create a virtual environment using python3 -m venv path/to/venv. Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make sure you have python3-full installed. If you wish to install a non-Debian packaged Python application, it may be easiest to use pipx install xyz, which will manage a virtual environment for you. Make sure you have pipx installed. See /usr/share/doc/python3.11/README.venv for more information.``` To get the system up and running again, you could install the missing module manually: This actually means, that your python packages are marked to be updated by the os. Usually it would be the better approach to install in an venv. But as my installation is bare metal an dedicated to paperless, you can turn off this check by removing the following file. ...

January 14, 2025

Paperless NGX: NLTK Quickfix

This is just a small fix for you guys facing the following error while consuming new documents in paperless. Due to a vulnerability, the NLTK tokenizer had to be bumped to a recent version. But there seems to be a problem with bare metal installations. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 Doc.pdf: The following error occurred while storing document Doc.pdf after parsing: ********************************************************************** Resource punkt_tab not found. Please use the NLTK Downloader to obtain the resource: >>> import nltk >>> nltk.download('punkt_tab') For more information see: https://www.nltk.org/data.html Attempted to load tokenizers/punkt_tab/german/ Searched in: - PosixPath('/usr/share/nltk_data') ********************************************************************** To get the system up and running again, you could install the missing module manually: ...

August 24, 2024

Paperless NGX: Conversion between UTF8 and SQL_ASCII is not supported

Maybe it will help some of you, but I just had an error updating 2.8.0 on my bare metal Paperless NGX instance. When trying to migrate the changes, the following error occured: Conversion between UTF8 and SQL_ASCII is not supported In fact, my Postgres database was set to SQL_ASCII instead of UTF-8, so it helped to rebuild the database. Make sure to backup/snapshot everything in case something goes wrong, I managed to kill my instance while fiddling around with this 😄 ...

May 8, 2024