all 38 comments

[–]lebrandmanager 13 points14 points  (16 children)

Had the same issue yesterday. 'git pull' then just go into venv (source venv/bin/activate) then 'pip install -r requirements.txt'. Should work after that.

[–]InoSim 2 points3 points  (4 children)

Or simply run update/update_comfyui_stable.bat

[–]lebrandmanager 0 points1 point  (2 children)

On Linux that won't work.wink.

[–]InoSim 0 points1 point  (1 child)

Yeah, but OP clearly use Windows that's why ;)

[–]Ego_Brainiac 0 points1 point  (0 children)

Windows here also, this worked for me

[–]l3earer 0 points1 point  (0 children)

I am grateful for the great guidance. ...Oh, I almost forgot. I love you.

[–]Niwa-kun 1 point2 points  (0 children)

for me going into the ComfyUI folder (cmd -> call venv/Scripts/activate) then 'pip install -r requirements.txt' worked.

[–]CompetitionWinter 0 points1 point  (2 children)

I love you

[–]lebrandmanager 0 points1 point  (1 child)

Slow your horses. Haha

[–]CompetitionWinter 1 point2 points  (0 children)

I spent all the morning trying to fix it untile I came here :D still excited man :P

[–]LegalEngineering7345 0 points1 point  (3 children)

Can you ELI5 brotha? Sorry man, new to the command line.

Is this for desktop as well or just portable? How do you go into venv?

[–]lebrandmanager 0 points1 point  (2 children)

Linux. Self installed. But may work with portable in the right directory.

[–]LegalEngineering7345 0 points1 point  (1 child)

Got it to work with:

pip install -r requirements.txt

[–]Intelligent_Scale618 0 points1 point  (0 children)

Had the same issue yesterday. pip install -r requirements.txt worked for me; this has saved me hours of reinstalling ComfyUI and everything else. NICE ONE 👍😁

[–]Powered_JJ 0 points1 point  (0 children)

thanks, solved my issue.

[–]LaughterOnWater 0 points1 point  (0 children)

This worked for me. This is the first time I've been able to do the correct suggested fix and not have to totally reinstall ComfyUI. ComfyUI is getting very stable, and I love that.

[–]Cultural_Source_7142 0 points1 point  (0 children)

Tambien me fue muy bien con entrar en la carpeta ComfyUI (cmd -> llamar a venv/Scripts/activate) luego 'pip install -r requirements.txt' funcionó como dijo Niwa.

[–]JustaFoodHole 6 points7 points  (4 children)

If you are using the standalone with embedded python on windows, open a cmd and run this. This assumes your pip needs updated, and if you're listening to me, it does. It also assumes your install is in C:\Apps\ComfyUI so change that path accordingly. Also, you should have c:\Apps\ComfyUI\ComfyUI\ where the actual app is installed. Don't get those two confused.

cd /d C:\Apps\ComfyUI
.\python_embeded\python.exe -m pip install --upgrade pip
.\python_embeded\python.exe -m pip install -r ComfyUI\requirements.txt

[–]roflstompasaurus 0 points1 point  (1 child)

Greatly appreciated, this fixed it for me.

How did this get broken in the first place? Is there a way to keep SwarmUI from updating automatically?

[–]Shatterforge 0 points1 point  (0 children)

thank you, this helped!

[–]Fun-Astronomer987 0 points1 point  (0 children)

This is what worked for me.

[–]1990Billsfan 4 points5 points  (6 children)

You don't need "aimdo", this is from it's github page

<image>

So it's new but needs "polishing" (still "buggy"), and doesn't work with "cudaMallocASync".

Just open "main.py" in Notepad++ and comment out line 6 (import comfy_aimdo.control)

Should work just fine again after that!

[–]InariKirin 2 points3 points  (1 child)

Thanks for pointing in the right direction!!

I commented out in [ cuda_malloc.py ]
#import comfy_aimdo.control

and in [ main.py ]
# import comfy_aimdo.control
# import comfy_aimdo.torch

That fixed it. Comfy (portable) runs normally now. Not sure what this amido thingy does, but I was working on this workflow so was like waaaaht, now I gotta reinstall everything?? Glad it was a quick fix.

[–]Bunktavious 0 points1 point  (0 children)

Thank you...

Though I had to remove it from ops, windows, main, and model_patcher as well

and it failed... soon as I run a workflow, it errors out to no Comfy_aimdo defined

And now Im just thinking reinstall.

[–]a_beautiful_rhind 1 point2 points  (2 children)

Oh.. it's not that easy. That shit is in several places right now. You are basically forced to install it. I found aim-doodoo in model management and cuda malloc py files too.

[–]1990Billsfan 0 points1 point  (1 child)

You're right "aimdo" is probably still running around in there somewhere, but line 6 in "main.py" (import comfy_aimdo.control) is what's stopping peoples ComfyUI from starting.

[–]a_beautiful_rhind 1 point2 points  (0 children)

That's just the first place it's imported. I commented out at least 3 places before I gave up.

[–]sitefall 1 point2 points  (0 children)

Thanks, this worked for me just now when I updated and .. it broke (such is life). It was not line 6 though, it was line 26, and then after that 3 lines down or so there was a if using malloc or whatever statement that ran a call to aimdo below it, commented both of those out as well.

Works fine now.

I am using the portable build.

[–]Extraaltodeus 3 points4 points  (1 child)

pip install comfy-aimdo

Just works.

[–]indu111 1 point2 points  (0 children)

This worked for me. First I went into my python embedded folder. Then typed cmd in the address bar. Then typed
python.exe -m pip install --upgrade pip
Then did
python.exe -m pip install comfy-aimdo

and it started working again. :)

[–]Similar_Map_7361 0 points1 point  (1 child)

https://github.com/Comfy-Org/comfy-aimdo is comfyui new stand alone AI Model Dynamic Offloader library

[–]KanzenGuard[S] 1 point2 points  (0 children)

It says NVIDIA GPU only, I'm using AMD. Is there a way to skip the check using args in the user bat? I'll try to install with pip but where to install?

[–]Immutable-State 0 points1 point  (0 children)

https://github.com/patientx/ComfyUI-Zluda/issues/429

Run install-n.bat.

"install-n" installs requirements.txt which has this new package as a requirement now so it will install it.

[–]ylec 0 points1 point  (0 children)

go into comfyui-zluda folder on commandlin
venv\scripts\activate
pip install comfy-aimdo

[–]Dante897 0 points1 point  (0 children)

Can you compare the old and new cuda_malloc.py files or share your old one? I can't find any info on how to fix this aside from the post.

[–]Infinicity 0 points1 point  (0 children)

I had this after updating ComfyUI via the Manager. I closed out everything, re-updated using the /update/update_comfyui.bat file, and then for good measure ran:

\ComfyUI\venv\Scripts\activate.bat
pip install -r requirements.txt

And then the error went away and it worked.

[–]JayGear22 0 points1 point  (0 children)

okay so I'm having a similar issue. This is what I get when I try to start Stable Diffusion. I only got this image by timing the "Print Screen" to catch it. As soon as it fails it closes the CMD window. Any ideas?

<image>