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

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

Open
jeremymeyers opened this issue Dec 31, 2020 · 5 comments
Open

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

jeremymeyers opened this issue Dec 31, 2020 · 5 comments

Comments

@jeremymeyers
Copy link

the exec python function crashes (hapy to help debug)

@tctx79
Copy link

tctx79 commented Mar 19, 2021

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

@cc1234475
Copy link
Owner

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

@iamagithublearner
Copy link

what's your discord username?

@hexpriv
Copy link

hexpriv commented Jun 10, 2022

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.

@MrMxyzptlk
Copy link

Struggling...this happens when doing the requirements install; appears to be from spacy not requests?

ImportError: cannot import name 'msvccompiler' from 'distutils' (C:\Users\Administrator\AppData\Local\Temp\2\pip-build-env-ah6fmvo6\overlay\Lib\site-packages\setuptools_distutils_init_.py). Did you mean: 'ccompiler'?
[end of output]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants