CommunityScripts icon indicating copy to clipboard operation
CommunityScripts copied to clipboard

[LocalVisage] Mising dependancies on Docker installation

Open JN8086 opened this issue 1 year ago • 7 comments

I'm getting this error:

5-11-08 17:57:29Error Plugin returned error: exit status 1 2025-11-08 17:57:29Error [Plugin / Local Visage] Exception: PythonDepManager: ❌ git is required but not available 2025-11-08 17:57:29Error [Plugin / Local Visage] raise Exception(s) 2025-11-08 17:57:29Error [Plugin / Local Visage] File "/root/.stash/plugins/community/PythonDepManager/log.py", line 30, in throw 2025-11-08 17:57:29Error [Plugin / Local Visage] log.throw(f"PythonDepManager: ❌ {name} is required but not available") 2025-11-08 17:57:29Error [Plugin / Local Visage] File "/root/.stash/plugins/community/PythonDepManager/deps.py", line 84, in check_system_requirements 2025-11-08 17:57:29Error [Plugin / Local Visage] check_system_requirements() 2025-11-08 17:57:29Error [Plugin / Local Visage] File "/root/.stash/plugins/community/PythonDepManager/deps.py", line 407, in process_packages 2025-11-08 17:57:29Error [Plugin / Local Visage] ^^^^^^^^^^^^^^^^^^^^^^ 2025-11-08 17:57:29Error [Plugin / Local Visage] packages, base_folder = process_packages(deps) 2025-11-08 17:57:29Error [Plugin / Local Visage] File "/root/.stash/plugins/community/PythonDepManager/deps.py", line 532, in ensure_import 2025-11-08 17:57:29Error [Plugin / Local Visage] ensure_import("stashapi:stashapp-tools>=0.2.58") 2025-11-08 17:57:29Error [Plugin / Local Visage] File "/root/.stash/plugins/community/LocalVisage/LocalVisage.py", line 12, in <module> 2025-11-08 17:57:29Error [Plugin / Local Visage] Traceback (most recent call last): 2025-11-08 17:57:29Error [Plugin / Local Visage] During handling of the above exception, another exception occurred: 2025-11-08 17:57:29Error [Plugin / Local Visage] FileNotFoundError: [Errno 2] No such file or directory: 'git' 2025-11-08 17:57:29Error [Plugin / Local Visage] raise child_exception_type(errno_num, err_msg, err_filename) 2025-11-08 17:57:29Error [Plugin / Local Visage] File "/usr/lib/python3.12/subprocess.py", line 1955, in _execute_child 2025-11-08 17:57:29Error [Plugin / Local Visage] self._execute_child(args, executable, preexec_fn, close_fds, 2025-11-08 17:57:29Error [Plugin / Local Visage] File "/usr/lib/python3.12/subprocess.py", line 1026, in __init__ 2025-11-08 17:57:29Error [Plugin / Local Visage] ^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-11-08 17:57:29Error [Plugin / Local Visage] with Popen(*popenargs, **kwargs) as process: 2025-11-08 17:57:29Error [Plugin / Local Visage] File "/usr/lib/python3.12/subprocess.py", line 548, in run 2025-11-08 17:57:29Error [Plugin / Local Visage] subprocess.run( 2025-11-08 17:57:29Error [Plugin / Local Visage] File "/root/.stash/plugins/community/PythonDepManager/deps.py", line 80, in check_system_requirements 2025-11-08 17:57:29Error [Plugin / Local Visage] Traceback (most recent call last): 2025-11-08 17:57:29Error [Plugin / Local Visage] PythonDepManager: ❌ git is required but not available

I am not very proficient at this. What do I do to fix this?

JN8086 avatar Nov 08 '25 17:11 JN8086

Hello First line "git is required but not available" You need to install git.

Nonoty avatar Nov 09 '25 12:11 Nonoty

What does that mean? There is no documentation anywhere.

JN8086 avatar Nov 09 '25 21:11 JN8086

https://github.com/git-guides/install-git

Nonoty avatar Nov 09 '25 23:11 Nonoty

Thanks, but that still doesn't make it clear. Do I use the commands for Ubuntu or Fedora? Do I run this in the terminal or Unraid or the terminal of the docker container? I tried in both and I got an error that the command was not found.

JN8086 avatar Nov 10 '25 07:11 JN8086

Stash container uses alpine as base os. You can install git using apk add git inside the docker container: docker exec <container_name> apk add git

Larsluph avatar Nov 12 '25 13:11 Larsluph

Thanks that worked. I'm now getting this error:

2025-11-12 14:37:59Error Plugin returned error: exit status 1 2025-11-12 14:37:59Error [Plugin / Local Visage] Go to https://www.python.org/downloads/release/python-31011/ 2025-11-12 14:37:59Error [Plugin / Local Visage] Current version: 3.12.12 (main, Oct 11 2025, 15:09:54) [GCC 14.2.0] 2025-11-12 14:37:59Error [Plugin / Local Visage] Error: Python version must be >= 3.10.X (recommanded 3.10.11) for the first installation of the plugin. Once installed you can change back your python version in stash as this plugin will run within its own venv

How do I address this? And is it really necessary? How big can the changes be between 3.10 and 3.12?

JN8086 avatar Nov 12 '25 13:11 JN8086

I think it has something to do with the dependencies. I have built a working docker image to use the plugin without issues inside a docker environment, see #629

Larsluph avatar Nov 12 '25 14:11 Larsluph