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
Apache License 2.0
308 stars 24 forks source link

python version 3.9 don't work anymore #15

Closed davedaverave closed 5 months ago

davedaverave commented 5 months ago

Since two or three days i can't no longer use this addon.. unfortunatly.. it worked before but now ask me to install those packages that are not available in 3.9 ...

Installing collected packages: llama-cpp-python Successfully installed llama-cpp-python-0.2.26+cu121 WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv Missing or outdated packages: llama-cpp-agent, mkdocs, mkdocs-material, mkdocstrings[python], docstring-parser Installing/Updating missing packages... ERROR: Ignored the following versions that require a different python version: 0.0.1 Requires-Python >=3.10; 0.0.10 Requires-Python >=3.10; 0.0.11 Requires-Python >=3.10; 0.0.12 Requires-Python >=3.10; 0.0.13 Requires-Python >=3.10; 0.0.14 Requires-Python >=3.10; 0.0.15 Requires-Python >=3.10; 0.0.16 Requires-Python >=3.10; 0.0.17 Requires-Python >=3.10; 0.0.2 Requires-Python >=3.10; 0.0.3 Requires-Python >=3.10; 0.0.4 Requires-Python >=3.10; 0.0.5 Requires-Python >=3.10; 0.0.6 Requires-Python >=3.10; 0.0.7 Requires-Python >=3.10; 0.0.8 Requires-Python >=3.10; 0.0.9 Requires-Python >=3.10 ERROR: Could not find a version that satisfies the requirement llama-cpp-agent (from versions: none) ERROR: No matching distribution found for llama-cpp-agent Traceback (most recent call last): File "/notebooks/ComfyUI/nodes.py", line 1893, in load_custom_node module_spec.loader.exec_module(module) File "", line 850, in exec_module File "", line 228, in _call_with_frames_removed File "/notebooks/ComfyUI/custom_nodes/ComfyUI_VLM_nodes/init.py", line 32, in check_requirements_installed(llama_cpp_agent_path) File "/notebooks/ComfyUI/custom_nodes/ComfyUI_VLM_nodes/init.py", line 22, in check_requirements_installed subprocess.check_call([sys.executable, '-m', 'pip', 'install', *missing_packages]) File "/usr/lib/python3.9/subprocess.py", line 373, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['/usr/local/bin/python', '-m', 'pip', 'install', 'llama-cpp-agent', 'mkdocs', 'mkdocs-material', 'mkdocstrings[python]', 'docstring-parser']' returned non-zero exit status 1.

gokayfem commented 5 months ago

i might move from llama-cpp-agent to Instructor but it will be very slow progress. Since Instructor support just added to llama-cpp-python 2-3 days ago.

https://jxnl.github.io/instructor/installation/ image

i think even instructor might not work

davedaverave commented 5 months ago

Wow that's unfortunate...thanks anyway! is there a way to use at least joytag? i mean is there a code i could remove or add for that? that at least worked for me three or four days ago ahah

gokayfem commented 5 months ago

https://github.com/gokayfem/ComfyUI_VLM_nodes/tree/9b3111cea47825d5d8126f822334253bd769a1f4

this older version doesnt have llama-cpp-agent dependencies. just joytag and llavaloader, llm loader etc..

download it to your custom_nodes folder

davedaverave commented 5 months ago

God bless you! 🥲