-
-
Notifications
You must be signed in to change notification settings - Fork 52
ComfyUI Desktop Directory mismatch, worker not loading, & bandaid-fix #77
Description
Was getting the error "[Distributed] Warning: Could not reliably determine ComfyUI root directory" and local Workers were not connecting locally.
ComfyUI desktop installs in two different directories. the appdata directory: "C:\Users{Username}\AppData\Local\Programs@comfyorgcomfyui-electron\resources\ComfyUI"
And whatever custom directory you picked on install for nodes and models and venv. Because ComfyUI manager installs nodes into the custom directory, the installed node for Distributed never checks the appdata directory for the root install path of comfy.
To fix this I modified 'distributed.py' in {customdirectory}\Comfy2\custom_nodes\ComfyUI-Distributed,
Line 831:
830| # Return the initial guess as fallback
831| return os.path.expandvars(r"C:\Users\{username}\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\ComfyUI")
workers seem to load now.
Hopefully this will help some people.