lks-ai / anynode

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

"Error occurred when executing AnyNodeLocal: Expected metadata value to be a str, int, float or bool, got None which is a NoneType" #16

Closed yotraxxx closed 5 months ago

yotraxxx commented 5 months ago

Hi,

I want to work with ollama and am trying to use the "local LLM" node. My Ollama server has started and llama3 is running (I can chat with it). My Ollama server runs on the default setting adress.

I get this error in comfy: "Error occurred when executing AnyNodeLocal: Expected metadata value to be a str, int, float or bool, got None which is a NoneType"

I obviously miss something, it's my very first Ollama setup.

Could you drive me on the right path ?

Many thanks for providing us this magical tool (I've seen a lot enthusiast threads and videos about it).

Capture d'écran 2024-06-04 174938

RodgerE1 commented 5 months ago

I'm getting the same error: "Error occurred when executing AnyNodeLocal:

Expected metadata value to be a str, int, float or bool, got None which is a NoneType

File "C:\ComfyUI_windows_portable\ComfyUI\execution.py", line 151, in recursive_execute output_data, output_ui = get_output_data(obj, input_data_all) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ComfyUI_windows_portable\ComfyUI\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_windows_portable\ComfyUI\execution.py", line 74, in map_node_over_list results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\anynode\nodes\any.py", line 402, in go registry.add_function(prompt, self.script, self.imports, self.last_comment, [variable_info(any), variable_info(any2)]) File "C:\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 "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\anynode\nodes\util_functions.py", line 85, in add_function_to_chromadb collection.add( File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\chromadb\api\models\Collection.py", line 146, in add ) = self._validate_embedding_set( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\chromadb\api\models\Collection.py", line 554, in _validate_embedding_set validate_metadatas(maybe_cast_one_to_many_metadata(metadatas)) File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\chromadb\api\types.py", line 316, in validate_metadatas validate_metadata(metadata) File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\chromadb\api\types.py", line 282, in validate_metadata raise ValueError("

lks-ai commented 5 months ago

Fixed.

pookzzz commented 4 months ago

I am encountering this error too, may I know how is this fixed??