Skip to content

Conversation

@Nonoty
Copy link
Contributor

@Nonoty Nonoty commented Jun 21, 2025

Added PythonDepManager to avoid people not installing dep

@DogmaDragon
Copy link
Contributor

Why the version jump from 0.3.0 to 1.0.0?

@Nonoty
Copy link
Contributor Author

Nonoty commented Jun 21, 2025

Because its been years since i first made this plugin and i consider it to be stable enough now that it can be 1.0

@DogmaDragon DogmaDragon merged commit 5541edf into stashapp:main Jun 21, 2025
1 check passed
@dbuttric
Copy link

If I'm using the docker container, how do I do this? I applied the diffs, now I'm getting that I need to install that PythonDepManager.
When I try to execute pip in the container, I get the error about not having virtual environment.
Can you tell me where the venv is so I can source it, and install packages?
Thanks for the help.

@NotMyMainUser
Copy link
Contributor

PythonDepManager should be installed automatically when you install the Plugin via your stash UI. If that didn't work for some reason you can install it from the plugin section in stash

@DogmaDragon DogmaDragon added type:plugin Plugins object:gallery Affects or is triggered by gallery object labels Jul 3, 2025
@HavenCTO
Copy link
Contributor

@Nonoty I leverage pythondepmanager within the plugin I'm building, I noticed that the dependencies are being installed every single run. Am I misusing this? Seeing the behavior on windows (no docker, no venv) https://github.com/Haven-hvn/AHavenVLMConnector/blob/c424977f7624e65fa8a23fb4d519f3b754b3f241/haven_vlm_connector.py#L27

@Nonoty
Copy link
Contributor Author

Nonoty commented Jul 15, 2025

I'm having lots of issues like this too. That's usually because the package name is not the same as the import name.
I think pythondepmanager would need to be improved to handle the common case like _ being equal to -.
In the meantime you can try to give it the name manually like
"dep_name:dep-name==1.0"
But I still ended up using a custom made installer using venv for more complex plugins.
I end up using depmanager only for stashapi and simple tools

@NotMyMainUser
Copy link
Contributor

I'll try to fix these issues in PythonDepManager this weekend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

object:gallery Affects or is triggered by gallery object type:plugin Plugins

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants