Paperless-ngx dependencies #1673

Closed
opened 2026-02-05 01:55:12 +03:00 by OVERLORD · 8 comments
Owner

Originally created by @Just4Link on GitHub (Sep 25, 2025).

Have you read and understood the above guidelines?

yes

📜 What is the name of the script you are using?

Paperless-ngx

📂 What was the exact command used to execute the script?

bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/paperless-ngx.sh)"

⚙️ What settings are you using?

  • Default Settings
  • Advanced Settings

🖥️ Which Linux distribution are you using?

Debian 12

📈 Which Proxmox version are you on?

9.0.10

📝 Provide a clear and concise description of the issue.

When i try to import my paperless-ngx backup i get a error.

If i start the python shell and request the installed modules it seems there are missing modules like django

bash: root@paperless-ngx:/opt/paperless/src# python3
Python Shell: >>> help('modules')

Please wait a moment while I gather a list of all available modules...

future _tokenize gc readline
hello _tracemalloc genericpath reportbug
phello _typing getopt reprlib
_abc _uuid getpass requests
_aix_support _warnings gettext resource
_ast _weakref glob rlcompleter
_asyncio _weakrefset graphlib runpy
_bisect _xxsubinterpreters grp sched
_blake2 _xxtestfuzz gzip secrets
_bootsubprocess _zoneinfo hashlib select
_bz2 abc heapq selectors
_codecs aifc hmac shelve
_codecs_cn antigravity html shlex
_codecs_hk apt http shutil
_codecs_iso2022 apt_inst httplib2 signal
_codecs_jp apt_pkg idna site
_codecs_kr aptsources imaplib sitecustomize
_codecs_tw argparse imghdr six
_collections array imp smtpd
_collections_abc ast importlib smtplib
_compat_pickle asynchat inspect sndhdr
_compression asyncio io socket
_contextvars asyncore ipaddress socketserver
_crypt atexit itertools spwd
_csv audioop json sqlite3
_ctypes base64 keyword sre_compile
_ctypes_test bdb linecache sre_constants
_curses binascii locale sre_parse
_curses_panel bisect logging ssl
_datetime builtins lzma stat
_dbm bz2 mailbox statistics
_decimal cProfile mailcap string
_distutils_system_mod calendar manage stringprep
_elementtree certifi marshal struct
_functools cgi math subprocess
_hashlib cgitb mimetypes sunau
_heapq chardet mmap symtable
_imp charset_normalizer modulefinder sys
_io chunk multiprocessing sysconfig
_json cmath netrc syslog
_locale cmd nis tabnanny
_lsprof code nntplib tarfile
_lzma codecs ntpath telnetlib
_markupbase codeop nturl2path tempfile
_md5 collections numbers termios
_multibytecodec colorsys opcode test
_multiprocessing compileall operator textwrap
_opcode concurrent optparse this
_operator configparser os threading
_osx_support contextlib ossaudiodev time
_pickle contextvars paperless timeit
_posixshmem copy paperless_mail token
_posixsubprocess copyreg paperless_tesseract tokenize
_py_abc crypt paperless_text tomllib
_pydecimal csv paperless_tika trace
_pyio ctypes pathlib traceback
_queue curl pdb tracemalloc
_random curses pickle tty
_sha1 dataclasses pickletools turtle
_sha256 datetime pipes types
_sha3 dbm pkg_resources typing
_sha512 deb822 pkgutil unicodedata
_signal debconf platform unittest
_sitebuiltins debian plistlib urllib
_socket debian_bundle poplib urllib3
_sqlite3 debianbts posix uu
_sre decimal posixpath uuid
_ssl difflib pprint venv
_stat dis profile warnings
_statistics distutils pstats wave
_string doctest pty weakref
_strptime documents pwd webbrowser
_struct email py_compile wsgiref
_symtable encodings pyclbr xdrlib
_sysconfigdata__linux_x86_64-linux-gnu enum pycurl xml
_sysconfigdata__x86_64-linux-gnu errno pydoc xmlrpc
_testbuffer faulthandler pydoc_data xxlimited
_testcapi fcntl pyexpat xxlimited_35
_testclinic filecmp pyparsing xxsubtype
_testimportmultiple fileinput pysimplesoap zipapp
_testinternalcapi fnmatch queue zipfile
_testmultiphase fractions quopri zipimport
_thread ftplib random zlib
_threading_local functools re zoneinfo

🔄 Steps to reproduce the issue.

Start document import:
root@paperless-ngx:/opt/paperless/src# python3 manage.py document_importer /mnt/nas_39_paperless-ngx/export

Paste the full error output (if available).

root@paperless-ngx:/opt/paperless/src# python3 manage.py document_importer target /mnt/nas_39_paperless-ngx/export
Traceback (most recent call last):
File "/opt/paperless/src/manage.py", line 8, in
from django.core.management import execute_from_command_line
ModuleNotFoundError: No module named 'django'

🖼️ Additional context (optional).

No response

Originally created by @Just4Link on GitHub (Sep 25, 2025). ### ✅ Have you read and understood the above guidelines? yes ### 📜 What is the name of the script you are using? Paperless-ngx ### 📂 What was the exact command used to execute the script? bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/paperless-ngx.sh)" ### ⚙️ What settings are you using? - [ ] Default Settings - [x] Advanced Settings ### 🖥️ Which Linux distribution are you using? Debian 12 ### 📈 Which Proxmox version are you on? 9.0.10 ### 📝 Provide a clear and concise description of the issue. When i try to import my paperless-ngx backup i get a error. If i start the python shell and request the installed modules it seems there are missing modules like django bash: root@paperless-ngx:/opt/paperless/src# python3 Python Shell: >>> help('modules') Please wait a moment while I gather a list of all available modules... __future__ _tokenize gc readline __hello__ _tracemalloc genericpath reportbug __phello__ _typing getopt reprlib _abc _uuid getpass requests _aix_support _warnings gettext resource _ast _weakref glob rlcompleter _asyncio _weakrefset graphlib runpy _bisect _xxsubinterpreters grp sched _blake2 _xxtestfuzz gzip secrets _bootsubprocess _zoneinfo hashlib select _bz2 abc heapq selectors _codecs aifc hmac shelve _codecs_cn antigravity html shlex _codecs_hk apt http shutil _codecs_iso2022 apt_inst httplib2 signal _codecs_jp apt_pkg idna site _codecs_kr aptsources imaplib sitecustomize _codecs_tw argparse imghdr six _collections array imp smtpd _collections_abc ast importlib smtplib _compat_pickle asynchat inspect sndhdr _compression asyncio io socket _contextvars asyncore ipaddress socketserver _crypt atexit itertools spwd _csv audioop json sqlite3 _ctypes base64 keyword sre_compile _ctypes_test bdb linecache sre_constants _curses binascii locale sre_parse _curses_panel bisect logging ssl _datetime builtins lzma stat _dbm bz2 mailbox statistics _decimal cProfile mailcap string _distutils_system_mod calendar manage stringprep _elementtree certifi marshal struct _functools cgi math subprocess _hashlib cgitb mimetypes sunau _heapq chardet mmap symtable _imp charset_normalizer modulefinder sys _io chunk multiprocessing sysconfig _json cmath netrc syslog _locale cmd nis tabnanny _lsprof code nntplib tarfile _lzma codecs ntpath telnetlib _markupbase codeop nturl2path tempfile _md5 collections numbers termios _multibytecodec colorsys opcode test _multiprocessing compileall operator textwrap _opcode concurrent optparse this _operator configparser os threading _osx_support contextlib ossaudiodev time _pickle contextvars paperless timeit _posixshmem copy paperless_mail token _posixsubprocess copyreg paperless_tesseract tokenize _py_abc crypt paperless_text tomllib _pydecimal csv paperless_tika trace _pyio ctypes pathlib traceback _queue curl pdb tracemalloc _random curses pickle tty _sha1 dataclasses pickletools turtle _sha256 datetime pipes types _sha3 dbm pkg_resources typing _sha512 deb822 pkgutil unicodedata _signal debconf platform unittest _sitebuiltins debian plistlib urllib _socket debian_bundle poplib urllib3 _sqlite3 debianbts posix uu _sre decimal posixpath uuid _ssl difflib pprint venv _stat dis profile warnings _statistics distutils pstats wave _string doctest pty weakref _strptime documents pwd webbrowser _struct email py_compile wsgiref _symtable encodings pyclbr xdrlib _sysconfigdata__linux_x86_64-linux-gnu enum pycurl xml _sysconfigdata__x86_64-linux-gnu errno pydoc xmlrpc _testbuffer faulthandler pydoc_data xxlimited _testcapi fcntl pyexpat xxlimited_35 _testclinic filecmp pyparsing xxsubtype _testimportmultiple fileinput pysimplesoap zipapp _testinternalcapi fnmatch queue zipfile _testmultiphase fractions quopri zipimport _thread ftplib random zlib _threading_local functools re zoneinfo ### 🔄 Steps to reproduce the issue. Start document import: root@paperless-ngx:/opt/paperless/src# python3 manage.py document_importer /mnt/nas_39_paperless-ngx/export ### ❌ Paste the full error output (if available). root@paperless-ngx:/opt/paperless/src# python3 manage.py document_importer target /mnt/nas_39_paperless-ngx/export Traceback (most recent call last): File "/opt/paperless/src/manage.py", line 8, in <module> from django.core.management import execute_from_command_line ModuleNotFoundError: No module named 'django' ### 🖼️ Additional context (optional). _No response_
OVERLORD added the not a script issue label 2026-02-05 01:55:12 +03:00
Author
Owner

@MickLesk commented on GitHub (Sep 25, 2025):

Paperless Run with UV Not with Python, idk what you do.

The issue is not relevant for us, its Not an Script issue.

@MickLesk commented on GitHub (Sep 25, 2025): Paperless Run with UV Not with Python, idk what you do. The issue is not relevant for us, its Not an Script issue.
Author
Owner

@Just4Link commented on GitHub (Sep 25, 2025):

See my initial report. I try to restore a backup from my old instance. When i run the command above i get this error in my full error report.

Maybe you can try to restore a backup yourself with a fresh lxc from this script.

@Just4Link commented on GitHub (Sep 25, 2025): See my initial report. I try to restore a backup from my old instance. When i run the command above i get this error in my full error report. Maybe you can try to restore a backup yourself with a fresh lxc from this script.
Author
Owner

@MickLesk commented on GitHub (Sep 25, 2025):

Yeah but what should we do Here? Its so old, that it doesnt use UV. So Its better to create an new LXC. Nobody has Access to your Host expect you, and a few lines where only eritten down: "Django Missing" say nothing. Nobody know the Version, the state of the LXC, the ressources, the packages

@MickLesk commented on GitHub (Sep 25, 2025): Yeah but what should we do Here? Its so old, that it doesnt use UV. So Its better to create an new LXC. Nobody has Access to your Host expect you, and a few lines where only eritten down: "Django Missing" say nothing. Nobody know the Version, the state of the LXC, the ressources, the packages
Author
Owner

@Just4Link commented on GitHub (Sep 26, 2025):

You can try it yourself when you create a paperless lxc with this script and do a import.

What do you mean with old? Is this script outdated?
Look, i only use this script and it seems there is Something missing after creation. The Output is the only thing i get.

I Just want to fiddle around to get this working.

@Just4Link commented on GitHub (Sep 26, 2025): You can try it yourself when you create a paperless lxc with this script and do a import. What do you mean with old? Is this script outdated? Look, i only use this script and it seems there is Something missing after creation. The Output is the only thing i get. I Just want to fiddle around to get this working.
Author
Owner

@MickLesk commented on GitHub (Sep 26, 2025):

When do you have installed the Script? Paperless Runs since months with UV

@MickLesk commented on GitHub (Sep 26, 2025): When do you have installed the Script? Paperless Runs since months with UV
Author
Owner

@Just4Link commented on GitHub (Sep 26, 2025):

Yesterday.

I want to switch from my docker instance to this lxc.
My docker instance is up to date. I exported the data via instructions from the paperless Website vise versa import too. Export runs fine but import not.

@Just4Link commented on GitHub (Sep 26, 2025): Yesterday. I want to switch from my docker instance to this lxc. My docker instance is up to date. I exported the data via instructions from the paperless Website vise versa import too. Export runs fine but import not.
Author
Owner

@MickLesk commented on GitHub (Sep 26, 2025):

ah, you're talking about importing a file or an share folder.
The whole issue sounds like you're trying to import an LXC backup.

You need to use uv, not Python3.

uv run python manage.py document_importer target /mnt/nas_39_paperless-ngx/export

@MickLesk commented on GitHub (Sep 26, 2025): ah, you're talking about importing a file or an share folder. The whole issue sounds like you're trying to import an LXC backup. You need to use uv, not Python3. uv run python manage.py document_importer target /mnt/nas_39_paperless-ngx/export
Author
Owner

@Just4Link commented on GitHub (Sep 26, 2025):

exactly. that was the trick. the import process was successful. thanks for your help.

Maybe you should add this in the description of the script, when running python commands you have to use the uv instead.
I just followed the official paperless walkthrough and there you have the python3 command in front.

Anyway. Keep up the good work :)

@Just4Link commented on GitHub (Sep 26, 2025): exactly. that was the trick. the import process was successful. thanks for your help. Maybe you should add this in the description of the script, when running python commands you have to use the uv instead. I just followed the official paperless walkthrough and there you have the python3 command in front. Anyway. Keep up the good work :)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ProxmoxVE#1673