cc1234475 / stash-plugin-performer-creator

User Natural Language Processing to extract performers from file names for StashApp
GNU Affero General Public License v3.0
40 stars 6 forks source link

Does not appear to work on a Windows installation. #2

Open jeremymeyers opened 3 years ago

jeremymeyers commented 3 years ago

the exec python function crashes (hapy to help debug)

tctx79 commented 3 years ago

Any updates on this? I'm having problems running on a windows installation.

cc1234475 commented 3 years ago

not a windows user so can't test, hit me up on discord and we can debug together

iamagithublearner commented 3 years ago

what's your discord username?

hexpriv commented 2 years ago

Unsure if this is still an issue, but you can get it to run on Windows, its mostly the same as the setup instructions.

create a virtualenv virtualenv -p python3 --system-site-packages path to your plugin dir e.g. C:\stash\plugins\env run path to your plugin dir/env/Scripts/activate.bat in a command prompt - this should get you into the python virtual env. You should see (env) C:\stash.... (or wherever your python virtual env is located) in the command prompt window.

Install packages in the virtual env pip install -r path to the requirements.txt file python -m spacy download en_core_web_md

Edit the plugin performer_creator.yml file

exec:
 - env/bin/python

Should be:

exec:
 - path to your env python.exe

Rescan the plugins in stash and try again. If it launches a python instance, it's working.