ltdrdata/ComfyUI-Impact-Pack

(IMPORT FAILED): D:\Ai\换脸\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Impact-Pack

Closed this issue · 2 comments

[Impact Pack] Failed to import due to several dependencies are missing!!!!
Traceback (most recent call last):
File "D:\Ai\ComfyUI_windows_portable\ComfyUI\nodes.py", line 2001, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 995, in exec_module
File "", line 488, in call_with_frames_removed
File "D:\Ai\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Impact-Pack_init
.py", line 53, in
raise e
File "D:\Ai\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Impact-Pack_init_.py", line 31, in
import impact.subpack_nodes # This import must be done before cv2.
^^^^^^^^^^^^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'impact.subpack_nodes'

Cannot import D:\Ai\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Impact-Pack module for custom nodes: No module named 'impact.subpack_nodes'

same issue

This is an issue that occurs due to having multiple versions of opencv installed.
Update all packages starting with opencv listed in pip freeze to their latest versions.

This issue typically occurs when installing certain custom nodes that downgrade dependencies to lower versions.