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

any guide on how to get this setup in Unraid? #5

Closed heezy01 closed 3 years ago

heezy01 commented 3 years ago

i have Unraid 6.9.1 setup with stash docker and i am trying to use this plugin, but i am not sure how to setup a virtualenv in unraid. do i use the stash docker's console or Unraid's terminal?

the error i get in stash is, "Error running plugin task: Error running plugin: fork/exec /root/.stash/plugins/env/bin/python: no such file or directory"

any help to set this up in Unraid? thanks!

sbaak12 commented 3 years ago

This is just my experience. hopefully something here can lead you down the right path. Use a normal ssh session to your unraid server. or if you really want then use the webui to get to stash's console and start at the second line.

docker exec -i -t Stash bash
apt-get update
apt-get install virtualenv
virtualenv -p python3 --system-site-packages /root/.stash/plugins/env
source /root/.stash/plugins/env/bin/activate
python -m pip install spacy==2.3.5
python -m pip install requests
python -m spacy download en_core_web_md

docker ps if the name Stash is wrong 'could be lowercase s or whatever'

heezy01 commented 3 years ago

i got this to work using Unraid's terminal and started on line one. for the plugin to work, the files have to be in the root of the plugins folder. in Unraid, it is located in appdata\stash\config\plugins. now the plugin looks like it is working so far. thank you!

sbaak12 commented 3 years ago

np. ya i didn't include getting the plugin there. ill write it out incase anyone finds this later.

# after apt-get update
apt-get install git
cd /root/.stash/plugins/
git clone https://github.com/com1234475/stash-plugin-performer-creator.git
cc1234475 commented 3 years ago

thanks @sbaak12 , I've added your guide to the read me.