sd-dynamic-prompts: Error loading script: dynamic_prompting.py

I don’t understand why the script is not working for me.

Error loading script: dynamic_prompting.py Traceback (most recent call last): File "~~~/stable-diffusion-webui/modules/scripts.py", line 159, 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

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 17 (7 by maintainers)

Most upvoted comments

I updated to 3.10, then decided to install SD on a new drive, but for some reason it doesn’t see the new path. I’m installing Python 3.11. If it doesn’t work then I’ll delete everything in the drive and start from scratch “After” 3.11 is running perfectly. I’ll let you know what happened.

0.13.7 on the main branch should now work

have a look at your env folder, looks like by default it is venv, python3.8 might be setup there. If that’s the case, then perhaps delete it (or rename it just in case) and reinstall. It may be that the virtual environment was set up with 3.8 and then you changed to 3.10.

got it - you’re using python 3.8. Are you able to upgrade? If not, I’ll fix it, but 3.9 makes the syntax a little nicer