I made a mistake in the ComfyUI GUI and changed the ComfyUI server from 127.0.0.1 to 127.0.0.1,192.168.10.10 - yep didn’t read the manual - my bad. But now regardless of what I do I get the same error message: Error: no available ports found between 8000 and 9000
I do a “netstat -oan | findstr :80” and nothing is taking up the ports. I have rebooted several times and still the same. I tied to install the comfyui-portiable version on a different drive, same error. I renamed all the folders in C:\ComfyUI, C:\users\pichezz\AppData\Roaming, and C:\Users\pichezz\AppData\Local, and then tried a fresh install of the comfyui.exe and it too fails with the same error.
yep looked at that file, but it doesn’t seem to hold the changes. I have two other PCs with ComfyUI and I looked at their files as well. I even thought of copy one of tehir JSON files over, but sadly the same exact error.
Out of frustration I did a check-point recovery / restore from 3 days ago. Now ComfyUI isn’t installed, and I can try and re-install. I get further, but the “ComfyUI Setup 0.4.72 - x64.exe“ thinks that python cannot be found now. In the past I thought python was installed by the app, or am I just tired and forgetting things now.
Yeah that’s a hard link issue from deleting the destination file by the look of it.
If you have a decent internet connection, the fastest solution is to just delete the .venv folder in your Documents\ComfyUI, and backup/delete (or just move) your user/default/comfy.settings.json file.
This should regenerate everything on next load. If it doesn’t, please let us know - there’s more to do and we want to fix this so it doesn’t happen to you or anyone else again.
I would love to so, I went to GitHub and downloaded the files (ComfyUI-master.zip) and unzipped on my computer. I installed Python and added it to my path, installed pip, and then tried the install:
c:\ComfyUI\ComfyUI-master>python main.py
Checkpoint files will always be loaded safely.
Traceback (most recent call last):
File "c:\ComfyUI\ComfyUI-master\main.py", line 147, in <module>
import execution
File "c:\ComfyUI\ComfyUI-master\execution.py", line 15, in <module>
import comfy.model_management
File "c:\ComfyUI\ComfyUI-master\comfy\model_management.py", line 237, in <module>
total_vram = get_total_memory(get_torch_device()) / (1024 * 1024)
~~~~~~~~~~~~~~~~^^
File "c:\ComfyUI\ComfyUI-master\comfy\model_management.py", line 187, in get_torch_device
return torch.device(torch.cuda.current_device())
~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "C:\Users\pichezz\AppData\Local\Programs\Python\Python313\Lib\site-packages\torch\cuda\__init__.py", line 1071, in current_device
_lazy_init()
~~~~~~~~~~^^
File "C:\Users\pichezz\AppData\Local\Programs\Python\Python313\Lib\site-packages\torch\cuda\__init__.py", line 403, in _lazy_init
raise AssertionError("Torch not compiled with CUDA enabled")
AssertionError: Torch not compiled with CUDA enabled
And of course it errors out. This all must be intuitively obvious for folks, but for an old-fart like me it is driving me nutz!
Sad part is I have installed ComfyUI on two other systems with no issues at all. I am very tempted just to nuke the PC with a fresh copy of Windows 11 and start from scratch.
I can check and see if there’s a way to have Astral’s uv verify its cache. It would be great to hear if anyone else is having the issue (please let us know so it can be prioritised!).
The desktop app is “reasonably robust” in recent versions, considering the complexity of everything it needs to handle under the hood. When we find things that we can automatically repair, we just add them directly to the desktop app itself. The “troubleshooting” screen has a number of these that you can run manually (filtered by default, if you have errors).
I just found out that part of the confusion is that there are two versions of ComfyUI. I started with the installation from the ComfyUI.org site and not the python (AKA portable) version. It looks like the one that is acting up is now a combination of both installs. The other two that work are the “Electron” versions. Yes I used Grok to do some research and when i get it the path of my desktop launcher is when I found out about the versions.
Is there a reason to use one over the other? I haven’t been using the portable since I found that the manager wasn’t installing the models into the folders that they would download but I’d have to read the FAQ and then move them in the proper folders.
Or am I just senile and cannot read instructions properly?
The desktop app is what we intend for most people to use. It’s what we’re working on right now, to make installing and using the app easier. Expect new features and stability improvements to be rolling out here. Some features we’re working on are only possible in a desktop app.
Windows Portable
Portable was the original solution for users to get a working install of ComfyUI with as little setup effort as possible. It’s more what you would expect as a software developer, than as an app user - it’s still just a git repository and raw files - but it comes already setup, and is pretty convenient. I would not expect many updates on usability here. It will always just open in a browser, which adds some limitations.
What applies to both
When you download desktop OR portable, you should get the same core version of ComfyUI (a stable release). The differences are in how they are downloaded, installed, and managed.
Edit: You’re most welcome! And all good, this is on us - I don’t think we don’t make this very clear. I’m pinging internally to see if we can.
Ok, so I would love to start over from scratch. What is the best way to remove ComfyUI Desktop and possibly the portable version as well. Just renaming the C:\ComfyUI to footer or anything else doesn’t seem to fix the uninstall. There seems to be data stored in appData and other locations as well.
If I had a clean slate then one of the installs / re-installs might work better.