Version 0.45 - valid base path (cannot install)

Everything was working just fine until the update 0.45. The update was applied but I couldn’t start the app and it wanted to reinstall. That failed, too.

So I uninstalled everything and tried a clean install. But then I always get this error:

ComfyUI needs a valid directory set as its base path. Inside,models, custom noces,etc. will bei stored. Click OK, then selected a new base path.

Unhandled exception
An unexpected error occured whilst starting th app, and it needs to b closed.

Error message:
Error: No base path selected or failed to save in config.

1 Like

I have the same Issue, I installed, it was working but didn’t have the manager so I uninstalled through windows and Now i get this same error.

1 Like

Ok I am not sure what I did, but I searched for Comfy in all my windows files and deleted anything that said Comfy and now it seem to be back to installing

1 Like

Yeah, I had an unrelated issue with windows and had to reinstall everything. Before that, ComfyUI desktop was working fine, now it gives me this error. I have deleted the desktop version from all directories listed in the notion user guide. Nothing works

Well, deleting everything Comfy did help somewhat. I don’t get the base path error anymore and at least something is installed. But now im stuck with this:

[2025-01-07 17:43:07.235] [error] Traceback (most recent call last):
File “C:\Users\user\AppData\Local\Programs@comfyorgcomfyui-electron\resources\ComfyUI\main.py”, line 11, in

[2025-01-07 17:43:07.238] [error] import utils.extra_config
File “C:\Users\user\AppData\Local\Programs@comfyorgcomfyui-electron\resources\ComfyUI\utils\extra_config.py”, line 2, in
import yaml
ModuleNotFoundError: No module named ‘yaml’

Sounds like you are missing the yaml python package. Can you try installing it manually?

We will have a feature out soon for these types of issues.

cd <install directory>
.venv\Scripts\python.exe -m pip install yaml

Thanks for the assistance, but it failed with this message:

ERROR: Could not find a version that satisfies the requirement yaml (from versions: none)
ERROR: No matching distribution found for yaml

Ah, try this one (pyyaml instead of yaml):

cd <install directory>
.venv\Scripts\python.exe -m pip install pyyaml

Hm, pyyaml is already installed (in a directory of my Python installation.

Requirement already satisfied: pyyaml in c:\users\dartha\appdata\local\programs\python\python312\lib\site-packages (6.0.2)

I’ve since installed the non-desktop version of ComfyUI without problems. Then I’ve tried to reinstall ComfyUI Desktop and now get this error in the main.log:

[2025-01-09 15:41:26.996] [error] Failed to start ComfyUI: Error: spawn M:\ComfyUI_DT.venv\Scripts\python.exe ENOENT
[2025-01-09 15:41:26.998] [error] Unhandled exception during server start Error: spawn M:\ComfyUI_DT.venv\Scripts\python.exe ENOENT
at ChildProcess._handle.onexit (node:internal/child_process:286:19)
at onErrorNT (node:internal/child_process:484:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

I had the same problem and I deleted C:\Users\username\AppData\Roaming
The Comfyui folder under the path is fine

It looks like the extra_models_config.yaml file, in %APPDATA%\ComfyUI is missing the trailing \ in the base_path:

  base_path: M:\ComfyUI
  base_path: M:\ComfyUI\