Acly / comfyui-inpaint-nodes

Nodes for better inpainting with ComfyUI: Fooocus inpaint model for SDXL, LaMa, MAT, and various other tools for pre-filling inpaint & outpaint areas.
GNU General Public License v3.0
490 stars 35 forks source link

Help,Who has encountered this problem #52

Closed LiuGe126 closed 1 month ago

LiuGe126 commented 1 month ago

There is no way to install the node, either through the manager or directly download the decompression package, "comfyui-inpaint-nodes-main" already exists in "custom_nodes", but the node is still not installed. image image

Acly commented 1 month ago
  1. Make sure to run the latest version of ComfyUI
  2. Please check ComfyUI output if the nodes were loaded, and report the error message if they were not.
Leonerli2 commented 1 month ago

I have the same problem and it seems like some people are having it too in the last few hours. So maybe it's a general problem. For me the import always fails on startup: “0.0 seconds (IMPORT FAILED): D:\Confyui2\ComfyUI_windows_portable\ComfyUI\custom_nodes\comfyui-inpaint-nodes” I reinstalled everything from scratch, including confyui, installed only the necessary costom nodes and checked the path for the models/inpaint forlder. But this is still the only error I get, so now I'm kinda out of ideas. image

Acly commented 1 month ago

Yes the recent updates need to match between ComfyUI and theses nodes, so lots of people running into this.

But I really need to see the error message (from ComfyUI console output) to help. It should be somewhere above the (IMPORT FAILED) message.

tro2789 commented 1 month ago

I also had this issue after updating to the latest ComfyUI build. I was able to fix this issue by clicking "try update" in ComfyUI manager as seen in the screencap provided by Leonerli2 above. After doing that, I restarted ComfyUI and the problem was resolved. Just sharing in case others have not tried that yet.

LiuGe126 commented 1 month ago

查看错误消息(来自ComfyUI控制台输出)来提

I have confirmed that my version of confyui is the latest, and the node "inpaint nodes" seems to fail to load. This is my startup log, please check it. comfyui.log

Acly commented 1 month ago

The relevant error is:

ModuleNotFoundError: No module named 'spandrel'
Cannot import D:\AI\ComfyUI\ComfyUI_portbale\ComfyUI\custom_nodes\comfyui-inpaint-nodes-main module for custom nodes: No module named 'spandrel'

Solution:

pip install spandrel

I have confirmed that my version of confyui is the latest

That's strange, because latest version of ComfyUI already requires spandrel, yet you don't have it installed.

LiuGe126 commented 1 month ago

The relevant error is:

ModuleNotFoundError: No module named 'spandrel'
Cannot import D:\AI\ComfyUI\ComfyUI_portbale\ComfyUI\custom_nodes\comfyui-inpaint-nodes-main module for custom nodes: No module named 'spandrel'

Solution:

pip install spandrel

I have confirmed that my version of confyui is the latest

That's strange, because latest version of ComfyUI already requires spandrel, yet you don't have it installed.

Sorry, I still don't know how to solve this problem. Can you explain it in more detail, or do you have a link or steps to a solution,thanks

Leonerli2 commented 1 month ago

Thank you, this solves the problem. But be sure to install it to the right python version (the python embedded in confyui by setting the right path). I needed to install pip aswell for that python version. The whole confusion for me was because I have the exact same python version installed on my system and didnt notice that there was another version for confyui.

LiuGe126 commented 1 month ago

I have found a solution, if there are other users encountered this problem, and you do not have a python foundation, you can refer to this video.https://www.bilibili.com/video/BV1Ub42187ny/?spm_id_from=333.337.search-card.all.click&vd_source=8f0cc45d1e9941f692d94252e7511a9b