InvokeAI icon indicating copy to clipboard operation
InvokeAI copied to clipboard

[bug]: Pyparsing throws error

Open philflav opened this issue 3 years ago • 0 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

OS

Windows

GPU

cuda

VRAM

No response

What happened?

Pressing invoke from the UI throws an error

AttributeError: module 'pyparsing' has no attribute 'one_of'

Screenshots

Traceback (most recent call last): File "d:\stablediffusion\invokeai\backend\invoke_ai_web_server.py", line 1117, in generate_images self.generate.prompt2image( File "d:\stablediffusion\invokeai\ldm\generate.py", line 456, in prompt2image uc, c, extra_conditioning_info = get_uc_and_c_and_ec( File "d:\stablediffusion\invokeai\ldm\invoke\conditioning.py", line 39, in get_uc_and_c_and_ec pp = PromptParser() File "d:\stablediffusion\invokeai\ldm\invoke\prompt_parser.py", line 260, in init self.conjunction, self.prompt = build_parser_syntax(attention_plus_base, attention_minus_base) File "d:\stablediffusion\invokeai\ldm\invoke\prompt_parser.py", line 464, in build_parser_syntax pp.one_of(['-', '+']) + pp.NotAny(pp.White() | pp.Char(syntactic_chars) | pp.StringEnd()), AttributeError: module 'pyparsing' has no attribute 'one_of'

Additional context

Some functions appear to have been deprecaterd in pyparsing 3.x.

Contact Details

[email protected]

philflav avatar Dec 10 '22 09:12 philflav