CommunityScripts icon indicating copy to clipboard operation
CommunityScripts copied to clipboard

[LocalVisage] Error on path

Open efraxs opened this issue 4 months ago • 3 comments

Here is the Log when i try to Rebuild Face Recognition Model

2025-08-08 19:23:05Error   [Plugin / Local Visage] C:\Users\efrax\AppData\Local\Programs\Python\Python310\python.exe: can't open file 'D:\\usuario\\Escritorio\\Nueva carpeta\\stash\\carpeta\\stash\\plugins\\community\\LocalVisage\\venv\\Scripts\\python.exe': [Errno 2] No such file or directory
2025-08-08 19:18:43Info    [Plugin / Local Visage] Installing dependencies... This might take a while
2025-08-08 19:18:43Info    [Plugin / Local Visage] Virtual environment created at D:\usuario\Escritorio\Nueva carpeta\stash\plugins\community\LocalVisage\venv

The path that is showing in the log is incorrect

'D:\usuario\Escritorio\Nueva carpeta\stash\carpeta\stash\plugins\community\LocalVisage\venv\Scripts\python.exe' it should be "D:\usuario\Escritorio\Nueva carpeta\stash\plugins\community\LocalVisage\venv\Scripts\python.exe"

efraxs avatar Aug 09 '25 01:08 efraxs

venv_dir = os.path.join(os.path.dirname(file), "venv") Normally the path is calculated from the folder the python script is in + /venv/ So idk how you can have something different

Nonoty avatar Aug 11 '25 09:08 Nonoty

Can you remove the space in "nueva carpets" and try again?

Nonoty avatar Aug 11 '25 09:08 Nonoty

Someone else with the same issue fixed it by removing the space.

It's because the subprocess call doesn't like space as it takes it for another command

Nonoty avatar Aug 11 '25 21:08 Nonoty