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

[Bug]: Many scripts cannot be loaded.

Open yamkz opened this issue 1 year ago • 2 comments

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

image

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

  1. Go to ....
  2. Press ....
  3. ...

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

yamkz avatar Oct 29 '22 20:10 yamkz

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.

dfaker avatar Oct 29 '22 22:10 dfaker

Just a heads up - updating to Python 3.11 will require torch 1.13.0, which might be responsible for #3878

msoucy avatar Oct 29 '22 23:10 msoucy