WASasquatch / was-node-suite-comfyui

An extensive node suite for ComfyUI with over 210 new nodes
MIT License
1.22k stars 177 forks source link

wildcard confusion #439

Open drmbt opened 4 months ago

drmbt commented 4 months ago

perhaps i'm missing something as to how Text Parse Noodle Soup Prompt node wants to get custom wildcards, but I tried standard txt file one line per wildcard, and NSP style json and either way if set to Wildcard mode, TPSNP returns this error

Error occurred when executing Text Parse Noodle Soup Prompts:

'utf-8' codec can't decode byte 0xed in position 10: invalid continuation byte

File "A:\AI\StabilityMatrix-win-x64\Data\Packages\ComfyUI-clean\execution.py", line 151, in recursive_execute
output_data, output_ui = get_output_data(obj, input_data_all)
File "A:\AI\StabilityMatrix-win-x64\Data\Packages\ComfyUI-clean\execution.py", line 81, in get_output_data
return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True)
File "A:\AI\StabilityMatrix-win-x64\Data\Packages\ComfyUI-clean\execution.py", line 74, in map_node_over_list
results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))
File "A:\AI\StabilityMatrix-win-x64\Data\Packages\ComfyUI-clean\custom_nodes\was-node-suite-comfyui\WAS_Node_Suite.py", line 10601, in text_parse_nsp
new_text = replace_wildcards(text, (None if seed == 0 else seed), noodle_key)
File "A:\AI\StabilityMatrix-win-x64\Data\Packages\ComfyUI-clean\custom_nodes\was-node-suite-comfyui\WAS_Node_Suite.py", line 550, in replace_wildcards
lines = file.readlines()
File "codecs.py", line 322, in decode
WASasquatch commented 4 months ago

Sounds like the files you're saving are not in UTF-8 format. Try using Notepad++ to open them, and ensure the encoding is UTF-8.

On Sun, Jul 14, 2024 at 7:24 AM Vincent Naples @.***> wrote:

perhaps i'm missing something as to how Text Parse Noodle Soup Prompt node wants to get custom wildcards, but I tried standard txt file one line per wildcard, and NSP style json and either way if set to Wildcard mode, TPSNP returns this error

Error occurred when executing Text Parse Noodle Soup Prompts:

'utf-8' codec can't decode byte 0xed in position 10: invalid continuation byte

File "A:\AI\StabilityMatrix-win-x64\Data\Packages\ComfyUI-clean\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "A:\AI\StabilityMatrix-win-x64\Data\Packages\ComfyUI-clean\execution.py", line 81, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "A:\AI\StabilityMatrix-win-x64\Data\Packages\ComfyUI-clean\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) File "A:\AI\StabilityMatrix-win-x64\Data\Packages\ComfyUI-clean\custom_nodes\was-node-suite-comfyui\WAS_Node_Suite.py", line 10601, in text_parse_nsp new_text = replace_wildcards(text, (None if seed == 0 else seed), noodle_key) File "A:\AI\StabilityMatrix-win-x64\Data\Packages\ComfyUI-clean\custom_nodes\was-node-suite-comfyui\WAS_Node_Suite.py", line 550, in replace_wildcards lines = file.readlines() File "codecs.py", line 322, in decode

— Reply to this email directly, view it on GitHub https://github.com/WASasquatch/was-node-suite-comfyui/issues/439, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIZEZMOLSRO6VZCLZTSTJLZMKC2FAVCNFSM6AAAAABK3G4Z56VHI2DSMVQWIX3LMV43ASLTON2WKOZSGQYDONBVG42TKMA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

-- Sincerely, Jordan S. C. Thompson

drmbt commented 4 months ago

they're all UTF-8, here's an example of a file that returns this error

artist.txt