sipie800 / ComfyUI-PuLID-Flux-Enhanced

Apache License 2.0
79 stars 13 forks source link

IMPORT FAILED - can't load custom node #20

Open fabiomb opened 3 weeks ago

fabiomb commented 3 weeks ago

I have an issue, just installed ComfyUI (latest version), but can't load the node, here is the launch log:

`[START] Security scan [DONE] Security scan

ComfyUI-Manager: installing dependencies done.

ComfyUI startup time: 2024-11-04 11:45:27.327812 Platform: Windows Python version: 3.12.7 (tags/v3.12.7:0b05ead, Oct 1 2024, 03:06:41) [MSC v.1941 64 bit (AMD64)] Python executable: D:\ComfyUI_windows_portable\python_embeded\python.exe ComfyUI Path: D:\ComfyUI_windows_portable\ComfyUI Log path: D:\ComfyUI_windows_portable\comfyui.log

Prestartup times for custom nodes: 1.1 seconds: D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager

Total VRAM 6144 MB, total RAM 40180 MB pytorch version: 2.5.1+cu124 Set vram state to: NORMAL_VRAM Device: cuda:0 NVIDIA GeForce RTX 3060 Laptop GPU : cudaMallocAsync Using pytorch cross attention [Prompt Server] web root: D:\ComfyUI_windows_portable\ComfyUI\web D:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\kornia\feature\lightglue.py:44: FutureWarning: torch.cuda.amp.custom_fwd(args...) is deprecated. Please use torch.amp.custom_fwd(args..., device_type='cuda') instead. @torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)

Loading: ComfyUI-Impact-Pack (V7.10.7)

Loading: ComfyUI-Impact-Pack (Subpack: V0.7)

[Impact Pack] Wildcards loading done.

Loading: ComfyUI-Manager (V2.51.9)

ComfyUI Revision: 2808 [69667290] *DETACHED | Released on '2024-11-04'

Traceback (most recent call last): File "D:\ComfyUI_windows_portable\ComfyUI\nodes.py", line 2012, 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:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-PuLID-Flux-Enhanced__init__.py", line 1, in from .pulidflux import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS File "D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-PuLID-Flux-Enhanced\pulidflux.py", line 11, in from insightface.app import FaceAnalysis ModuleNotFoundError: No module named 'insightface'

Cannot import D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-PuLID-Flux-Enhanced module for custom nodes: No module named 'insightface'

Import times for custom nodes: 0.0 seconds: D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\websocket_image_save.py 0.0 seconds (IMPORT FAILED): D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-PuLID-Flux-Enhanced 0.0 seconds: D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-GGUF 0.0 seconds: D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_essentials 0.4 seconds: D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager 0.6 seconds: D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Impact-Pack

Starting server

To see the GUI go to: http://127.0.0.1:8188`

any ideas? Python version? pip version? this version of comfy, portable v0.2.7, is too new?

sipie800 commented 3 weeks ago

File "D:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-PuLID-Flux-Enhanced\pulidflux.py", line 11, in from insightface.app import FaceAnalysis ModuleNotFoundError: No module named 'insightface'

insightface is a human face library which pulid depends. please install it in your comfy environment.

Grim408 commented 3 weeks ago

Uninstall insightface: python_embeded/python.exe -m pip uninstall insightface

And then follow this tut: https://www.youtube.com/watch?v=vCCVxGtCyho

You need the insightface version cp312 for your python version.