stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

[Bug]: a lot of No module named 'scripts.xxx'

Open sipie800 opened this issue 1 year ago • 2 comments

Checklist

  • [ ] The issue exists after disabling all extensions
  • [ ] The issue exists on a clean installation of webui
  • [ ] The issue is caused by an extension, but I believe it is caused by a bug in the webui
  • [ ] The issue exists in the current version of the webui
  • [ ] The issue has not been reported before recently
  • [ ] The issue has been reported before but has not been fixed yet

What happened?

when launching, a lot of similar error happen in extensions. They share the same pattern, for example, controlnet extension, we have

....../sd-webui-controlnet\internal_controlnet\args.py", line 12, in from scripts.enums import ( ModuleNotFoundError: No module named 'scripts.enums'

and as long as an extension use from scripts.xxx import yyy, error happens.

Steps to reproduce the problem

None

What should have happened?

None

What browsers do you use to access the UI ?

No response

Sysinfo

None

Console logs

None

Additional information

No response

sipie800 avatar Jul 14 '24 10:07 sipie800

How are you launching the Webui?

No module named 'scripts.enums'

Looks like working directory issue

Haoming02 avatar Jul 16 '24 06:07 Haoming02

@sipie800 I met totally same issue and found out some manually installed package (from local dir or github repo) who have "scripts" folder in it will cause this issue. I guess you may want to clean your venv and restart your webui

KohakuBlueleaf avatar Oct 19 '24 11:10 KohakuBlueleaf