ComfyUI v0.3.33 -x64 fails to install

What’s the problem here? Log Follows

24-12-16 19:18:05.724] [info]  Creating ComfyUI directories in C:\Users\Gamers\Documents\ComfyUI
[2024-12-16 19:18:05.725] [info]  Created directory: C:\Users\Gamers\Documents\ComfyUI\custom_nodes
[2024-12-16 19:18:05.726] [info]  Created directory: C:\Users\Gamers\Documents\ComfyUI\input
[2024-12-16 19:18:05.726] [info]  Created directory: C:\Users\Gamers\Documents\ComfyUI\output
[2024-12-16 19:18:05.727] [info]  Created directory: C:\Users\Gamers\Documents\ComfyUI\user
[2024-12-16 19:18:05.727] [info]  Created directory: C:\Users\Gamers\Documents\ComfyUI\user\default
[2024-12-16 19:18:05.728] [info]  Created directory: C:\Users\Gamers\Documents\ComfyUI\models
[2024-12-16 19:18:05.728] [info]  Created directory: C:\Users\Gamers\Documents\ComfyUI\models\checkpoints
[2024-12-16 19:18:05.729] [info]  Created directory: C:\Users\Gamers\Documents\ComfyUI\models\clip
[2024-12-16 19:18:05.729] [info]  Created directory: C:\Users\Gamers\Documents\ComfyUI\models\clip_vision
[2024-12-16 19:18:05.730] [info]  Created directory: C:\Users\Gamers\Documents\ComfyUI\models\configs
[2024-12-16 19:18:05.731] [info]  Created directory: C:\Users\Gamers\Documents\ComfyUI\models\controlnet
[2024-12-16 19:18:05.731] [info]  Created directory: C:\Users\Gamers\Documents\ComfyUI\models\diffusers
[2024-12-16 19:18:05.731] [info]  Created directory: C:\Users\Gamers\Documents\ComfyUI\models\diffusion_models
[2024-12-16 19:18:05.732] [info]  Created directory: C:\Users\Gamers\Documents\ComfyUI\models\embeddings
[2024-12-16 19:18:05.732] [info]  Created directory: C:\Users\Gamers\Documents\ComfyUI\models\gligen
[2024-12-16 19:18:05.733] [info]  Created directory: C:\Users\Gamers\Documents\ComfyUI\models\hypernetworks
[2024-12-16 19:18:05.733] [info]  Created directory: C:\Users\Gamers\Documents\ComfyUI\models\loras
[2024-12-16 19:18:05.734] [info]  Created directory: C:\Users\Gamers\Documents\ComfyUI\models\photomaker
[2024-12-16 19:18:05.734] [info]  Created directory: C:\Users\Gamers\Documents\ComfyUI\models\style_models
[2024-12-16 19:18:05.735] [info]  Created directory: C:\Users\Gamers\Documents\ComfyUI\models\unet
[2024-12-16 19:18:05.735] [info]  Created directory: C:\Users\Gamers\Documents\ComfyUI\models\upscale_models
[2024-12-16 19:18:05.736] [info]  Created directory: C:\Users\Gamers\Documents\ComfyUI\models\vae
[2024-12-16 19:18:05.736] [info]  Created directory: C:\Users\Gamers\Documents\ComfyUI\models\vae_approx
[2024-12-16 19:18:05.737] [info]  Created directory: C:\Users\Gamers\Documents\ComfyUI\models\animatediff_models
[2024-12-16 19:18:05.737] [info]  Created directory: C:\Users\Gamers\Documents\ComfyUI\models\animatediff_motion_lora
[2024-12-16 19:18:05.737] [info]  Created directory: C:\Users\Gamers\Documents\ComfyUI\models\animatediff_video_formats
[2024-12-16 19:18:05.738] [info]  Created directory: C:\Users\Gamers\Documents\ComfyUI\models\liveportrait
[2024-12-16 19:18:05.738] [info]  Created directory: C:\Users\Gamers\Documents\ComfyUI\models\insightface
[2024-12-16 19:18:05.739] [info]  Created directory: C:\Users\Gamers\Documents\ComfyUI\models\insightface\buffalo_1
[2024-12-16 19:18:05.740] [info]  Created directory: C:\Users\Gamers\Documents\ComfyUI\models\blip
[2024-12-16 19:18:05.740] [info]  Created directory: C:\Users\Gamers\Documents\ComfyUI\models\blip\checkpoints
[2024-12-16 19:18:05.741] [info]  Created directory: C:\Users\Gamers\Documents\ComfyUI\models\CogVideo
[2024-12-16 19:18:05.742] [info]  Created directory: C:\Users\Gamers\Documents\ComfyUI\models\xlabs
[2024-12-16 19:18:05.742] [info]  Created directory: C:\Users\Gamers\Documents\ComfyUI\models\xlabs\loras
[2024-12-16 19:18:05.742] [info]  Created directory: C:\Users\Gamers\Documents\ComfyUI\models\xlabs\controlnets
[2024-12-16 19:18:05.743] [info]  Created directory: C:\Users\Gamers\Documents\ComfyUI\models\layerstyle
[2024-12-16 19:18:05.743] [info]  Created directory: C:\Users\Gamers\Documents\ComfyUI\models\LLM
[2024-12-16 19:18:05.744] [info]  Created directory: C:\Users\Gamers\Documents\ComfyUI\models\Joy_caption
[2024-12-16 19:18:05.745] [info]  Wrote settings to C:\Users\Gamers\Documents\ComfyUI\user\default\comfy.settings.json: {
  "Comfy-Desktop.AutoUpdate": true,
  "Comfy-Desktop.SendStatistics": true,
  "Comfy.ColorPalette": "dark",
  "Comfy.UseNewMenu": "Top",
  "Comfy.Workflow.WorkflowTabsPosition": "Topbar",
  "Comfy.Workflow.ShowMissingModelsWarning": true,
  "Comfy.Server.LaunchArgs": {}
}
[2024-12-16 19:18:05.745] [info]  Creating model config files in C:\Users\Gamers\AppData\Roaming\ComfyUI\extra_models_config.yaml
[2024-12-16 19:18:05.750] [info]  Created extra_model_paths.yaml at C:\Users\Gamers\AppData\Roaming\ComfyUI\extra_models_config.yaml
[2024-12-16 19:18:05.899] [info]  Received renderer-ready message!
[2024-12-16 19:18:06.637] [info]  Server start
[2024-12-16 19:18:06.639] [info]  Using uv at C:\Users\Gamers\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\uv\win\uv.exe
[2024-12-16 19:18:06.643] [info]  Creating virtual environment at C:\Users\Gamers\Documents\ComfyUI\.venv with python 3.12.4
[2024-12-16 19:18:06.644] [info]  Running uv command: &"C:\Users\Gamers\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\uv\win\uv.exe" venv --python 3.12.4
[2024-12-16 19:18:06.839] [info]  Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.Install the latest PowerShell for new features and improvements! https://aka.ms/PSWindowse]0;C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe 
[2024-12-16 19:18:06.969] [info]  PS C:\Users\Gamers\Documents\ComfyUI> 
[2024-12-16 19:18:07.038] [info]  c
[2024-12-16 19:18:07.047] [info]  
[2024-12-16 19:18:07.079] [info]  > clear; &"C:\Users\Gamers\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\uv\win\uv.exe" "venv" "--python" "3.12.4"; echo "--end-1734398286644:$?"

[2024-12-16 19:18:07.095] [info]  
[2024-12-16 19:18:07.119] [info]  























[2024-12-16 19:18:07.655] [info]    x Failed to inspect Python interpreter from search path at
  | `C:\WINDOWS\system32\python.exe`
  |-> Failed to query Python interpreter at `C:\WINDOWS\system32\python.exe`
  `-> %1 is not a valid Win32 application. (os error 193)

[2024-12-16 19:18:07.712] [info]  --end-1734398286644:False
PS C:\Users\Gamers\Documents\ComfyUI> 
>> 
[2024-12-16 19:18:07.713] [error] Error creating virtual environment: Error: Failed to create virtual environment: exit code -999
[2024-12-16 19:18:35.771] [error] @todesktop/runtime: alwaysResolve: Promise timed out after 30000ms
[2024-12-16 19:18:36.018] [info]  @todesktop/runtime: Checking for update
[2024-12-16 19:18:36.018] [info]  @todesktop/runtime: AutoUpdater: checking-for-update
[2024-12-16 19:18:36.611] [info]  @todesktop/runtime: Update for version 0.3.33 is not available (latest version: 0.3.33, downgrade is allowed).
[2024-12-16 19:18:36.612] [info]  @todesktop/runtime: AutoUpdater: update-not-available {
  version: '0.3.33',
  files: [
    {
      url: 'ComfyUI Setup 0.3.33 - Build 241212janw62bpg-x64.exe',
      sha512: 'nfjnfHfGGZ7qGR9tLYxMmkmIImV1nFSFrSMGsLfjjJ1Zk2PhyYEiRlLdJaH1b0f8eJXutsM+rp28MTEGuB6TFA==',
      size: 111937552
    }
  ],
  path: 'ComfyUI Setup 0.3.33 - Build 241212janw62bpg-x64.exe',
  sha512: 'nfjnfHfGGZ7qGR9tLYxMmkmIImV1nFSFrSMGsLfjjJ1Zk2PhyYEiRlLdJaH1b0f8eJXutsM+rp28MTEGuB6TFA==',
  releaseDate: '2024-12-12T22:13:27.817Z'
}

hmm sorry not really sure what happened here. What happens if you try to create the virtual environment yourself in powershell?

C:\Users\Gamers\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\uv\win\uv.exe" venv --python 3.12.4
1 Like
  • Opened Powershell 7.4.6
  • changed directory to C:\Users\Gamers\AppData\Local\Programs
  • input @comfyorgcomfyui-electron\resources\uv\win\uv.exe" venv --python 3.12.4

ParserError:
Line |
   1 |  @comfyorgcomfyui-electron\resources\uv\win\uv.exe" venv --python 3.12 …
     |                  ~~~~~~~~~
     | Unexpected token '-electron' in expression or statement.

I’m not sure but this may be related to the fact I don’t have Python 3.12 in my PATH. I have Python 3.11 and 3.10 in PATH. Not sure 3.12 is even installed.

Can we just pretend he didn’t miss a double-quote at the start of the line when he pasted this command for you? :sweat_smile:

"C:\Users\Gamers\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\uv\win\uv.exe" venv --python 3.12.4

I don’t understand. Are you trying to be helpful? If so, would you please be more explicit?

Yes. Please try the command I posted - it has one extra character when compared to the original troubleshooting command posted above (" at the start of the line).

I see, thank you. Let me try.

  • Opened Powershell 7.4.6
  • changed directory to C:\Users\Gamers\AppData\Local\Programs
  • entered code exactly as you have above
PS C:\Users\Gamers\AppData\Local\Programs> "C:\Users\Gamers\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\uv\win\uv.exe" venv --python 3.12.4
ParserError:
Line |
   1 |  … grams\@comfyorgcomfyui-electron\resources\uv\win\uv.exe" venv --pytho …
     |                                                             ~~~~
     | Unexpected token 'venv' in expression or statement.

Does this offer any clues?

Ah - PowerShell. For that, we just need to add an & (if you think this is silly, you are not alone):

& "C:\Users\Gamers\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\uv\win\uv.exe" venv --python 3.12.4

OK, here’s the result:


PS C:\Users\Gamers\AppData\Local\Programs> & "C:\Users\Gamers\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\uv\win\uv.exe" venv --python 3.12.4
  x Failed to inspect Python interpreter from search path at `C:\WINDOWS\system32\python.exe`
  |-> Failed to query Python interpreter at `C:\WINDOWS\system32\python.exe`
  `-> %1 is not a valid Win32 application. (os error 193)

Incidentally this is the same error message that now shows in the terminal if I try installing ComfyUI v4.0.0.

Looks like something is not behaving with that file. Try this (please check the output for personally identifiable data before posting):

& "C:\Users\Gamers\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\uv\win\uv.exe" python list

Thanks, btw, for sticking with this.
Results:

PS C:\Users\Gamers\AppData\Local\Programs> & "C:\Users\Gamers\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\uv\win\uv.exe" python list
error: Failed to inspect Python interpreter from search path at `C:\WINDOWS\system32\python.exe`
  Caused by: Failed to query Python interpreter at `C:\WINDOWS\system32\python.exe`
  Caused by: %1 is not a valid Win32 application. (os error 193)

Sounds like a uv issue. Sorry to ask you to do this but can you install the latest uv here
https://docs.astral.sh/uv/getting-started/installation/

And then re-run the command? That will help us narrow down the issue.

After installing you can just run uv python list in Powershell.

Thanks, OK, I successfully installed UV, added the PATH via the provided command, then tried uv python list

PS C:\Users\Gamers\AppData\Local\Programs> powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
Downloading uv 0.5.11 (x86_64-pc-windows-msvc)
Installing to C:\Users\Gamers\.local\bin
  uv.exe
  uvx.exe
everything's installed!

To add C:\Users\Gamers\.local\bin to your PATH, either restart your system or run:

    set Path=C:\Users\Gamers\.local\bin;%Path%   (cmd)
    $env:Path = "C:\Users\Gamers\.local\bin;$env:Path"   (powershell)

PS C:\Users\Gamers\AppData\Local\Programs> $env:Path = "C:\Users\Gamers\.local\bin;$env:Path"
PS C:\Users\Gamers\AppData\Local\Programs> uv python list
error: Failed to inspect Python interpreter from search path at `C:\WINDOWS\system32\python.exe`
  Caused by: Failed to query Python interpreter at `C:\WINDOWS\system32\python.exe`
  Caused by: %1 is not a valid Win32 application. (os error 193)

Is there a different location I need to install uv?

Can you please take a look in C:\windows\system32? It appears you may have a broken python.exe there, that’s taking precedence over everything else.

If there is one there, I’d recommend moving that python.exe to a temporary location (e.g. just create a folder somewhere and drag/drop it over), then trying again.

Do keep the python.exe around in case you are actually using it for some app or another.

OK, removed python.exe from System32 folder and tried again from the top. Seems to have been some success:


PS C:\Windows\System32> & "C:\Users\Gamers\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\uv\win\uv.exe" venv --python 3.12.4
Using CPython 3.12.4
Creating virtual environment at: .venv
Activate with: .venv\Scripts\activate

I was then able to successfully run
& "C:\Users\Gamers\AppData\Local\Programs\@comfyorgcomfyui-electron\resources\uv\win\uv.exe" python list

( but uv python list didn’t work.)

PS C:\Windows\System32> uv python list
uv: The term 'uv' is not recognized as a name of a cmdlet, function, script file, or executable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

HOWEVER I tried ComfyUI installer v4.0.0 and it finally worked. Comfy is now running on my system.

Thank you for your help

1 Like

Amazing, thank you for letting us know!

FYI, you may have added a new directory to System32: C:\Windows\System32\.venv
(assumption based on the first block from your reply)

If it’s there, it should be safe to delete - but may as well keep it in the recycle bin for a few days just in case.

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.