gokayfem / ComfyUI_VLM_nodes

Custom ComfyUI nodes for Vision Language Models, Large Language Models, Image to Music, Text to Music, Consistent and Random Creative Prompt Generation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

IMPORT FAILED in ComfyUI

aifuzz59 opened this issue · comments

The Import failed for theses nodes

File "", line 940, in exec_module
File "", line 241, in call_with_frames_removed
File "D:\ComfyUI_Training\ComfyUI_windows_portable_nvidia_cu121_or_cpu (4)\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_VLM_nodes_init
.py", line 46, in
check_requirements_installed(llama_cpp_agent_path)
File "D:\ComfyUI_Training\ComfyUI_windows_portable_nvidia_cu121_or_cpu (4)\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_VLM_nodes_init_.py", line 35, in check_requirements_installed
subprocess.check_call([sys.executable, '-s', '-m', 'pip', 'install', *missing_packages])
File "subprocess.py", line 413, in check_call
subprocess.CalledProcessError: Command '['D:\ComfyUI_Training\ComfyUI_windows_portable_nvidia_cu121_or_cpu (4)\ComfyUI_windows_portable\python_embeded\python.exe', '-s', '-m', 'pip', 'install', 'llama-cpp-agent', 'mkdocs', 'mkdocs-material', 'mkdocstrings[python]', 'docstring-parser']' returned non-zero exit status 2.

Cannot import D:\ComfyUI_Training\ComfyUI_windows_portable_nvidia_cu121_or_cpu (4)\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_VLM_nodes module for custom nodes: Command '['D:\ComfyUI_Training\ComfyUI_windows_portable_nvidia_cu121_or_cpu (4)\ComfyUI_windows_portable\python_embeded\python.exe', '-s', '-m', 'pip', 'install', 'llama-cpp-agent', 'mkdocs', 'mkdocs-material', 'mkdocstrings[python]', 'docstring-parser']' returned non-zero exit status 2.

I have updated ComfyUI and it still wont work. Any ideas?

change the llama-cpp-agent version inside cpp_agent_req.txt to llama-cpp-agent==0.0.17

change the llama-cpp-agent version inside cpp_agent_req.txt to llama-cpp-agent==0.0.17

This doesn't work on Linux + ROCm

Is there a way you can hook in to the ollama api?