[GH-ISSUE #225] [Bug] execjs._exceptions.ProgramError: SyntaxError: 语法错误 #191

Closed
opened 2026-11-07 17:42:10 +07:00 by bsakaguchi · 8 comments
Owner

Originally created by @Kuron88 on GitHub (Sep 9, 2023).
Original GitHub issue: https://github.com/Physton/sd-webui-prompt-all-in-one/issues/225

反馈须知

  • 我确认已经在 常见问题 中搜索了此次反馈的问题,没有找到解决方法。
  • 我确认已经在 Issues 列表(包括已经 Close 的)中搜索了此次反馈的问题,没有找到解决方法。
  • 我确认阅读了 文档,没有找到解决方法。

描述问题

Exception in thread Thread-100 (process_keywords):
Traceback (most recent call last):
File "threading.py", line 1016, in _bootstrap_inner
File "threading.py", line 953, in run
File "D:\sd.webui\webui\extensions\sd-webui-prompt-all-in-one\scripts\physton_prompt\slugify.py", line 96, in process_keywords
result = ctx.call('slugifyMulti', keywords)
File "D:\sd.webui\system\python\lib\site-packages\execjs_abstract_runtime_context.py", line 37, in call
return self._call(name, *args)
File "D:\sd.webui\system\python\lib\site-packages\execjs_external_runtime.py", line 92, in _call
return self.eval("{identifier}.apply(this, {args})".format(identifier=identifier, args=args))
File "D:\sd.webui\system\python\lib\site-packages\execjs_external_runtime.py", line 78, in eval
return self.exec
(code)
File "D:\sd.webui\system\python\lib\site-packages\execjs_abstract_runtime_context.py", line 18, in exec

return self.exec(source)
File "D:\sd.webui\system\python\lib\site-packages\execjs_external_runtime.py", line 88, in exec
return self._extract_result(output)
File "D:\sd.webui\system\python\lib\site-packages\execjs_external_runtime.py", line 167, in _extract_result
raise ProgramError(value)
execjs._exceptions.ProgramError: SyntaxError: 语法错误

如何复现

No response

截图或日志

No response

操作系统

Windows

浏览器

Chrome

Stable Diffusion WebUI 版本

1.6

扩展版本

No response

Python 版本

No response

Gradio 版本

No response

Originally created by @Kuron88 on GitHub (Sep 9, 2023). Original GitHub issue: https://github.com/Physton/sd-webui-prompt-all-in-one/issues/225 ### 反馈须知 - [X] 我确认已经在 [常见问题](https://aiodoc.physton.com/zh-CN/FAQ.html) 中搜索了此次反馈的问题,没有找到解决方法。 - [X] 我确认已经在 [Issues](https://github.com/Physton/sd-webui-prompt-all-in-one/issues) 列表(包括已经 Close 的)中搜索了此次反馈的问题,没有找到解决方法。 - [X] 我确认阅读了 [文档](https://aiodoc.physton.com/zh-CN/),没有找到解决方法。 ### 描述问题 Exception in thread Thread-100 (process_keywords): Traceback (most recent call last): File "threading.py", line 1016, in _bootstrap_inner File "threading.py", line 953, in run File "D:\sd.webui\webui\extensions\sd-webui-prompt-all-in-one\scripts\physton_prompt\slugify.py", line 96, in process_keywords result = ctx.call('slugifyMulti', keywords) File "D:\sd.webui\system\python\lib\site-packages\execjs\_abstract_runtime_context.py", line 37, in call return self._call(name, *args) File "D:\sd.webui\system\python\lib\site-packages\execjs\_external_runtime.py", line 92, in _call return self._eval("{identifier}.apply(this, {args})".format(identifier=identifier, args=args)) File "D:\sd.webui\system\python\lib\site-packages\execjs\_external_runtime.py", line 78, in _eval return self.exec_(code) File "D:\sd.webui\system\python\lib\site-packages\execjs\_abstract_runtime_context.py", line 18, in exec_ return self._exec_(source) File "D:\sd.webui\system\python\lib\site-packages\execjs\_external_runtime.py", line 88, in _exec_ return self._extract_result(output) File "D:\sd.webui\system\python\lib\site-packages\execjs\_external_runtime.py", line 167, in _extract_result raise ProgramError(value) execjs._exceptions.ProgramError: SyntaxError: 语法错误 ### 如何复现 _No response_ ### 截图或日志 _No response_ ### 操作系统 Windows ### 浏览器 Chrome ### Stable Diffusion WebUI 版本 1.6 ### 扩展版本 _No response_ ### Python 版本 _No response_ ### Gradio 版本 _No response_
Author
Owner

@Physton commented on GitHub (Sep 9, 2023):

如有有造成插件无法使用,先退回老版本,这个是环境问题,不好马上解决。

<!-- gh-comment-id:1712377694 --> @Physton commented on GitHub (Sep 9, 2023): 如有有造成插件无法使用,先退回老版本,这个是环境问题,不好马上解决。
Author
Owner

@Issues-translate-bot commented on GitHub (Sep 9, 2023):

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


If there is any plug-in that cannot be used, return to the old version first. This is an environmental problem, and it is not easy to solve it immediately.

<!-- gh-comment-id:1712377727 --> @Issues-translate-bot commented on GitHub (Sep 9, 2023): > Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿 ---- If there is any plug-in that cannot be used, return to the old version first. This is an environmental problem, and it is not easy to solve it immediately.
Author
Owner

@cenfun commented on GitHub (Sep 9, 2023):

Traceback (most recent call last):
  File "C:\Users\xxx\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner
    self.run()
  File "C:\Users\xxx\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run
    self._target(*self._args, **self._kwargs)
  File "stable-diffusion-webui\extensions\sd-webui-prompt-all-in-one\scripts\physton_prompt\slugify.py", line 96, in process_keywords
    result = ctx.call('slugifyMulti', keywords)
  File "stable-diffusion-webui\venv\lib\site-packages\execjs\_abstract_runtime_context.py", line 37, in call
    return self._call(name, *args)
  File "stable-diffusion-webui\venv\lib\site-packages\execjs\_external_runtime.py", line 92, in _call
    return self._eval("{identifier}.apply(this, {args})".format(identifier=identifier, args=args))
  File "stable-diffusion-webui\venv\lib\site-packages\execjs\_external_runtime.py", line 78, in _eval
    return self.exec_(code)
  File "stable-diffusion-webui\venv\lib\site-packages\execjs\_abstract_runtime_context.py", line 18, in exec_
    return self._exec_(source)
  File "stable-diffusion-webui\venv\lib\site-packages\execjs\_external_runtime.py", line 87, in _exec_
    output = self._exec_with_pipe(source)
  File "stable-diffusion-webui\venv\lib\site-packages\execjs\_external_runtime.py", line 103, in _exec_with_pipe
    stdoutdata, stderrdata = p.communicate(input=input)
  File "C:\Users\xxx\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 1152, in communicate
    stdout, stderr = self._communicate(input, endtime, timeout)
  File "C:\Users\xxx\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 1520, in _communicate
    self._stdin_write(input)
  File "C:\Users\xxx\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 1086, in _stdin_write
    self.stdin.write(input)
UnicodeEncodeError: 'gbk' codec can't encode character '\u4336' in position 166691: illegal multibyte sequence
<!-- gh-comment-id:1712412426 --> @cenfun commented on GitHub (Sep 9, 2023): ``` Traceback (most recent call last): File "C:\Users\xxx\AppData\Local\Programs\Python\Python310\lib\threading.py", line 1016, in _bootstrap_inner self.run() File "C:\Users\xxx\AppData\Local\Programs\Python\Python310\lib\threading.py", line 953, in run self._target(*self._args, **self._kwargs) File "stable-diffusion-webui\extensions\sd-webui-prompt-all-in-one\scripts\physton_prompt\slugify.py", line 96, in process_keywords result = ctx.call('slugifyMulti', keywords) File "stable-diffusion-webui\venv\lib\site-packages\execjs\_abstract_runtime_context.py", line 37, in call return self._call(name, *args) File "stable-diffusion-webui\venv\lib\site-packages\execjs\_external_runtime.py", line 92, in _call return self._eval("{identifier}.apply(this, {args})".format(identifier=identifier, args=args)) File "stable-diffusion-webui\venv\lib\site-packages\execjs\_external_runtime.py", line 78, in _eval return self.exec_(code) File "stable-diffusion-webui\venv\lib\site-packages\execjs\_abstract_runtime_context.py", line 18, in exec_ return self._exec_(source) File "stable-diffusion-webui\venv\lib\site-packages\execjs\_external_runtime.py", line 87, in _exec_ output = self._exec_with_pipe(source) File "stable-diffusion-webui\venv\lib\site-packages\execjs\_external_runtime.py", line 103, in _exec_with_pipe stdoutdata, stderrdata = p.communicate(input=input) File "C:\Users\xxx\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 1152, in communicate stdout, stderr = self._communicate(input, endtime, timeout) File "C:\Users\xxx\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 1520, in _communicate self._stdin_write(input) File "C:\Users\xxx\AppData\Local\Programs\Python\Python310\lib\subprocess.py", line 1086, in _stdin_write self.stdin.write(input) UnicodeEncodeError: 'gbk' codec can't encode character '\u4336' in position 166691: illegal multibyte sequence ```
Author
Owner

@Physton commented on GitHub (Sep 9, 2023):

@Kuron88 @cenfun
Version: 61f103e9fa
先屏蔽了异常,这个功能暂时无法使用,不影响插件的正常使用。
Blocked the exception for now, this feature is temporarily unavailable but does not affect the normal use of the plugin.

<!-- gh-comment-id:1712417226 --> @Physton commented on GitHub (Sep 9, 2023): @Kuron88 @cenfun Version: 61f103e9faa7fd117e3d148e07429499ca060736 先屏蔽了异常,这个功能暂时无法使用,不影响插件的正常使用。 Blocked the exception for now, this feature is temporarily unavailable but does not affect the normal use of the plugin.
Author
Owner

@Physton commented on GitHub (Sep 10, 2023):

@Kuron88 @cenfun 更新到目前最新版本再看看。

<!-- gh-comment-id:1712846135 --> @Physton commented on GitHub (Sep 10, 2023): @Kuron88 @cenfun 更新到目前最新版本再看看。
Author
Owner

@Issues-translate-bot commented on GitHub (Sep 10, 2023):

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


@Kuron88 @cenfun Update to the latest version and take a look.

<!-- gh-comment-id:1712846168 --> @Issues-translate-bot commented on GitHub (Sep 10, 2023): > Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿 ---- @Kuron88 @cenfun Update to the latest version and take a look.
Author
Owner

@cenfun commented on GitHub (Sep 10, 2023):

确认已经修复

<!-- gh-comment-id:1712848909 --> @cenfun commented on GitHub (Sep 10, 2023): 确认已经修复
Author
Owner

@Issues-translate-bot commented on GitHub (Sep 10, 2023):

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Confirmed it has been repaired

<!-- gh-comment-id:1712848950 --> @Issues-translate-bot commented on GitHub (Sep 10, 2023): > Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿 ---- Confirmed it has been repaired
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Physton/sd-webui-prompt-all-in-one#191
No description provided.