stable-diffusion-webui
stable-diffusion-webui copied to clipboard
[Bug]: Many scripts cannot be loaded.
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What happened?
I updated webui. Then for some reason webui stopped loading many scripts. Currently only these three are shown
Then I added a script for "dynamic prompts" and this one gives me an error.
Error loading script: dynamic_prompting.py
Traceback (most recent call last):
File "~~~/stable-diffusion-webui/modules/scripts.py", line 168, in load_scripts
exec(compiled, module.__dict__)
File "~~~/stable-diffusion-webui/scripts/dynamic_prompting.py", line 52, in <module>
class WildcardManager:
File "~~~/stable-diffusion-webui/scripts/dynamic_prompting.py", line 65, in WildcardManager
def get_files(self, relative:bool=False) -> list[Path]:
TypeError: 'type' object is not subscriptable
Steps to reproduce the problem
- Go to ....
- Press ....
- ...
What should have happened?
All scripts will be loaded.
Commit where the problem happens
e7254746bbfbff45099db44a8d4d25dd6181877d
What platforms do you use to access UI ?
Other/Cloud
What browsers do you use to access the UI ?
Google Chrome
Command Line Arguments
No response
Additional information, context and logs
No response
the list[Path]
error implies you're on an old version of python prior to [3.6?] with the old type specification conventions.
Please confirm your current python version and upgrade to 3.11 if needed.
Just a heads up - updating to Python 3.11 will require torch 1.13.0, which might be responsible for #3878