Stash will not recognise Python install/path
Closed this issue · 3 comments
Stash will not be able to resolve python even when being pointed directly to the executable, as a result any plugins using python will not work.
To Reproduce
Steps to reproduce the behavior:
- Intall a plugin that uses python e.g. The Porn DB Markers
- Go into Settings -> System -> Application Paths -> Python Executable Path
- Enter the path to the python executable
- Attempt to use the plugin e.g. Sync markers with The Porn DB
- The plugin will not work and an error message will appear in the log like this:
Error running plugin task: error running plugin: exec: "C:\Users\\.stash\plugins\community\TPDBMarkers\python": file does not exist - If plugins are not reloaded the path in the error message will start multiplying e.g.
error running plugin: exec: "C:\Users\\.stash\plugins\community\TPDBMarkers\pythonC:\Users\\.stash\plugins\community\TPDBMarkers\pythonC:\Users\\.stash\plugins\community\TPDBMarkers\python": file does not exist
Expected behavior
Expected behaviour is that the plugin will function correctly.
Stash Version:
v0.25.1
Desktop:
- OS: Windows 11
- Browser: Chrome
- Version: 125.0.6422.60
Additional context
This bug persisted across multiple seperate systems, but couldn't be reproduced by other users who had the exact same settings. It also stops the warning message that should appear if the path to the python exe ends on a folder.
After some debugging and testing with the user, it seems to only exhibit this behaviour on the first install, after closing and re-opening the stash.exe it seems to have picked up the custom python path - which was missing the telltale trace log
using configured python path: ...
My assumption is that the default startup config.yml is locked on first install which means that python_path is not being read
This bug should be resolved by restarting Stash and running: pip install stashapp-tools in command prompt.
Will re-open in a new issue as it's still a bug to be addressed :/