Unable to start ComfyUI desktop version v0.4.3 on M4Mac(Sequoia 15.2)

When the installation is successful, the interface displays:

Using CPython 3.12.4
Creating virtual environment at :
•venV
Activate with:
source .venv/bin/activate
-end-1735229411129:0
[5ms][/volumes/windows HD/ComfyUI/mytest07]$

When I exit the program and restart ComfyUI, it directly shows an error screen and asks me to reinstall.

main.log:

[2024-12-27 00:11:55.689] [info]  Using CPython 
[2024-12-27 00:11:55.690] [info]  3.12.4

[2024-12-27 00:11:55.690] [info]  Creating virtual environment at: .venv

[2024-12-27 00:11:55.692] [info]  Activate with: 
[2024-12-27 00:11:55.692] [info]  source .venv/bin/activate

[2024-12-27 00:11:55.693] [info]  %                                                                               
 
[2024-12-27 00:11:55.721] [info]  e]2;xiao@wingsdeMacBook-Pro:/Volumes/Windows HD/ComfyUI/mytest07ae]1;..fyUI/mytest07a
[2024-12-27 00:11:55.722] [info]  e]7;file://wingsdeMacBook-Pro.local/Volumes/Windows%20HD/ComfyUI/mytest07e\
[2024-12-27 00:11:55.722] [info]  
[1m44.436s][/Volumes/Windows HD/ComfyUI/mytest07]$ e
[2024-12-27 00:11:55.722] [info]  echo 
[2024-12-27 00:11:55.723] [info]  "
[2024-12-27 00:11:55.723] [info]  _-
[2024-12-27 00:11:55.723] [info]  end
[2024-12-27 00:11:55.723] [info]  -1
[2024-12-27 00:11:55.723] [info]  735
[2024-12-27 00:11:55.723] [info]  22
[2024-12-27 00:11:55.723] [info]  9
[2024-12-27 00:11:55.723] [info]  4111
[2024-12-27 00:11:55.723] [info]  29
[2024-12-27 00:11:55.723] [info]  :
[2024-12-27 00:11:55.723] [info]  $
[2024-12-27 00:11:55.723] [info]  ?" 
[2024-12-27 00:11:55.723] [info]  


[2024-12-27 00:11:55.728] [info]  e]2;echo "_-end-1735229411129:$?"ae]1;echoa_-end-1735229411129:0

[2024-12-27 00:11:55.728] [info]  %                                                                               
 
[2024-12-27 00:11:55.757] [info]  e]2;xiao@wingsdeMacBook-Pro:/Volumes/Windows HD/ComfyUI/mytest07ae]1;..fyUI/mytest07a
[2024-12-27 00:11:55.759] [info]  e]7;file://wingsdeMacBook-Pro.local/Volumes/Windows%20HD/ComfyUI/mytest07e\
[2024-12-27 00:11:55.759] [info]  
[5ms][/Volumes/Windows HD/ComfyUI/mytest07]$ 
[2024-12-27 00:12:45.373] [info]  App window closed. Quitting application.
[2024-12-27 00:12:45.374] [info]  App window closed. Quitting application.
[2024-12-27 00:12:56.262] [info]  Validating installation. Recorded state: [installed]
[2024-12-27 00:12:56.315] [info]  Validation result: isValid:true, state:installed, issues:0
[2024-12-27 00:12:56.455] [info]  Server start
[2024-12-27 00:12:56.671] [info]  Using uv at /Applications/ComfyUI.app/Contents/Resources/uv/macos/uv
[2024-12-27 00:12:56.672] [info]  Virtual environment already exists at /Volumes/Windows HD/ComfyUI/mytest07/.venv
[2024-12-27 00:12:56.679] [error] Log rotation: cannot access log dir.
[2024-12-27 00:12:56.680] [info]  Running command: /Volumes/Windows HD/ComfyUI/mytest07/.venv/bin/python /Applications/ComfyUI.app/Contents/Resources/ComfyUI/main.py --user-directory /Volumes/Windows HD/ComfyUI/mytest07/user --input-directory /Volumes/Windows HD/ComfyUI/mytest07/input --output-directory /Volumes/Windows HD/ComfyUI/mytest07/output --front-end-root /Applications/ComfyUI.app/Contents/Resources/ComfyUI/web_custom_versions/desktop_app --extra-model-paths-config /Users/xiao/Library/Application Support/ComfyUI/extra_models_config.yaml --port 8000 --listen 127.0.0.1 in /Volumes/Windows HD/ComfyUI/mytest07
[2024-12-27 00:12:56.692] [info]  Received renderer-ready message!
[2024-12-27 00:12:56.693] [info]  Sending queued message  loading-progress { status: 'python-setup' }
[2024-12-27 00:12:56.693] [info]  Sending queued message  loading-progress { status: 'starting-server' }
[2024-12-27 00:12:56.786] [error] Python process exited with code 1 and signal null
[2024-12-27 00:12:56.787] [error] Unhandled exception during server start Error: Python process exited with code 1 and signal null
    at ChildProcess.<anonymous> (/Applications/ComfyUI.app/Contents/Resources/app.asar/.vite/build/main.cjs:24199:18)
    at ChildProcess.emit (node:events:519:28)
    at ChildProcess._handle.onexit (node:internal/child_process:294:12)
[2024-12-27 00:13:26.322] [error] @todesktop/runtime: alwaysResolve: Promise timed out after 30000ms
[2024-12-27 00:17:17.305] [info]  App window closed. Quitting application.
[2024-12-27 00:17:17.305] [info]  Before-quit: Killing Python server
[2024-12-27 00:17:17.306] [info]  Killing ComfyUI python server.
[2024-12-27 00:17:17.306] [info]  App window closed. Quitting application.
[2024-12-27 00:17:17.307] [error] Python server did not exit properly
[2024-12-27 00:17:17.307] [error] Error: Failed to initiate kill signal for python server
    at /Applications/ComfyUI.app/Contents/Resources/app.asar/.vite/build/main.cjs:24239:16
    at new Promise (<anonymous>)
    at _ComfyServer.kill (/Applications/ComfyUI.app/Contents/Resources/app.asar/.vite/build/main.cjs:24220:12)
    at App.<anonymous> (/Applications/ComfyUI.app/Contents/Resources/app.asar/.vite/build/main.cjs:27456:24)
    at App.emit (node:events:531:35)
    at emitter.emit (/Applications/ComfyUI.app/Contents/Resources/app.asar/.vite/build/main.cjs:22035:14)
    at /Applications/ComfyUI.app/Contents/Resources/app.asar/.vite/build/main.cjs:27948:22
    at BrowserWindow.<anonymous> (/Applications/ComfyUI.app/Contents/Resources/app.asar/.vite/build/main.cjs:2448:7)
    at BrowserWindow.emit (node:events:519:28)
    at emitter.emit (/Applications/ComfyUI.app/Contents/Resources/app.asar/.vite/build/main.cjs:22035:14)
[2024-12-27 00:17:20.450] [info]  Validating installation. Recorded state: [installed]
[2024-12-27 00:17:20.496] [info]  Validation result: isValid:true, state:installed, issues:0
[2024-12-27 00:17:20.708] [info]  Server start
[2024-12-27 00:17:20.925] [info]  Using uv at /Applications/ComfyUI.app/Contents/Resources/uv/macos/uv
[2024-12-27 00:17:20.925] [info]  Virtual environment already exists at /Volumes/Windows HD/ComfyUI/mytest07/.venv
[2024-12-27 00:17:20.926] [info]  Running command: /Volumes/Windows HD/ComfyUI/mytest07/.venv/bin/python /Applications/ComfyUI.app/Contents/Resources/ComfyUI/main.py --user-directory /Volumes/Windows HD/ComfyUI/mytest07/user --input-directory /Volumes/Windows HD/ComfyUI/mytest07/input --output-directory /Volumes/Windows HD/ComfyUI/mytest07/output --front-end-root /Applications/ComfyUI.app/Contents/Resources/ComfyUI/web_custom_versions/desktop_app --extra-model-paths-config /Users/xiao/Library/Application Support/ComfyUI/extra_models_config.yaml --port 8000 --listen 127.0.0.1 in /Volumes/Windows HD/ComfyUI/mytest07
[2024-12-27 00:17:20.944] [info]  Received renderer-ready message!
[2024-12-27 00:17:20.945] [info]  Sending queued message  loading-progress { status: 'python-setup' }
[2024-12-27 00:17:20.945] [info]  Sending queued message  loading-progress { status: 'starting-server' }
[2024-12-27 00:17:20.951] [error] Python process exited with code 1 and signal null
[2024-12-27 00:17:20.952] [error] Unhandled exception during server start Error: Python process exited with code 1 and signal null
    at ChildProcess.<anonymous> (/Applications/ComfyUI.app/Contents/Resources/app.asar/.vite/build/main.cjs:24199:18)
    at ChildProcess.emit (node:events:519:28)
    at ChildProcess._handle.onexit (node:internal/child_process:294:12)
[2024-12-27 00:17:24.134] [info]  Reinstalling...
[2024-12-27 00:17:24.137] [info]  Attempting to restart app with custom message:  undefined
[2024-12-27 00:17:24.137] [info]  Skipping confirmation, restarting immediately
[2024-12-27 00:17:24.163] [info]  Before-quit: Killing Python server
[2024-12-27 00:17:24.163] [info]  Killing ComfyUI python server.
[2024-12-27 00:17:24.164] [info]  App window closed. Quitting application.
[2024-12-27 00:17:24.165] [error] Python server did not exit properly
[2024-12-27 00:17:24.165] [error] Error: Failed to initiate kill signal for python server
    at /Applications/ComfyUI.app/Contents/Resources/app.asar/.vite/build/main.cjs:24239:16
    at new Promise (<anonymous>)
    at _ComfyServer.kill (/Applications/ComfyUI.app/Contents/Resources/app.asar/.vite/build/main.cjs:24220:12)
    at App.<anonymous> (/Applications/ComfyUI.app/Contents/Resources/app.asar/.vite/build/main.cjs:27456:24)
    at App.emit (node:events:531:35)
    at emitter.emit (/Applications/ComfyUI.app/Contents/Resources/app.asar/.vite/build/main.cjs:22035:14)
    at relaunchApplication (/Applications/ComfyUI.app/Contents/Resources/app.asar/.vite/build/main.cjs:27537:24)
    at ComfyDesktopApp.restart (/Applications/ComfyUI.app/Contents/Resources/app.asar/.vite/build/main.cjs:27543:14)
    at ComfyDesktopApp.reinstall (/Applications/ComfyUI.app/Contents/Resources/app.asar/.vite/build/main.cjs:27525:10)
    at async /Applications/ComfyUI.app/Contents/Resources/app.asar/.vite/build/main.cjs:27422:7
[2024-12-27 00:17:24.576] [info]  Starting installation.
....[info]Directory already exists:...
[2024-12-27 00:17:39.274] [info]  Wrote settings to /Volumes/Windows HD/ComfyUI/mytest07/user/default/comfy.settings.json: {
  "Comfy-Desktop.AutoUpdate": false,
  "Comfy-Desktop.SendStatistics": true,
  "Comfy.ColorPalette": "dark",
  "Comfy.UseNewMenu": "Top",
  "Comfy.Workflow.WorkflowTabsPosition": "Topbar",
  "Comfy.Workflow.ShowMissingModelsWarning": true,
  "Comfy.Server.LaunchArgs": {}
}
[2024-12-27 00:17:39.274] [info]  Creating model config files in /Users/xiao/Library/Application Support/ComfyUI/extra_models_config.yaml
[2024-12-27 00:17:39.279] [info]  Created extra_model_paths.yaml at /Users/xiao/Library/Application Support/ComfyUI/extra_models_config.yaml
[2024-12-27 00:17:39.313] [info]  Received renderer-ready message!
[2024-12-27 00:17:39.440] [info]  Server start
[2024-12-27 00:17:39.441] [info]  Using uv at /Applications/ComfyUI.app/Contents/Resources/uv/macos/uv
[2024-12-27 00:17:39.441] [info]  Virtual environment already exists at /Volumes/Windows HD/ComfyUI/mytest07/.venv
[2024-12-27 00:17:39.445] [info]  Found custom nodes: []
[2024-12-27 00:17:39.452] [info]  Running command: /Volumes/Windows HD/ComfyUI/mytest07/.venv/bin/python /Applications/ComfyUI.app/Contents/Resources/ComfyUI/main.py --user-directory /Volumes/Windows HD/ComfyUI/mytest07/user --input-directory /Volumes/Windows HD/ComfyUI/mytest07/input --output-directory /Volumes/Windows HD/ComfyUI/mytest07/output --front-end-root /Applications/ComfyUI.app/Contents/Resources/ComfyUI/web_custom_versions/desktop_app --extra-model-paths-config /Users/xiao/Library/Application Support/ComfyUI/extra_models_config.yaml --port 8000 --listen 127.0.0.1 in /Volumes/Windows HD/ComfyUI/mytest07
[2024-12-27 00:17:39.478] [error] Python process exited with code 1 and signal null
[2024-12-27 00:17:39.478] [error] Unhandled exception during server start Error: Python process exited with code 1 and signal null
    at ChildProcess.<anonymous> (/Applications/ComfyUI.app/Contents/Resources/app.asar/.vite/build/main.cjs:24199:18)
    at ChildProcess.emit (node:events:519:28)
    at ChildProcess._handle.onexit (node:internal/child_process:294:12)
[2024-12-27 00:18:09.287] [error] @todesktop/runtime: alwaysResolve: Promise timed out after 30000ms

comfyui.log:

[2024-12-27 00:17:39.474] [error] Traceback (most recent call last):
  File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/main.py", line 11, in <module>

[2024-12-27 00:17:39.475] [error]     import utils.extra_config
  File "/Applications/ComfyUI.app/Contents/Resources/ComfyUI/utils/extra_config.py", line 2, in <module>
    import yaml
ModuleNotFoundError: No module named 'yaml'

Can you please send the error screen?

Are you certain you did not have more networking issues during installation? YAML not being there seems to indicate that not everything has been installed.

FYI we are looking at validating the entire virtual environment, but please understand that reproducing these issues is quite difficult for us.

After completing the installation, there were no dependencies, and my network connection was fine. So, I took the following steps and then chose the original path to reinstall, which allowed ComfyUI to start correctly and enter the workflow interface. I’m happy to share this issue and would suggest that the author provide a requirements.txt in the installation path to reinstall the dependencies.
The author might want to consider optimizing the installation logic. I suspect that issues such as the installation process ending with the command
echo "_-end-173522xxxxxx0:$?";echoa_-end-173522xxxxxx0:1
without any response, or after reinstallation showing errors like
[error] Python process exited with code 1 and signal null
or
Unhandled exception during server start Error: Python process exited with code 1 and signal null
or when selecting to display the console during installation and encountering
ModuleNotFoundError: No module named 'yaml'
—are all related to the same issue topic I encountered.
Here are the steps I took to successfully resolve the issue:
copy all pip* file

copy 'uv-cache/cpython-3.12.4-macos-aarch64-none/bin/pip*' to '.venv/bin'

after commond run:

.venv/bin/python -m pip install --upgrade pip
.venv/bin/pip install PyYAML
.venv/bin/pip install torch
.venv/bin/pip install Pillow
.venv/bin/pip install einops
.venv/bin/pip install psutil
.venv/bin/pip install torchvision
.venv/bin/pip install scipy
.venv/bin/pip install torchsde
.venv/bin/pip install aiohttp

Then, performing an overwrite installation in the original path will successfully start ComfyUI.

1 Like

Hi there,

This is a very similar method to the “manual configuration” installation option - very happy to hear you are now up and running.

The errors you encountered were mostly due to network timeouts leaving the installation in a failed state. You encountered different issues at different stages of installation. Still investigating that first error, as it is unique compared to similar, already-resolved issues. If you ever have the opportunity, a full log upload would be great.

Wrapping an interactive terminal session is non-trivial, and we really do appreciate the feedback on that.

These issues will of course be addressed before this pre-release trial is over.

comfyui_2024-12-27T02-36-44-144Z.log (4.8 KB)
comfyui.log (23.8 KB)
main.log (425.1 KB)

1 Like

comfyui_2024-12-27T02-27-04-346Z.log (5.0 KB)
comfyui_2024-12-27T02-29-12-673Z.log (5.2 KB)
comfyui_2024-12-27T02-33-40-480Z.log (5.2 KB)
comfyui_2024-12-27T02-35-18-116Z.log (5.2 KB)

1 Like

edit
/Applications/ComfyUI.app/Contents/Resources/requirements/macos.compiled

pillow==11.0.0
# via
# --override /Users/redacted/Documents/electron/assets/override.txt
# -r requirements.txt
# torchvision
# from https://pypi.org/sample

==>

pillow==11.1.0
# via
# --override /Users/redacted/Documents/electron/assets/override.txt
# -r requirements.txt
# torchvision
# from https://pypi.org/project

==>

reinstall

From the logs I see this:

[2024-12-27 10:33:49.118] [error] Traceback (most recent call last):
File “/Applications/ComfyUI.app/Contents/Resources/ComfyUI/main.py”, line 132, in

[2024-12-27 10:33:49.119] [error] import execution
File “/Applications/ComfyUI.app/Contents/Resources/ComfyUI/execution.py”, line 13, in
import nodes
File “/Applications/ComfyUI.app/Contents/Resources/ComfyUI/nodes.py”, line 23, in
import comfy.samplers
File “/Applications/ComfyUI.app/Contents/Resources/ComfyUI/comfy/samplers.py”, line 2, in
from .k_diffusion import sampling as k_diffusion_sampling
File “/Applications/ComfyUI.app/Contents/Resources/ComfyUI/comfy/k_diffusion/sampling.py”, line 6, in
import torchsde
ModuleNotFoundError: No module named ‘torchsde’

What if you install the dependencies yourself in Terminal?

cd <your chosen install path>
/Applications/ComfyUI.app/Contents/Resources/uv/macos/uv pip install -r /Applications/ComfyUI.app/Contents/Resources/ComfyUI/requirements.txt

I have completed the installation, many thanks to the author for his guidance.