ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

(IMPORT FAILED) ComfyUI-PuLID-Flux-Enhanced

Open nehorayshimoni opened this issue 2 years ago • 37 comments

Your question

Hello, I am experiencing an issue importing the ComfyUI-PuLID-Flux-Enhanced custom node in ComfyUI. I manually downloaded pulid_flux_v0.9.0.safetensors (\ComfyUI_windows_portable\ComfyUI\models\pulid), AntelopeV2 (\ComfyUI\models\insightface\antelopev2), ip-adapter_pulid_sdxl_fp16.safetensors ( \ComfyUI_windows_portable\ComfyUI\models\pulid).

After starting ComfyUI, I receive a "Missing Node Types" error message (see screenshots attached). When I check for Install Missing Custom Nodes using the Manager the option to "Try fix" appears, but it does not resolve the issue.

I have followed all the instructions provided in the setup guide here: ComfyUI Setup Guide

Screenshot 2024-11-02 034833

Screenshot 2024-11-02 034821

Thank you for your assistance!

Logs

No response

Other

No response

nehorayshimoni avatar Nov 02 '24 02:11 nehorayshimoni

I have the same problem!

samanstudio avatar Nov 02 '24 09:11 samanstudio

Logs

Import times for custom nodes: 0.0 seconds: C:\Users\nehoray\Downloads\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\websocket_image_save.py 0.0 seconds: C:\Users\nehoray\Downloads\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\cg-use-everywhere 0.0 seconds (IMPORT FAILED): C:\Users\nehoray\Downloads\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\PuLID_ComfyUI 0.0 seconds (IMPORT FAILED): C:\Users\nehoray\Downloads\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-PuLID-Flux-Enhanced 0.0 seconds (IMPORT FAILED): C:\Users\nehoray\Downloads\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-PuLID-Flux 0.0 seconds: C:\Users\nehoray\Downloads\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfy-image-saver 0.0 seconds: C:\Users\nehoray\Downloads\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_UltimateSDUpscale 0.0 seconds: C:\Users\nehoray\Downloads\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-GGUF 0.0 seconds: C:\Users\nehoray\Downloads\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\rgthree-comfy 0.1 seconds: C:\Users\nehoray\Downloads\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_essentials 0.1 seconds: C:\Users\nehoray\Downloads\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-KJNodes 0.1 seconds: C:\Users\nehoray\Downloads\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_Comfyroll_CustomNodes 0.2 seconds: C:\Users\nehoray\Downloads\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-tooling-nodes 0.2 seconds: C:\Users\nehoray\Downloads\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Impact-Pack 0.4 seconds: C:\Users\nehoray\Downloads\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui_controlnet_aux 0.5 seconds: C:\Users\nehoray\Downloads\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-Manager 1.4 seconds: C:\Users\nehoray\Downloads\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI-AdvancedLivePortrait 2.0 seconds: C:\Users\nehoray\Downloads\ComfyUI_windows_portable_nvidia\ComfyUI_windows_portable\ComfyUI\custom_nodes\was-node-suite-comfyui

nehorayshimoni avatar Nov 02 '24 10:11 nehorayshimoni

Could you fix the problem?

samanstudio avatar Nov 02 '24 17:11 samanstudio

Please move this issue to ComfyUI-PuLID-Flux-Enhanced repo. https://github.com/sipie800/ComfyUI-PuLID-Flux-Enhanced

ltdrdata avatar Nov 02 '24 17:11 ltdrdata

Thank you :) I have not found a solution yet for my issue but I will try to fix it in the future. If someone has a fix feel free to contact me

nehorayshimoni avatar Nov 02 '24 18:11 nehorayshimoni

Thank you :) I have not found a solution yet for my issue but I will try to fix it in the future. If someone has a fix feel free to contact me

Try to manually install facexlib and insightface. think that will fix your problem.

kebtime100 avatar Nov 02 '24 19:11 kebtime100

Unfortunately it didn't work for me but thank you for your help. I now installed correctly insightface but maybe I need to try to install facexlib again

nehorayshimoni avatar Nov 02 '24 23:11 nehorayshimoni

@nehorayshimoni can you share the fix please

khalsbaai avatar Nov 03 '24 10:11 khalsbaai

Hello, I still haven't found a fix for this issue but as soon as I do I'll be happy to share. If someone else found a solution and can share that would be great

nehorayshimoni avatar Nov 03 '24 11:11 nehorayshimoni

In my case the issue was due to : /home/your_user/miniconda3/bin/../lib/libstdc++.so.6: version `GLIBCXX_3.4.32' not found. So i upgraded via : conda install -c conda-forge libstdcxx-ng then restart the server.

Ciao!

SirSerS avatar Nov 04 '24 12:11 SirSerS

If you have downloaded insightface, but "cannot import for custom nodes: No module named 'insightface.app' " Follow this : (ComfyUI Portable) From the root folder check the version of Python: run CMD and type python_embeded\python.exe -V

Download prebuilt Insightface package for Python 3.10 or for Python 3.11 (if in the previous step you see 3.11) or for Python 3.12 (if in the previous step you see 3.12) and put into the stable-diffusion-webui (A1111 or SD.Next) root folder (where you have "webui-user.bat" file) or into ComfyUI root folder if you use ComfyUI Portable

From the root folder run:

(ComfyUI Portable) run CMD

Then update your PIP:

(ComfyUI Portable) python_embeded\python.exe -m pip install -U pip

Then install Insightface:

(ComfyUI Portable) python_embeded\python.exe -m pip install insightface-0.7.3-cp310-cp310-win_amd64.whl (for 3.10) or python_embeded\python.exe -m pip install insightface-0.7.3-cp311-cp311-win_amd64.whl (for 3.11) or python_embeded\python.exe -m pip install insightface-0.7.3-cp312-cp312-win_amd64.whl (for 3.12)

II. "AttributeError: 'NoneType' object has no attribute 'get'" This error may occur if there's smth wrong with the model file inswapper_128.onnx

Try to download it manually from here and put it to the ComfyUI\models\insightface replacing existing one

Then, maybe said : ImportError: DLL load failed while importing onnx_cpp2py_export

you python -m pip show onnx python -m pip uninstall onnx python -m pip install onnx==1.16.1

HTPAUN avatar Nov 06 '24 03:11 HTPAUN

I have the same problem!

thinghesi avatar Nov 07 '24 10:11 thinghesi

same exact problem here for a week now, ive tried a few solutions. any update? @nehorayshimoni

brandonlmoreau avatar Nov 12 '24 06:11 brandonlmoreau

guys, get the newest Microsoft Visual C++. It solved problems with importing PuLID for me

kecikub avatar Nov 14 '24 10:11 kecikub

https://www.youtube.com/watch?v=o_JOs56Q3zk

this fix my problem, i manually install facexlib and insightface

WyyzHot avatar Nov 22 '24 09:11 WyyzHot

If you have downloaded insightface, but "cannot import for custom nodes: No module named 'insightface.app' " Follow this : (ComfyUI Portable) From the root folder check the version of Python: run CMD and type python_embeded\python.exe -V

Legend! Sorted a whole day of frustration..

chuckstarza avatar Nov 25 '24 11:11 chuckstarza

If you have downloaded insightface, but "cannot import for custom nodes: No module named 'insightface.app' " Follow this : (ComfyUI Portable) From the root folder check the version of Python: run CMD and type python_embeded\python.exe -V

This finally fixed it!!!! I MADE AN ACCOUNT HERE JUST TO THANK YOU!

somewhatsquishy avatar Dec 01 '24 05:12 somewhatsquishy

If you have downloaded insightface, but "cannot import for custom nodes: No module named 'insightface.app' " Follow this : (ComfyUI Portable) From the root folder check the version of Python: run CMD and type python_embeded\python.exe -V

Download prebuilt Insightface package for Python 3.10 or for Python 3.11 (if in the previous step you see 3.11) or for Python 3.12 (if in the previous step you see 3.12) and put into the stable-diffusion-webui (A1111 or SD.Next) root folder (where you have "webui-user.bat" file) or into ComfyUI root folder if you use ComfyUI Portable

From the root folder run:

(ComfyUI Portable) run CMD

Then update your PIP:

(ComfyUI Portable) python_embeded\python.exe -m pip install -U pip

Then install Insightface:

(ComfyUI Portable) python_embeded\python.exe -m pip install insightface-0.7.3-cp310-cp310-win_amd64.whl (for 3.10) or python_embeded\python.exe -m pip install insightface-0.7.3-cp311-cp311-win_amd64.whl (for 3.11) or python_embeded\python.exe -m pip install insightface-0.7.3-cp312-cp312-win_amd64.whl (for 3.12)

II. "AttributeError: 'NoneType' object has no attribute 'get'" This error may occur if there's smth wrong with the model file inswapper_128.onnx

Try to download it manually from here and put it to the ComfyUI\models\insightface replacing existing one

Then, maybe said : ImportError: DLL load failed while importing onnx_cpp2py_export

you python -m pip show onnx python -m pip uninstall onnx python -m pip install onnx==1.16.1

i don't have "(ComfyUI Portable) python_embeded", just using flux on comfyui with zluda, any solution for me?

9esw7 avatar Dec 07 '24 13:12 9esw7

If you have downloaded insightface, but "cannot import for custom nodes: No module named 'insightface.app' " Follow this : (ComfyUI Portable) From the root folder check the version of Python: run CMD and type python_embeded\python.exe -V Download prebuilt Insightface package for Python 3.10 or for Python 3.11 (if in the previous step you see 3.11) or for Python 3.12 (if in the previous step you see 3.12) and put into the stable-diffusion-webui (A1111 or SD.Next) root folder (where you have "webui-user.bat" file) or into ComfyUI root folder if you use ComfyUI Portable From the root folder run: (ComfyUI Portable) run CMD Then update your PIP: (ComfyUI Portable) python_embeded\python.exe -m pip install -U pip Then install Insightface: (ComfyUI Portable) python_embeded\python.exe -m pip install insightface-0.7.3-cp310-cp310-win_amd64.whl (for 3.10) or python_embeded\python.exe -m pip install insightface-0.7.3-cp311-cp311-win_amd64.whl (for 3.11) or python_embeded\python.exe -m pip install insightface-0.7.3-cp312-cp312-win_amd64.whl (for 3.12) II. "AttributeError: 'NoneType' object has no attribute 'get'" This error may occur if there's smth wrong with the model file inswapper_128.onnx Try to download it manually from here and put it to the ComfyUI\models\insightface replacing existing one Then, maybe said : ImportError: DLL load failed while importing onnx_cpp2py_export you python -m pip show onnx python -m pip uninstall onnx python -m pip install onnx==1.16.1

i don't have "(ComfyUI Portable) python_embeded", just using flux on comfyui with zluda, any solution for me?

If you are using a custom-configured Python environment, you need to use the pip of that environment. In this case, unlike python_embedded, it will vary for each environment.

The important thing is that you need to use the pip associated with the Python environment that runs ComfyUI for installation.

ltdrdata avatar Dec 08 '24 13:12 ltdrdata

If you have downloaded insightface, but "cannot import for custom nodes: No module named 'insightface.app' " Follow this : (ComfyUI Portable) From the root folder check the version of Python: run CMD and type python_embeded\python.exe -V Download prebuilt Insightface package for Python 3.10 or for Python 3.11 (if in the previous step you see 3.11) or for Python 3.12 (if in the previous step you see 3.12) and put into the stable-diffusion-webui (A1111 or SD.Next) root folder (where you have "webui-user.bat" file) or into ComfyUI root folder if you use ComfyUI Portable From the root folder run: (ComfyUI Portable) run CMD Then update your PIP: (ComfyUI Portable) python_embeded\python.exe -m pip install -U pip Then install Insightface: (ComfyUI Portable) python_embeded\python.exe -m pip install insightface-0.7.3-cp310-cp310-win_amd64.whl (for 3.10) or python_embeded\python.exe -m pip install insightface-0.7.3-cp311-cp311-win_amd64.whl (for 3.11) or python_embeded\python.exe -m pip install insightface-0.7.3-cp312-cp312-win_amd64.whl (for 3.12) II. "AttributeError: 'NoneType' object has no attribute 'get'" This error may occur if there's smth wrong with the model file inswapper_128.onnx Try to download it manually from here and put it to the ComfyUI\models\insightface replacing existing one Then, maybe said : ImportError: DLL load failed while importing onnx_cpp2py_export you python -m pip show onnx python -m pip uninstall onnx python -m pip install onnx==1.16.1

i don't have "(ComfyUI Portable) python_embeded", just using flux on comfyui with zluda, any solution for me?

If you are using a custom-configured Python environment, you need to use the pip of that environment. In this case, unlike python_embedded, it will vary for each environment.

The important thing is that you need to use the pip associated with the Python environment that runs ComfyUI for installation.

I am using comfyui which is integrated with zluda (this:https://github.com/patientx/ComfyUI-Zluda) because I have amd graphics card and i still can't solve the problem.

9esw7 avatar Dec 08 '24 13:12 9esw7