Closed DivanoDova closed 8 months ago
I think this is caused because you have an old version of the lark library (lower than 1.1.6) in your SD installation.
Can you check which one do you have? You need to activate the SD venv in a command prompt window (.\venv\Scripts\activate.bat
or similar) and then run pip show lark
.
But I will change the grammar in the next version so it doesn't give this problem.
If you do have an old version, you can probably fix the problem by updating manually the lark library or just resetting the venv folder.
I was using lark v1.1.2 now i updated to 1.1.9 and still the same issue occurs
Is it exactly the same error?
I just released a new version. I hope it fixes the problem.
Don't know what you did but it look like it now works as intented, no error log and the negatives tags are now in negative prompts :)
When i try to use the extension i have this issue with the latest version.
Everything worked well using v2.1.5
* Error running process: C:\amd_sd\stable-diffusion-webui-directml\extensions\sd-webui-prompt-postprocessor\scripts\ppp_script.py Traceback (most recent call last): File "C:\amd_sd\stable-diffusion-webui-directml\venv\lib\site-packages\lark\load_grammar.py", line 961, in _parse_grammar tree = _get_parser().parse(text + '\n', start) File "C:\amd_sd\stable-diffusion-webui-directml\venv\lib\site-packages\lark\parser_frontends.py", line 96, in parse return self.parser.parse(stream, chosen_start, kw) File "C:\amd_sd\stable-diffusion-webui-directml\venv\lib\site-packages\lark\parsers\lalr_parser.py", line 41, in parse return self.parser.parse(lexer, start) File "C:\amd_sd\stable-diffusion-webui-directml\venv\lib\site-packages\lark\parsers\lalr_parser.py", line 171, in parse return self.parse_from_state(parser_state) File "C:\amd_sd\stable-diffusion-webui-directml\venv\lib\site-packages\lark\parsers\lalr_parser.py", line 188, in parse_from_state raise e File "C:\amd_sd\stable-diffusion-webui-directml\venv\lib\site-packages\lark\parsers\lalr_parser.py", line 178, in parse_from_state for token in state.lexer.lex(state): File "C:\amd_sd\stable-diffusion-webui-directml\venv\lib\site-packages\lark\lexer.py", line 456, in lex yield self.next_token(state, parser_state) File "C:\amd_sd\stable-diffusion-webui-directml\venv\lib\site-packages\lark\lexer.py", line 466, in next_token raise UnexpectedCharacters(lex_state.text, line_ctr.char_pos, line_ctr.line, line_ctr.column, lark.exceptions.UnexpectedCharacters: No terminal matches '#' in the current parser context, at line 7 col 32