WASasquatch / was-node-suite-comfyui

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

WAS_Latent_Input_Switch.latent_input_switch() got an unexpected keyword argument 'boolean_number' #373

Open QueenPuxxi opened 6 months ago

QueenPuxxi commented 6 months ago

Hello, I think I have a problem that I can't solve. I wanted to try a fix like #364 mentioned, but it didn't work for me.

Error occurred when executing Latent Input Switch:

WAS_Latent_Input_Switch.latent_input_switch() got an unexpected keyword argument 'boolean_number'

File "C:\ComfyUI-aki-v1\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) File "C:\ComfyUI-aki-v1\execution.py", line 81, in get_output_data return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) File "C:\ComfyUI-aki-v1\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i)))

1712080840774

QueenPuxxi commented 6 months ago

I use this method:

https://github.com/WASasquatch/was-node-suite-comfyui/pull/365/commits/6b64dc124e333cc73c0b8f9a3fbffad87cfb3cf1

I added kwargs argument in line 12676 to ignore boolean_number arguments passed to the function, but still hope that the author can fix this problem as soon as possible, thank you!

adrian-forest commented 6 months ago

Oh! I use this method:

6b64dc1

As the author of that commit, this is definitely not recommended, so use with great caution! It seems to work for me, but it's very much an "at your own risk" change!