Closed Lalimec closed 1 year ago
I've fixed the issue by changing the EXTENSION_DIR in scripts/openpose_editor.py
EXTENSION_DIR = "/home/ubuntu/stable-diffusion-webui/extensions/sd-webui-openpose-editor"
DIST_DIR = f"{EXTENSION_DIR}/dist"
Probably caused by my vlad webui's and extensions' directories being different and "extensions/sd-webui-openpose-editor" got searched in vlad webui root.
Switched to get extension dir from WebUI.
EXTENSION_DIR = scripts.basedir()
DIST_DIR = os.path.join(EXTENSION_DIR, 'dist')
I probably should have done this from the very beginning.
Did you changed anything else?
│
│ 23 │
│ ❱ 24 EXTENSION_DIR = scripts.basedir() │
│ 25 DIST_DIR = os.path.join(EXTENSION_DIR, 'dist') │
╰──────────────────────────────────────────────────────────────────────────────╯
NameError: name 'scripts' is not defined
Did you changed anything else?
│ │ 23 │ │ ❱ 24 EXTENSION_DIR = scripts.basedir() │ │ 25 DIST_DIR = os.path.join(EXTENSION_DIR, 'dist') │ ╰──────────────────────────────────────────────────────────────────────────────╯ NameError: name 'scripts' is not defined
The issue is fixed on the main branch. You just need to update to the most recent version. Scripts is imported from modules namespace.
Is there an existing issue for this?
What happened?
I am not sure if this is caused by extention or the webui fork but I couldnt manage to get it work. The way I use Vlad's forks is point it to my previous a1111 installation to get models, extensions, scripts etc. This also can be another reason for the error, combined with some other issues, i dont know.
Steps to reproduce the problem
What should have happened?
Well.. It should've work 😄
Commit where the problem happens
What browsers do you use to access the UI ?
No response
Command Line Arguments
Console logs
Browser logs
Additional information