sd-dynamic-prompts icon indicating copy to clipboard operation
sd-dynamic-prompts copied to clipboard

Error running process for Magic Prompt

Open bkev opened this issue 1 year ago • 0 comments

Hi, Love this extension! It seems to work for me when I use variables in {} but if I try and turn on "Prompt Magic" it fails.

The first time I click it, the extension does indeed download the files required, but when I try to use it I get an error

*** Error running process: \path\to\ForgeUI\webui\extensions\sd-dynamic-prompts\scripts\dynamic_prompting.py Traceback (most recent call last): File "\path\to\ForgeUI\webui\modules\scripts.py", line 844, in process script.process(p, *script_args) File "\path\to\ForgeUI\webui\extensions\sd-dynamic-prompts\sd_dynamic_prompts\dynamic_prompting.py", line 480, in process all_prompts, all_negative_prompts = generate_prompts( File "\path\to\ForgeUI\webui\extensions\sd-dynamic-prompts\sd_dynamic_prompts\helpers.py", line 93, in generate_prompts all_prompts = prompt_generator.generate(prompt, num_prompts, seeds=seeds) or [""] File "\path\to\ForgeUI\system\python\lib\site-packages\dynamicprompts\generators\magicprompt.py", line 167, in generate prompts = self._prompt_generator.generate(*args, **kwargs) File "\path\to\ForgeUI\system\python\lib\site-packages\dynamicprompts\generators\randomprompt.py", line 71, in generate prompts.append(str(next(iter(gen)))) StopIteration

The Dynamic Prompts extension and library are the latest versions and if I run /path/to/python/binary/python -m pip install -U dynamicprompts[attentiongrabber,magicprompt] as the troubleshooting says it seems to think everything is ok.

I'm a little confused, could you offer any help for me please?

bkev avatar Aug 23 '24 14:08 bkev