Skip to content

FileMonitor python module is missing #659

@spirillen

Description

@spirillen

Describe the bug

This is a old issue, yet it seems to be only partly implanted... For Debian|Ubuntu users there are lacking python pkg to fulfill this implantation

Steps to reproduce

Any actions that touch the module

Expected behaviour

Let me think about this.... 🤔 💭

Screenshots or additional context

Image

Stash version

v0.30.1

Device details

Ubuntu 24 LTS

Relevant log output

2026-01-30T19:16:44.925094915+01:00 INF Response: 200 OK httpRequest={"proto":"HTTP/1.1","remoteIP":"192.0.2.0:36488","requestID":"hostname/dKZsomethingsomethingvHwVZQN-000289","requestMethod":"POST","requestPath":"/graphql","requestURL":"http://hostname.local:9999/graphql"} httpResponse={"bytes":26,"elapsed":0.112865,"status":200} service=stash
ERRO[2026-01-30 19:16:48] [Plugin / FileMonitor] error: externally-managed-environment
ERRO[2026-01-30 19:16:48] [Plugin / FileMonitor] × This environment is externally managed
ERRO[2026-01-30 19:16:48] [Plugin / FileMonitor] ╰─> To install Python packages system-wide, try apt install
ERRO[2026-01-30 19:16:48] [Plugin / FileMonitor]     python3-xyz, where xyz is the package you are trying to
ERRO[2026-01-30 19:16:48] [Plugin / FileMonitor]     install.
ERRO[2026-01-30 19:16:48] [Plugin / FileMonitor]
ERRO[2026-01-30 19:16:48] [Plugin / FileMonitor]     If you wish to install a non-Debian-packaged Python package,
ERRO[2026-01-30 19:16:48] [Plugin / FileMonitor]     create a virtual environment using python3 -m venv path/to/venv.
ERRO[2026-01-30 19:16:48] [Plugin / FileMonitor]     Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
ERRO[2026-01-30 19:16:48] [Plugin / FileMonitor]     sure you have python3-full installed.
ERRO[2026-01-30 19:16:48] [Plugin / FileMonitor]
ERRO[2026-01-30 19:16:48] [Plugin / FileMonitor]     If you wish to install a non-Debian packaged Python application,
ERRO[2026-01-30 19:16:48] [Plugin / FileMonitor]     it may be easiest to use pipx install xyz, which will manage a
ERRO[2026-01-30 19:16:48] [Plugin / FileMonitor]     virtual environment for you. Make sure you have pipx installed.
ERRO[2026-01-30 19:16:48] [Plugin / FileMonitor]
ERRO[2026-01-30 19:16:48] [Plugin / FileMonitor]     See /usr/share/doc/python3.12/README.venv for more information.
ERRO[2026-01-30 19:16:48] [Plugin / FileMonitor] note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
ERRO[2026-01-30 19:16:48] [Plugin / FileMonitor] hint: See PEP 668 for the detailed specification.
ERRO[2026-01-30 19:16:48] [Plugin / FileMonitor] error: externally-managed-environment
ERRO[2026-01-30 19:16:48] [Plugin / FileMonitor] × This environment is externally managed
ERRO[2026-01-30 19:16:48] [Plugin / FileMonitor] ╰─> To install Python packages system-wide, try apt install
ERRO[2026-01-30 19:16:48] [Plugin / FileMonitor]     python3-xyz, where xyz is the package you are trying to
ERRO[2026-01-30 19:16:48] [Plugin / FileMonitor]     install.
ERRO[2026-01-30 19:16:48] [Plugin / FileMonitor]
ERRO[2026-01-30 19:16:48] [Plugin / FileMonitor]     If you wish to install a non-Debian-packaged Python package,
ERRO[2026-01-30 19:16:48] [Plugin / FileMonitor]     create a virtual environment using python3 -m venv path/to/venv.
ERRO[2026-01-30 19:16:48] [Plugin / FileMonitor]     Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
ERRO[2026-01-30 19:16:48] [Plugin / FileMonitor]     sure you have python3-full installed.
ERRO[2026-01-30 19:16:48] [Plugin / FileMonitor]
ERRO[2026-01-30 19:16:48] [Plugin / FileMonitor]     If you wish to install a non-Debian packaged Python application,
ERRO[2026-01-30 19:16:48] [Plugin / FileMonitor]     it may be easiest to use pipx install xyz, which will manage a
ERRO[2026-01-30 19:16:48] [Plugin / FileMonitor]     virtual environment for you. Make sure you have pipx installed.
ERRO[2026-01-30 19:16:48] [Plugin / FileMonitor]
ERRO[2026-01-30 19:16:48] [Plugin / FileMonitor]     See /usr/share/doc/python3.12/README.venv for more information.
ERRO[2026-01-30 19:16:48] [Plugin / FileMonitor] note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
ERRO[2026-01-30 19:16:48] [Plugin / FileMonitor] hint: See PEP 668 for the detailed specification.
ERRO[2026-01-30 19:16:49] [Plugin / FileMonitor] error: externally-managed-environment
ERRO[2026-01-30 19:16:49] [Plugin / FileMonitor] × This environment is externally managed
ERRO[2026-01-30 19:16:49] [Plugin / FileMonitor] ╰─> To install Python packages system-wide, try apt install
ERRO[2026-01-30 19:16:49] [Plugin / FileMonitor]     python3-xyz, where xyz is the package you are trying to
ERRO[2026-01-30 19:16:49] [Plugin / FileMonitor]     install.
ERRO[2026-01-30 19:16:49] [Plugin / FileMonitor]
ERRO[2026-01-30 19:16:49] [Plugin / FileMonitor]     If you wish to install a non-Debian-packaged Python package,
ERRO[2026-01-30 19:16:49] [Plugin / FileMonitor]     create a virtual environment using python3 -m venv path/to/venv.
ERRO[2026-01-30 19:16:49] [Plugin / FileMonitor]     Then use path/to/venv/bin/python and path/to/venv/bin/pip. Make
ERRO[2026-01-30 19:16:49] [Plugin / FileMonitor]     sure you have python3-full installed.
ERRO[2026-01-30 19:16:49] [Plugin / FileMonitor]
ERRO[2026-01-30 19:16:49] [Plugin / FileMonitor]     If you wish to install a non-Debian packaged Python application,
ERRO[2026-01-30 19:16:49] [Plugin / FileMonitor]     it may be easiest to use pipx install xyz, which will manage a
ERRO[2026-01-30 19:16:49] [Plugin / FileMonitor]     virtual environment for you. Make sure you have pipx installed.
ERRO[2026-01-30 19:16:49] [Plugin / FileMonitor]
ERRO[2026-01-30 19:16:49] [Plugin / FileMonitor]     See /usr/share/doc/python3.12/README.venv for more information.
ERRO[2026-01-30 19:16:49] [Plugin / FileMonitor] note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
ERRO[2026-01-30 19:16:49] [Plugin / FileMonitor] hint: See PEP 668 for the detailed specification.
ERRO[2026-01-30 19:16:49] [Plugin / FileMonitor] Traceback (most recent call last):
ERRO[2026-01-30 19:16:49] [Plugin / FileMonitor]   File "/home/usernameX/.stash/plugins/community/filemonitor/filemonitor.py", line 14, in <module>
ERRO[2026-01-30 19:16:49] [Plugin / FileMonitor]     from StashPluginHelper import StashPluginHelper
ERRO[2026-01-30 19:16:49] [Plugin / FileMonitor]   File "/home/usernameX/.stash/plugins/community/filemonitor/StashPluginHelper.py", line 18, in <module>
ERRO[2026-01-30 19:16:49] [Plugin / FileMonitor]     from stashapi.stashapp import StashInterface
ERRO[2026-01-30 19:16:49] [Plugin / FileMonitor] ModuleNotFoundError: No module named 'stashapi'
ERRO[2026-01-30 19:16:49] runPluginOperation: input: runPluginOperation exit status 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions