ComfyUI_VLM_nodes icon indicating copy to clipboard operation
ComfyUI_VLM_nodes copied to clipboard

IMPORT FAILED in ComfyUI

Open aifuzz59 opened this issue 1 year ago • 2 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?

aifuzz59 avatar Apr 18 '24 20:04 aifuzz59

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

gokayfem avatar Apr 20 '24 03:04 gokayfem

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?

ricperry avatar Jun 22 '24 21:06 ricperry