Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: re.error: bad escape \m at position 8 in console #93

Open
2 tasks done
a7in opened this issue Apr 25, 2023 · 1 comment
Open
2 tasks done

[Bug]: re.error: bad escape \m at position 8 in console #93

a7in opened this issue Apr 25, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@a7in
Copy link

a7in commented Apr 25, 2023

Is there existing issue for this?

  • I checked and didn't find similar issue

Does this happen on the latest commit?

  • I have confirmed this happens on the latest commit

What happened?

error after starting, after every generation in console:

Traceback (most recent call last):
 File "D:\SD\stable-diffusion-webui\extensions\sd-webui-stable-horde-worker\stable_horde\horde.py", line 202, in run 
await self.handle_request(req)
 File "D:\SD\stable-diffusion-webui\extensions\sd-webui-stable-horde-worker\stable_horde\horde.py", line 435, in handle_request 
infotext = sub(
 File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\re.py", line 209, in sub 
return _compile(pattern, flags).sub(repl, string, count)
 File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\re.py", line 326, in _subx 
template = _compile_repl(template, pattern)
 File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\re.py", line 317, in _compile_repl 
return sre_parse.parse_template(repl, pattern)
 File "C:\Users\User\AppData\Local\Programs\Python\Python310\lib\sre_parse.py", line 1054, in parse_template
raise s.error('bad escape %s' % this, len(this)) re.error: bad escape \m at position 8

Steps to reproduce

just Enable

What did you expect to happen?

no errors in console and work

Stable Diffusion WebUI Commit SHA

22bcc7be428c94e9408f589966c2040187245d81

What operating system are you seeing the problem on?

Windows 11 / 10 / 8

What browsers are you seeing the problem on?

Chrome

Additional information

I managed to fix it just by commenting out these lines in horde.py:

#        infotext = sub(
#            "Model:(.*?),", "Model: " + local_model.split(".")[0] + ",", infotext
#        )
#        infotext = sub(
#            "Model hash:(.*?),", "Model hash: " + local_model_shorthash + ",", infotext
#        )

after that everything worked

@a7in a7in added the bug Something isn't working label Apr 25, 2023
@theUpsider
Copy link
Contributor

Which python version are you using? And what is the version of your regex module?

@MaikoTan MaikoTan added this to Backlog May 17, 2023
@github-project-automation github-project-automation bot moved this to 🆕 New in Backlog May 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants