ComfyUI icon indicating copy to clipboard operation
ComfyUI copied to clipboard

[Announcement] The frontend will no longer be shipped in the main ComfyUI repo, it will be a separate pip package instead.

Open comfyanonymous opened this issue 1 year ago • 57 comments

Due to the frontend being a separate project it doesn't make sense to continue shipping the frontend as part of the main repo.

To make our lives easier and prevent the main ComfyUI repo from becoming too large in size over time we have decided to start shipping the frontend as a separate pip package instead.

https://github.com/comfyanonymous/ComfyUI/pull/7021

After this change is merged if you use the desktop build or the standalone package and update using the update/update_comfyui.bat script or the ComfyUI manager everything should continue working as usual.

If you update manually using "git pull" you will have to do the extra step of updating the frontend using: pip install -r requirements.txt

If you have any comments or concerns about this change, let us know.

comfyanonymous avatar Feb 28 '25 23:02 comfyanonymous

Well this took me hours to setup the other day, now I cant get it to work. so yeah im pretty smashed by this. I could have used it how it was for years.

scoegrams avatar Mar 01 '25 18:03 scoegrams

Was there any reasons why you can't make the UI repo a Git submodule for this repo instead? I'm not against the core idea of separating out the frontend code but doing it in the way described with a PyPi pip package instead is a bit weird.

simonlui avatar Mar 01 '25 20:03 simonlui

Git submodules would have the same problem since it's moving the problem to another git repo.

The reason for it being a pip package is that we already use python packages to manage core ComfyUI dependencies so it seemed like a much easier thing for people to migrate to than all the other solutions including git submodules.

We basically needed a way to ship potentially large frontend updates that now contain some binary files (images with workflows attached). Having them continue living in the git repo would be unsustainable.

We don't have to change anything in our packaging or updating scripts to make this work so we assume it will be a seamless transition for almost everyone.

comfyanonymous avatar Mar 01 '25 23:03 comfyanonymous

"After this change is merged if you use the desktop build or the standalone package and update using the update/update_comfyui.bat script or the ComfyUI manager everything should continue working as usual."

Sorry, but that doesn't work....

Maddoc1971 avatar Mar 02 '25 07:03 Maddoc1971

This change hasn't been merged yet, it will be most likely merged in ~12 hours so if you have issues before that this isn't the problem.

comfyanonymous avatar Mar 02 '25 08:03 comfyanonymous

Ah ok, thx...I just did it manually xD

Maddoc1971 avatar Mar 02 '25 10:03 Maddoc1971

Ok folks. I use SwarmUI. Now SwarmUI is broken and will not work due to this apparent "front end missing" thing.

It is not enough to just say some kind of "its a separate package, do a pip install thing". I have no clue what you're talking about.

What EXACT steps does a person need to take in order to get this up and running again?

I'm on windows 11. Am I supposed to "go to the separate project" and somehow install that?

No idea what you mean by "After this change is merged".

Help!

[edit]... I seemed to be able to install the comfyui frontend using a github clone ... although had trouble with the pip install stuff... but somehow... then did an 'update-windows.bat' and after that it sort of seemed to work? I have no clue what i'm doing.

imaginaryhuman avatar Mar 02 '25 22:03 imaginaryhuman

Image Image Image Image

doesn't work.

olegger58 avatar Mar 03 '25 06:03 olegger58

Como eu faço para corrigir este erro (Your ComfyUI isn't git repo.) Vi que houve uma mudança no método de distribuição front-end para instalação de dependência via PyPI (PIP). Como faço isso?

Image

Conscienciagit avatar Mar 03 '25 17:03 Conscienciagit

I download portable with preinstalled nodes and several GB, we have 2025 with very fast internet speeeds, nobody cares about repo sizes. But anyway i consider coming back to 2 month old prev comfy cause recent changes in memory management give me OOM on ... SDXL, yes on sdxl and rtx 3090... funny right....

1blackbar avatar Mar 03 '25 20:03 1blackbar

Image Image Image Image

doesn't work.

Go to ComfyUI dir and git pull And then launch ComfyUI again, it will show you more proper fixing command.

ltdrdata avatar Mar 03 '25 22:03 ltdrdata

I download portable with preinstalled nodes and several GB, we have 2025 with very fast internet speeeds, nobody cares about repo sizes. But anyway i consider coming back to 2 month old prev comfy cause recent changes in memory management give me OOM on ... SDXL, yes on sdxl and rtx 3090... funny right....

We apologize for the abrupt changes.

However, if the front end continues to be updated within the repository as before, it's only a matter of time before it grows from tens of GB to TB.

Since this structure is not sustainable in the long run, we had to act quickly to address the issue.

ltdrdata avatar Mar 03 '25 22:03 ltdrdata

#7021

After this change is merged if you use the desktop build or the standalone package and update using the update/update_comfyui.bat script or the ComfyUI manager everything should continue working as usual.

If you update manually using "git pull" you will have to do the extra step of updating the frontend using: pip install -r requirements.txt

If you have any comments or concerns about this change, let us know.

I sure do have comments!

Image

I appreciate you devs are really deep into the matrix on this stuff, but us mere end users really struggle with troubleshooting if errors assume so much knowledge. If I might be so bold and suggest writing more instructional error messages that can help guide a less knowledgable person to self-service, I think we'd be super grateful.

What am I supposed to do here, what is thie "Request" and where do I lok into it? I'm so lost...

diGitTil avatar Mar 04 '25 03:03 diGitTil

This should be enough to push people over the edge. It's so aggravating for us less knowledgeable users to figure out all the errors but this update really broke it for me and now and I cant even update or reinstall ComfyUI without errors. Am I ready to tackle these new problems with more hours, possibly days trying to get it to start again? Not sure I have the energy or ambition to. I see so many complaints and others pushing for a new alternative and this might just be enough to get some new alternatives. I don't want to sound unappreciative, I truly am. All I am saying is that ComfyUI has such a steep learning curve on just the errors alone and now we have to deal with new ones, for the moment anyhow. Well good luck to all who are brave enough on to tackle these new problems.

UnrealGem avatar Mar 04 '25 07:03 UnrealGem

This should be enough to push people over the edge. It's so aggravating for us less knowledgeable users to figure out all the errors but this update really broke it for me and now and I cant even update or reinstall ComfyUI without errors. Am I ready to tackle these new problems with more hours, possibly days trying to get it to start again? Not sure I have the energy or ambition to. I see so many complaints and others pushing for a new alternative and this might just be enough to get some new alternatives. I don't want to sound unappreciative, I truly am. All I am saying is that ComfyUI has such a steep learning curve on just the errors alone and now we have to deal with new ones, for the moment anyhow. Well good luck to all who are brave enough on to tackle these new problems.

Resolving this issue is as simple as reinstalling the requirements.txt file.

Additionally, if an error occurs, the ComfyUI will display what command can be used to fix it if there is a problem.

Which part are you stuck on?

ltdrdata avatar Mar 04 '25 09:03 ltdrdata

Unfortunately, you can no longer go back to the frontend v1.9.1. This is the last frontend where the preview with the checkpoint and Loread Loader worked!!!!!!!

This no longer works in the newer versions.

For those who can't get the "new" Frontend installation version to work in the portable version, try changing to the ComfyUI directory and in the cmd window enter:

D:\Special\ComfyUI_windows_portable\python_embeded\python.exe -m pip install -r requirements.txt to integrate the frontend.

murphylanga avatar Mar 04 '25 09:03 murphylanga

this "D:\Special\ComfyUI_windows_portable\python_embeded\python.exe -m pip install -r requirements.txt"

is exactly what I did to integrate the frontend. For me it worked.

Maddoc1971 avatar Mar 04 '25 09:03 Maddoc1971

just started ComfyUI in Google Colab and hit the issue.

Yet, the reminder message is clear enough. Thx

Image

GeorgeLee007 avatar Mar 04 '25 14:03 GeorgeLee007

waw this broke everything , spending hours already attempting to fix it , the earlier mentioned fixes don't work here. Damm i regret having pressed the update button. For artists / non coders, this is really a pain in the ass and the instructions are totally unclear. A gonna be a fun night thx

Grimmvg avatar Mar 04 '25 19:03 Grimmvg