Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stash will not recognise Python install/path #4856

Closed
Sandylz opened this issue May 20, 2024 · 3 comments
Closed

Stash will not recognise Python install/path #4856

Sandylz opened this issue May 20, 2024 · 3 comments
Labels
bug report Bug reports that are not yet verified

Comments

@Sandylz
Copy link

Sandylz commented May 20, 2024

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:

  1. Intall a plugin that uses python e.g. The Porn DB Markers
  2. Go into Settings -> System -> Application Paths -> Python Executable Path
  3. Enter the path to the python executable
  4. Attempt to use the plugin e.g. Sync markers with The Porn DB
  5. 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
  6. 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.

Screenshots
image

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.

@Sandylz Sandylz added the bug report Bug reports that are not yet verified label May 20, 2024
@feederbox826
Copy link
Contributor

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

@Sandylz Sandylz closed this as completed May 20, 2024
@Sandylz
Copy link
Author

Sandylz commented May 20, 2024

This bug should be resolved by restarting Stash and running: pip install stashapp-tools in command prompt.

@feederbox826
Copy link
Contributor

Will re-open in a new issue as it's still a bug to be addressed :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug report Bug reports that are not yet verified
Projects
Status: Done
Development

No branches or pull requests

2 participants