edenartlab / eden_comfy_pipelines

A collection of custom nodes and workflows for ComfyUI
50 stars 10 forks source link

general_utils.py error, cant load clip model path #9

Closed stanleyftf1005 closed 3 months ago

stanleyftf1005 commented 3 months ago

I've tried many times installing and uninstalling. Still getting the same error over and over again.

Error Log:

!!! Exception during processing!!! expected str, bytes or os.PathLike object, not NoneType 6/13/2024, 12:26:01 AM Traceback (most recent call last): 6/13/2024, 12:26:01 AM File "/comfyui/execution.py", line 151, in recursive_execute 6/13/2024, 12:26:01 AM output_data, output_ui = get_output_data(obj, input_data_all) 6/13/2024, 12:26:01 AM ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6/13/2024, 12:26:01 AM File "/comfyui/execution.py", line 81, in get_output_data 6/13/2024, 12:26:01 AM return_values = map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True) 6/13/2024, 12:26:01 AM ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6/13/2024, 12:26:01 AM File "/comfyui/execution.py", line 74, in map_node_over_list 6/13/2024, 12:26:01 AM results.append(getattr(obj, func)(**slice_dict(input_data_all, i))) 6/13/2024, 12:26:01 AM ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6/13/2024, 12:26:01 AM File "/comfyui/custom_nodes/eden_comfy_pipelines/clip_utils/clip_tools.py", line 66, in interrogate 6/13/2024, 12:26:01 AM clip_model_dir = os.path.join(find_comfy_models_dir(), "clip") 6/13/2024, 12:26:01 AM ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 6/13/2024, 12:26:01 AM File "", line 76, in join 6/13/2024, 12:26:01 AM TypeError: expected str, bytes or os.PathLike object, not NoneType

I've made sure that /ComfyUI/models path is available and even manually added /clip and placed the weight into it. Still not working please help

stanleyftf1005 commented 3 months ago

I've figured out the error. The comfyui I'm running has a path name of lower case letters: /comfyui/models

That's why the general_utils.py failed to run. All good now thanks for the amazing node!