(IMPORT FAILED) ComfyUI-PuLID-Flux-Enhanced
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
Thank you for your assistance!
Logs
No response
Other
No response
I have the same problem!
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
Could you fix the problem?
Please move this issue to ComfyUI-PuLID-Flux-Enhanced repo. https://github.com/sipie800/ComfyUI-PuLID-Flux-Enhanced
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
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.
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 can you share the fix please
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
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!
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 have the same problem!
same exact problem here for a week now, ive tried a few solutions. any update? @nehorayshimoni
guys, get the newest Microsoft Visual C++. It solved problems with importing PuLID for me
https://www.youtube.com/watch?v=o_JOs56Q3zk
this fix my problem, i manually install facexlib and insightface
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..
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!
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 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.
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
pipof that environment. In this case, unlikepython_embedded, it will vary for each environment.The important thing is that you need to use the
pipassociated 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.