lks-ai / anynode

A Node for ComfyUI that does what you ask it to do
MIT License
501 stars 32 forks source link

!!! Exception during processing !!! Expected metadata value to be a str, int, float or bool, got None which is a NoneType #43

Open DoctorWater opened 3 months ago

DoctorWater commented 3 months ago

!!! Exception during processing !!! Expected metadata value to be a str, int, float or bool, got None which is a NoneType Traceback (most recent call last): File "E:\ComfyUI_windows_portable\ComfyUI\execution.py", line 316, in execute output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI_windows_portable\ComfyUI\execution.py", line 191, in get_output_data return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI_windows_portable\ComfyUI\execution.py", line 168, in _map_node_over_list process_inputs(input_dict, i) File "E:\ComfyUI_windows_portable\ComfyUI\execution.py", line 157, in process_inputs results.append(getattr(obj, func)(**inputs)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\anynode\nodes\any.py", line 414, in go self.last_hash = registry.add_function(prompt, self.script, self.imports, self.last_comment, [variable_info(any), variable_info(any2)]) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\anynode\nodes\util_functions.py", line 57, in add_function self.add_function_to_chromadb(prompt_hash, prompt, function_code, imports, comment, input_types) File "E:\ComfyUI_windows_portable\ComfyUI\custom_nodes\anynode\nodes\util_functions.py", line 86, in add_function_to_chromadb collection.add( File "E:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\chromadb\api\models\Collection.py", line 80, in add ) = self._validate_and_prepare_embedding_set( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\chromadb\api\models\CollectionCommon.py", line 271, in _validate_and_prepare_embedding_set ) = self._validate_embedding_set( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\chromadb\api\models\CollectionCommon.py", line 182, in _validate_embedding_set validate_metadatas(maybe_cast_one_to_many_metadata(metadatas)) File "E:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\chromadb\api\types.py", line 336, in validate_metadatas validate_metadata(metadata) File "E:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\chromadb\api\types.py", line 302, in validate_metadata raise ValueError( ValueError: Expected metadata value to be a str, int, float or bool, got None which is a NoneType