adieyal / comfyui-dynamicprompts

ComfyUI custom nodes for Dynamic Prompts
MIT License
187 stars 20 forks source link

Cannot import ComfyUI_node_Lilly module for custom nodes: 'gbk' codec can't encode character '\u2771' #5

Closed whmc76 closed 10 months ago

whmc76 commented 10 months ago

this is the log when i start up comfyui. could you help fix this? i'm really need a wildcard node for many workflow.many thx.

E:\ComfyUI_windows_portable>.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build ** ComfyUI start up time: 2023-08-08 13:44:04.500512

Prestartup times for custom nodes: 0.0 seconds: E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager

Total VRAM 24564 MB, total RAM 32525 MB xformers version: 0.0.20 Set vram state to: NORMAL_VRAM Device: cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync Using xformers cross attention Adding extra search path checkpoints E:/sd-webui-aki-v4.2/models/Stable-diffusion Adding extra search path configs E:/sd-webui-aki-v4.2/models/Stable-diffusion Adding extra search path vae E:/sd-webui-aki-v4.2/models/VAE Adding extra search path loras E:/sd-webui-aki-v4.2/models/Lora Adding extra search path loras E:/sd-webui-aki-v4.2/models/LyCORIS Adding extra search path upscale_models E:/sd-webui-aki-v4.2/models/ESRGAN Adding extra search path upscale_models E:/sd-webui-aki-v4.2/models/RealESRGAN Adding extra search path upscale_models E:/sd-webui-aki-v4.2/models/SwinIR Adding extra search path embeddings E:/sd-webui-aki-v4.2/embeddings Adding extra search path hypernetworks E:/sd-webui-aki-v4.2/models/hypernetworks Adding extra search path controlnet E:/sd-webui-aki-v4.2/models/ControlNet

Loading: ComfyUI-Impact-Pack (V3.12.1)

Loading: ComfyUI-Impact-Pack (Subpack: V0.2)

Loading: ComfyUI-Manager (V0.21)

ComfyUI Revision: 1265 [1f0f4cc0]

Comfyroll Custom Nodes: Loaded name : ComfyUI_node_Lilly file : E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_node_Lilly__init.py os.path.basename(file) : init.py os.path.splitext(os.path.basename(file))[0] : init working directory : E:\ComfyUI_windows_portable ───────────────────────────────────────────────────── init start ─────────────────────────────────────────────────────name : custom_nodes.ComfyUI_node_Lilly file : E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_node_Lilly__init.py os.path.basename(file) : init.py os.path.splitext(os.path.basename(file))[0] : init working directory : E:\ComfyUI_windows_portable [13:44:13] Load ok : CheckpointLoaderRandom init.py:83[13:44:13] os.path.basename(file) : mypath.py mypath.py:29 os.path.abspath(file__) : mypath.py:32 E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_node_Lilly\mypath.py os.path.abspath(file) : mypath.py:35 E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_node_Lilly\mypath.py os.path.normpath(file) : mypath.py:38 E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_node_Lilly\mypath.py os.path.dirname(normpath) : E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_node_Lilly mypath.py:41 os.path.basename(normpath) : mypath.py mypath.py:44 os.path.abspath(sys.modules['main'].file) : E:\ComfyUI_windows_portable\ComfyUI\main.py mypath.py:47 os.path.dirname(mainFile) : E:\ComfyUI_windows_portable\ComfyUI mypath.py:49 Load ok : CheckpointLoaderSimpleText init.py:83 wildcards card_path : wildcards.py:36 E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_node_Lilly....\wildcards*\.txt Traceback (most recent call last): File "E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_node_Lilly\init.py", line 74, in add exec(f"import {md}{name}") File "", line 1, in File "E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_node_Lilly\CLIPTextEncodeWildcards.py", line 10, in from .wildcards import wildcards File "E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_node_Lilly\wildcards.py", line 218, in print("wildcards test : "+wildcards.run("aest__")) File "E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_node_Lilly\wildcards.py", line 197, in run wildcards.card_load() File "E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_node_Lilly\wildcards.py", line 177, in card_load lines = f.readlines() File "encodings\cp1254.py", line 23, in decode UnicodeDecodeError: 'charmap' codec can't decode byte 0x8d in position 55: character maps to

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "E:\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1647, in load_custom_node module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_node_Lilly__init.py", line 91, in add("CLIPTextEncodeWildcards",["CLIPTextEncodeWildcards","CLIPTextEncodeWildcards2","CLIPTextEncodeWildcards3"]) File "E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_node_Lilly__init__.py", line 85, in add console.print_exception() File "E:\ComfyUI_windows_portable\python_embeded\lib\site-packages\rich\console.py", line 1870, in print_exception self.print(traceback) File "E:\ComfyUI_windows_portable\python_embeded\lib\site-packages\rich\console.py", line 1672, in print with self: File "E:\ComfyUI_windows_portable\python_embeded\lib\site-packages\rich\console.py", line 864, in exit__ self._exit_buffer() File "E:\ComfyUI_windows_portable\python_embeded\lib\site-packages\rich\console.py", line 822, in _exit_buffer self._check_buffer() File "E:\ComfyUI_windows_portable\python_embeded\lib\site-packages\rich\console.py", line 2039, in _check_buffer write(text) File "E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager\prestartup_script.py", line 22, in write self.file.write(message) UnicodeEncodeError: 'gbk' codec can't encode character '\u2771' in position 614: illegal multibyte sequence You may need to add PYTHONIOENCODING=utf-8 to your environment

Cannot import E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_node_Lilly module for custom nodes: 'gbk' codec can't encode character '\u2771' in position 614: illegal multibyte sequence You may need to add PYTHONIOENCODING=utf-8 to your environment Total VRAM 24564 MB, total RAM 32525 MB xformers version: 0.0.20 Set vram state to: NORMAL_VRAM Device: cuda:0 NVIDIA GeForce RTX 4090 : cudaMallocAsync

whmc76 commented 10 months ago

sorry it's other node's issue hh