Kosinkadink / ComfyUI-VideoHelperSuite

Nodes related to video workflows
GNU General Public License v3.0
583 stars 100 forks source link

ModuleNotFoundError: No module named 'cv2' #62

Open NOeSIS-yu opened 11 months ago

NOeSIS-yu commented 11 months ago
屏幕截图 2023-11-16 000958

Traceback (most recent call last): File "E:\comfyui\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1735, in load_custom_node module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed File "E:\comfyui\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-VideoHelperSuite__init__.py", line 1, in from .videohelpersuite.nodes import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS File "E:\comfyui\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-VideoHelperSuite\videohelpersuite\nodes.py", line 14, in from .load_video_nodes import LoadVideoUpload, LoadVideoPath File "E:\comfyui\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-VideoHelperSuite\videohelpersuite\load_video_nodes.py", line 5, in import cv2 ModuleNotFoundError: No module named 'cv2'

Cannot import E:\comfyui\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-VideoHelperSuite module for custom nodes: No module named 'cv2' Traceback (most recent call last): File "E:\comfyui\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1735, in load_custom_node module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in _call_with_frames_removed

ThinkdEV9 commented 10 months ago

&"python_embeded\python.exe" "python_embeded\get-pip.py" install opencv-python and imageio_ffmpeg from powershell

Xorba001 commented 8 months ago

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.