Open qawsqwe opened 7 months ago
Had the same error and solved according to #84 ( run commands list below)
python_embeded\python.exe -m pip uninstall -y opencv-python opencv-contrib-python opencv-python-headless
python_embeded\python.exe -m pip install opencv-python==4.7.0.72
I ran into the same problem and got it fixed. I was seeing numba in WASNode and got to try to resolve this. I found in the WASNode an install.bat file for their module.
What it did, ran the thing, it installed python_embedded stuff.
I restarted the ComfyUI, and the CV2 error was gone !
Had previously installed opencv, ffmpeg, imageioffmpeg to no avail. after running the install for WAS, VHS error red warning was gone and workspace loads just fine.
Hope this helps... somehow ! It's a work around but looking at the WASNode way that it embedded python might shed a light on the issue.
When launching comfyui portable on windows 10 with everything up to date:
C:\Users\보물1호\Desktop\ComfyUI>.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build ComfyUI startup time: 2024-01-24 21:46:32.240884 Platform: Windows Python version: 3.11.6 (tags/v3.11.6:8b6ee5b, Oct 2 2023, 14:57:12) [MSC v.1935 64 bit (AMD64)] Python executable: C:\Users\보물1호\Desktop\ComfyUI\python_embeded\python.exe ** Log path: C:\Users\보물1호\Desktop\ComfyUI\comfyui.log [ComfyUI-Manager] Windows event loop policy mode enabled
Prestartup times for custom nodes: 0.1 seconds: C:\Users\보물1호\Desktop\ComfyUI\ComfyUI\custom_nodes\ComfyUI-Manager
Total VRAM 8192 MB, total RAM 32660 MB Set vram state to: NORMAL_VRAM Device: cuda:0 NVIDIA GeForce RTX 3060 Ti : cudaMallocAsync VAE dtype: torch.bfloat16 Using pytorch cross attention
Loading: ComfyUI-Manager (V2.2.5)
ComfyUI Revision: 1929 [b9911dcb] | Released on '2024-01-23'
FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json Traceback (most recent call last): File "C:\Users\보물1호\Desktop\ComfyUI\ComfyUI\nodes.py", line 1872, in load_custom_node module_spec.loader.exec_module(module) File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "C:\Users\보물1호\Desktop\ComfyUI\ComfyUI\custom_nodes\ComfyUI-VideoHelperSuiteinit.py", line 1, in from .videohelpersuite.nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS File "C:\Users\보물1호\Desktop\ComfyUI\ComfyUI\custom_nodes\ComfyUI-VideoHelperSuite\videohelpersuite\nodes.py", line 15, in from .load_video_nodes import LoadVideoUpload, LoadVideoPath File "C:\Users\보물1호\Desktop\ComfyUI\ComfyUI\custom_nodes\ComfyUI-VideoHelperSuite\videohelpersuite\load_video_nodes.py", line 5, in import cv2 ModuleNotFoundError: No module named 'cv2'
Cannot import C:\Users\보물1호\Desktop\ComfyUI\ComfyUI\custom_nodes\ComfyUI-VideoHelperSuite module for custom nodes: No module named 'cv2' Total VRAM 8192 MB, total RAM 32660 MB Set vram state to: NORMAL_VRAM Device: cuda:0 NVIDIA GeForce RTX 3060 Ti : cudaMallocAsync VAE dtype: torch.bfloat16 Traceback (most recent call last): File "C:\Users\보물1호\Desktop\ComfyUI\ComfyUI\nodes.py", line 1872, in load_custom_node module_spec.loader.exec_module(module) File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "C:\Users\보물1호\Desktop\ComfyUI\ComfyUI\custom_nodes\facerestore_cfinit.py", line 6, in import cv2 ModuleNotFoundError: No module named 'cv2'
Cannot import C:\Users\보물1호\Desktop\ComfyUI\ComfyUI\custom_nodes\facerestore_cf module for custom nodes: No module named 'cv2' Traceback (most recent call last): File "C:\Users\보물1호\Desktop\ComfyUI\ComfyUI\nodes.py", line 1872, in load_custom_node module_spec.loader.exec_module(module) File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "C:\Users\보물1호\Desktop\ComfyUI\ComfyUI\custom_nodes\was-node-suite-comfyuiinit.py", line 1, in from .WAS_Node_Suite import NODE_CLASS_MAPPINGS File "C:\Users\보물1호\Desktop\ComfyUI\ComfyUI\custom_nodes\was-node-suite-comfyui\WAS_Node_Suite.py", line 37, in from numba import jit ModuleNotFoundError: No module named 'numba'
Cannot import C:\Users\보물1호\Desktop\ComfyUI\ComfyUI\custom_nodes\was-node-suite-comfyui module for custom nodes: No module named 'numba'
Import times for custom nodes: 0.0 seconds (IMPORT FAILED): C:\Users\보물1호\Desktop\ComfyUI\ComfyUI\custom_nodes\facerestore_cf 0.0 seconds: C:\Users\보물1호\Desktop\ComfyUI\ComfyUI\custom_nodes\ComfyUI-Frame-Interpolation 0.0 seconds (IMPORT FAILED): C:\Users\보물1호\Desktop\ComfyUI\ComfyUI\custom_nodes\was-node-suite-comfyui 0.0 seconds (IMPORT FAILED): C:\Users\보물1호\Desktop\ComfyUI\ComfyUI\custom_nodes\ComfyUI-VideoHelperSuite 0.4 seconds: C:\Users\보물1호\Desktop\ComfyUI\ComfyUI\custom_nodes\ComfyUI-Manager
Starting server
To see the GUI go to: http://127.0.0.1:8188 [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json FETCH DATA from: C:\Users\보물1호\Desktop\ComfyUI\ComfyUI\custom_nodes\ComfyUI-Manager\extension-node-map.json
The solution I've tried is
- Go to the ComfyUI main folder
- open the requirements.txt file and add opencv-python imageio-ffmpeg
- Save requirements.txt
- Click on update_comfyui_and_python_dependencies.bat
But this didn't solve it either.
Please help me
I update my requirements.txt and worked for me
When launching comfyui portable on windows 10 with everything up to date:
C:\Users\보물1호\Desktop\ComfyUI>.\python_embeded\python.exe -s ComfyUI\main.py --windows-standalone-build ComfyUI startup time: 2024-01-24 21:46:32.240884 Platform: Windows Python version: 3.11.6 (tags/v3.11.6:8b6ee5b, Oct 2 2023, 14:57:12) [MSC v.1935 64 bit (AMD64)] Python executable: C:\Users\보물1호\Desktop\ComfyUI\python_embeded\python.exe ** Log path: C:\Users\보물1호\Desktop\ComfyUI\comfyui.log [ComfyUI-Manager] Windows event loop policy mode enabled
Prestartup times for custom nodes: 0.1 seconds: C:\Users\보물1호\Desktop\ComfyUI\ComfyUI\custom_nodes\ComfyUI-Manager
Total VRAM 8192 MB, total RAM 32660 MB Set vram state to: NORMAL_VRAM Device: cuda:0 NVIDIA GeForce RTX 3060 Ti : cudaMallocAsync VAE dtype: torch.bfloat16 Using pytorch cross attention
Loading: ComfyUI-Manager (V2.2.5)
ComfyUI Revision: 1929 [b9911dcb] | Released on '2024-01-23'
FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json FETCH DATA from: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json Traceback (most recent call last): File "C:\Users\보물1호\Desktop\ComfyUI\ComfyUI\nodes.py", line 1872, in load_custom_node module_spec.loader.exec_module(module) File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "C:\Users\보물1호\Desktop\ComfyUI\ComfyUI\custom_nodes\ComfyUI-VideoHelperSuite__init__.py", line 1, in
from .videohelpersuite.nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS
File "C:\Users\보물1호\Desktop\ComfyUI\ComfyUI\custom_nodes\ComfyUI-VideoHelperSuite\videohelpersuite\nodes.py", line 15, in
from .load_video_nodes import LoadVideoUpload, LoadVideoPath
File "C:\Users\보물1호\Desktop\ComfyUI\ComfyUI\custom_nodes\ComfyUI-VideoHelperSuite\videohelpersuite\load_video_nodes.py", line 5, in
import cv2
ModuleNotFoundError: No module named 'cv2'
Cannot import C:\Users\보물1호\Desktop\ComfyUI\ComfyUI\custom_nodes\ComfyUI-VideoHelperSuite module for custom nodes: No module named 'cv2' Total VRAM 8192 MB, total RAM 32660 MB Set vram state to: NORMAL_VRAM Device: cuda:0 NVIDIA GeForce RTX 3060 Ti : cudaMallocAsync VAE dtype: torch.bfloat16 Traceback (most recent call last): File "C:\Users\보물1호\Desktop\ComfyUI\ComfyUI\nodes.py", line 1872, in load_custom_node module_spec.loader.exec_module(module) File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "C:\Users\보물1호\Desktop\ComfyUI\ComfyUI\custom_nodes\facerestore_cf__init__.py", line 6, in
import cv2
ModuleNotFoundError: No module named 'cv2'
Cannot import C:\Users\보물1호\Desktop\ComfyUI\ComfyUI\custom_nodes\facerestore_cf module for custom nodes: No module named 'cv2' Traceback (most recent call last): File "C:\Users\보물1호\Desktop\ComfyUI\ComfyUI\nodes.py", line 1872, in load_custom_node module_spec.loader.exec_module(module) File "", line 940, in exec_module
File "", line 241, in _call_with_frames_removed
File "C:\Users\보물1호\Desktop\ComfyUI\ComfyUI\custom_nodes\was-node-suite-comfyui__init__.py", line 1, in
from .WAS_Node_Suite import NODE_CLASS_MAPPINGS
File "C:\Users\보물1호\Desktop\ComfyUI\ComfyUI\custom_nodes\was-node-suite-comfyui\WAS_Node_Suite.py", line 37, in
from numba import jit
ModuleNotFoundError: No module named 'numba'
Cannot import C:\Users\보물1호\Desktop\ComfyUI\ComfyUI\custom_nodes\was-node-suite-comfyui module for custom nodes: No module named 'numba'
Import times for custom nodes: 0.0 seconds (IMPORT FAILED): C:\Users\보물1호\Desktop\ComfyUI\ComfyUI\custom_nodes\facerestore_cf 0.0 seconds: C:\Users\보물1호\Desktop\ComfyUI\ComfyUI\custom_nodes\ComfyUI-Frame-Interpolation 0.0 seconds (IMPORT FAILED): C:\Users\보물1호\Desktop\ComfyUI\ComfyUI\custom_nodes\was-node-suite-comfyui 0.0 seconds (IMPORT FAILED): C:\Users\보물1호\Desktop\ComfyUI\ComfyUI\custom_nodes\ComfyUI-VideoHelperSuite 0.4 seconds: C:\Users\보물1호\Desktop\ComfyUI\ComfyUI\custom_nodes\ComfyUI-Manager
Starting server
To see the GUI go to: http://127.0.0.1:8188 [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/alter-list.json [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/model-list.json [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/custom-node-list.json [ComfyUI-Manager] default cache updated: https://raw.githubusercontent.com/ltdrdata/ComfyUI-Manager/main/extension-node-map.json FETCH DATA from: C:\Users\보물1호\Desktop\ComfyUI\ComfyUI\custom_nodes\ComfyUI-Manager\extension-node-map.json
The solution I've tried is
But this didn't solve it either.
Please help me