facechain icon indicating copy to clipboard operation
facechain copied to clipboard

Won't create tab | Error executing callback ui_tabs_callback

Open Trestantin opened this issue 2 years ago • 3 comments

Hello,

I have this error, i think something with char coding. I've tried to solve it:

  • checked the coding of style.css (UTF-8)
  • tried to add this: with open('style.css', 'r', encoding='utf-8') as css_file: self.css = css_file.read()

• version: [v1.6.0-2-g4afaaf8a] •  python: 3.10.11   •  torch: 2.0.1+cu118   •  xformers: 0.0.20   •  gradio: 3.41.2

*** Error executing callback ui_tabs_callback for E:\AI_generate\stable-diffusion-webui\extensions\facechain\scripts\facechain_sdwebui.py Traceback (most recent call last): File "E:\AI_generate\stable-diffusion-webui\modules\script_callbacks.py", line 166, in ui_tabs_callback res += c.callback() or [] File "E:\AI_generate\stable-diffusion-webui\extensions\facechain\scripts\facechain_sdwebui.py", line 15, in on_ui_tabs import app File "E:\AI_generate\stable-diffusion-webui\extensions\facechain\app.py", line 1434, in with gr.Blocks(css='style.css') as demo: File "E:\AI_generate\stable-diffusion-webui\venv\lib\site-packages\gradio\blocks.py", line 711, in init self.css = css_file.read() File "C:\Program Files\Python310\lib\encodings\cp1250.py", line 23, in decode return codecs.charmap_decode(input,self.errors,decoding_table)[0] UnicodeDecodeError: 'charmap' codec can't decode byte 0x88 in position 17114: character maps to

Trestantin avatar Nov 09 '23 13:11 Trestantin

Go to Control Panel -> Region -> Change system locale... -> check Beta: Use Unicode UTF-8 for worldwide language support -> click Ok -> reboot Windows. I suppose the error is because of the Chinese text, but it works for me after I checked that box. image

bboylalu avatar Feb 09 '24 12:02 bboylalu

Go to Control Panel -> Region -> Change system locale... -> check Beta: Use Unicode UTF-8 for worldwide language support -> click Ok -> reboot Windows. I suppose the error is because of the Chinese text, but it works for me after I checked that box.转到控制面板 -> 区域 -> 更改系统区域设置... ->检查 Beta:使用 Unicode UTF-8 获得全球语言支持 ->单击确定 ->重新启动 Windows。我想这个错误是因为中文文本,但在我选中该框后它对我有用。 image

非常好方法,爱来自瓷器

xys123 avatar Apr 25 '24 02:04 xys123

Go to Control Panel -> Region -> Change system locale... -> check Beta: Use Unicode UTF-8 for worldwide language support -> click Ok -> reboot Windows. I suppose the error is because of the Chinese text, but it works for me after I checked that box. image

Thank you very much. Work for me!

Jane8899 avatar May 20 '24 19:05 Jane8899

please try out the newest train-free, 10s inference version facechain-fact.

sunbaigui avatar Jun 04 '24 09:06 sunbaigui