Trung0246 / ComfyUI-0246

Random nodes for ComfyUI
MIT License
108 stars 11 forks source link

UnicodeEncodeError: 'gbk' codec can't encode character '\ufe0f' in position 15: illegal multibyte sequence #26

Closed lxingh closed 6 months ago

lxingh commented 6 months ago

Traceback (most recent call last): File "D:\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1888, in load_custom_node module_spec.loader.exec_module(module) File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-0246__init__.py", line 1, in from .nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS File "D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-0246\nodes.py", line 3205, in print("\033[95m" + lib0246.HEAD_LOG + "Loaded all nodes and apis." + "\033[0m") UnicodeEncodeError: 'gbk' codec can't encode character '\ufe0f' in position 15: illegal multibyte sequence Cannot import D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-0246 module for custom nodes: 'gbk' codec can't encode character '\ufe0f' in position 15: illegal multibyte sequence

Trung0246 commented 6 months ago

Uh what terminal you're using (I'm assuming the encoding is chinese since gbk)? Can you force the terminal you're using to unicode?

Also this is unlikely to be bug since other custom nodes did use colored output but I guess mine was caught first on your system configuration.