[GH-ISSUE #483] [Bug]: macOS 15.2 --end- causes installation to fail #121

Closed
opened 2026-10-31 22:09:04 +00:00 by bsakaguchi · 10 comments
Owner

Originally created by @dong4j on GitHub (Dec 14, 2024).
Original GitHub issue: https://github.com/Comfy-Org/desktop/issues/483

Originally assigned to: @webfiltered on GitHub.

App Version0.3.33(241212)

Expected BehaviorAfter startup, the automated deployment kicks in and successfully opens the UI page.

Actual BehaviorCannot automate installation and deployment.

Steps to ReproduceThis time I tried installing ComfyUI-Desktop for the second time, version 0.3.33(241212). The automated install didn't work. After checking the logs and manually running the missing commands, the installation was successful. I want to give friends who run into the same issue a workaround. I'm not sure if it's a bug, but it didn't deploy correctly on my machine. So next, I'll try to reproduce the problem in the hope that the official team can fix it soon.

Here's an issue I had with the first installation ( https://github.com/Comfy-Org/desktop/issues/398 ), it seems that version 0.3.33 has fixed it, but I still run into problems under zsh, so this time I'll just use the initial .zshrc file:

export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="robbyrussell"
plugins=(git)
source $ZSH/oh-my-zsh.shThen try to start for the first time:

CleanShot!UNITO-UNDERSCORE!2024121494PlSgGY ( https://github.com/user-attachments/assets/158af3be-6d51-4cfb-b4c6-f2bad78e4cc2 )

The log is as follows:

[2024-12-14 22:01:21.481] [info] Running command: /Users/dong4j/comfy/ComfyUI/.venv/bin/python -m ensurepip --upgrade in /Users/dong4j/comfy/ComfyUI
[2024-12-14 22:01:23.353] [info] Successfully created virtual environment at /Users/dong4j/comfy/ComfyUI/.venv
[2024-12-14 22:01:23.354] [info] Installing PyTorch Nightly for macOS.
[2024-12-14 22:01:23.354] [info] Running uv command: /Applications/ComfyUI.app/Contents/Resources/uv/macos/uv pip install -U --prerelease allow torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cpu
...
[2024-12-14 22:01:23.367] [info] ]2;clear; /Applications/ComfyUI.app/Contents/Resources/uv/macos/uv "pip" "-U" ]1;clear;
[2024-12-14 22:01:23.369] [info]
[2024-12-14 22:01:23.375] [info] error: unexpected argument '--end-

┆Issue is synchronized with this Notion page by Unito

Originally created by @dong4j on GitHub (Dec 14, 2024). Original GitHub issue: https://github.com/Comfy-Org/desktop/issues/483 Originally assigned to: @webfiltered on GitHub. App Version0.3.33(241212) Expected BehaviorAfter startup, the automated deployment kicks in and successfully opens the UI page. Actual BehaviorCannot automate installation and deployment. Steps to ReproduceThis time I tried installing ComfyUI-Desktop for the second time, version 0.3.33(241212). The automated install didn't work. After checking the logs and manually running the missing commands, the installation was successful. I want to give friends who run into the same issue a workaround. I'm not sure if it's a bug, but it didn't deploy correctly on my machine. So next, I'll try to reproduce the problem in the hope that the official team can fix it soon. Here's an issue I had with the first installation ( https://github.com/Comfy-Org/desktop/issues/398 ), it seems that version 0.3.33 has fixed it, but I still run into problems under zsh, so this time I'll just use the initial .zshrc file: export ZSH="$HOME/.oh-my-zsh" ZSH_THEME="robbyrussell" plugins=(git) source $ZSH/oh-my-zsh.shThen try to start for the first time: CleanShot!UNITO-UNDERSCORE!2024121494PlSgGY ( https://github.com/user-attachments/assets/158af3be-6d51-4cfb-b4c6-f2bad78e4cc2 ) The log is as follows: [2024-12-14 22:01:21.481] [info] Running command: /Users/dong4j/comfy/ComfyUI/.venv/bin/python -m ensurepip --upgrade in /Users/dong4j/comfy/ComfyUI [2024-12-14 22:01:23.353] [info] Successfully created virtual environment at /Users/dong4j/comfy/ComfyUI/.venv [2024-12-14 22:01:23.354] [info] Installing PyTorch Nightly for macOS. [2024-12-14 22:01:23.354] [info] Running uv command: /Applications/ComfyUI.app/Contents/Resources/uv/macos/uv pip install -U --prerelease allow torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cpu ... [2024-12-14 22:01:23.367] [info] ]2;clear; /Applications/ComfyUI.app/Contents/Resources/uv/macos/uv "pip" "-U" ]1;clear; [2024-12-14 22:01:23.369] [info] [2024-12-14 22:01:23.375] [info] error: unexpected argument '--end- ┆Issue is synchronized with this [Notion page](https://www.notion.so/Issue-1969-Bug-macOS-15-2-First-time-installation-of-ComfyUI-Desktop-fails-15f6d73d36508194bf45f0ba9a9fbc29) by [Unito](https://www.unito.io)
Author
Owner

@lips85 commented on GitHub (Dec 14, 2024):

I experienced exactly the same issue as you did!

Thank you!

<!-- gh-comment-id:2543159180 --> @lips85 commented on GitHub (Dec 14, 2024): I experienced exactly the same issue as you did! Thank you!
Author
Owner

@robinjhuang commented on GitHub (Dec 19, 2024):

Thanks for reporting this. We currently add a string --end-... to the terminal output to know when the uv install ends. This was a hack to let us stream interactive shell output to our frontend.

For now what if you run the command manually?

cd <your chosen directory
/Applications/ComfyUI.app/Contents/Resources/uv/macos/uv pip install -U --prerelease allow torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cpu

Or just install pytorch in the .venv that was created

<!-- gh-comment-id:2555552814 --> @robinjhuang commented on GitHub (Dec 19, 2024): Thanks for reporting this. We currently add a string `--end-...` to the terminal output to know when the uv install ends. This was a hack to let us stream interactive shell output to our frontend. For now what if you run the command manually? ``` cd <your chosen directory /Applications/ComfyUI.app/Contents/Resources/uv/macos/uv pip install -U --prerelease allow torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cpu ``` Or just install pytorch in the .venv that was created
Author
Owner

@lpffernando commented on GitHub (Dec 20, 2024):

Same issue. How to solve? Any suggestions? Thanks.

<!-- gh-comment-id:2556813377 --> @lpffernando commented on GitHub (Dec 20, 2024): Same issue. How to solve? Any suggestions? Thanks.
Author
Owner

@webfiltered commented on GitHub (Dec 20, 2024):

Same issue. How to solve? Any suggestions? Thanks.

What happens when you run this command? Change YOUR_DIRECTORY to the location you chose at the start of the ComfyUI installer.

cd YOUR_DIRECTORY
/Applications/ComfyUI.app/Contents/Resources/uv/macos/uv pip install -U --prerelease allow torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cpu
<!-- gh-comment-id:2556837558 --> @webfiltered commented on GitHub (Dec 20, 2024): > Same issue. How to solve? Any suggestions? Thanks. What happens when you run this command? Change YOUR_DIRECTORY to the location you chose at the start of the ComfyUI installer. ``` cd YOUR_DIRECTORY /Applications/ComfyUI.app/Contents/Resources/uv/macos/uv pip install -U --prerelease allow torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cpu ```
Author
Owner

@lpffernando commented on GitHub (Dec 20, 2024):

Same issue. How to solve? Any suggestions? Thanks.

What happens when you run this command? Change YOUR_DIRECTORY to the location you chose at the start of the ComfyUI installer.

cd YOUR_DIRECTORY
/Applications/ComfyUI.app/Contents/Resources/uv/macos/uv pip install -U --prerelease allow torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cpu

it works well when I use cmd ,and still not work when I use app, I think it's caused by the shell settings when start the app
image

<!-- gh-comment-id:2557135514 --> @lpffernando commented on GitHub (Dec 20, 2024): > > Same issue. How to solve? Any suggestions? Thanks. > > What happens when you run this command? Change YOUR_DIRECTORY to the location you chose at the start of the ComfyUI installer. > > ``` > cd YOUR_DIRECTORY > /Applications/ComfyUI.app/Contents/Resources/uv/macos/uv pip install -U --prerelease allow torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cpu > ``` it works well when I use cmd ,and still not work when I use app, I think it's caused by the shell settings when start the app <img width="1920" alt="image" src="https://github.com/user-attachments/assets/3f338041-90f1-41b8-8ddb-cbf695805a8a" />
Author
Owner

@webfiltered commented on GitHub (Dec 20, 2024):

it works well when I use cmd ,and still not work when I use app, I think it's caused by the shell settings when start the app

Yeah! That's exactly what we were testing.

It seems like the echo being run in your shell is rejecting the command because it does not like the -- at the start of the first argument (despite the double-quotes, which is the weird part). Fix is in for this now and should be in next version.

For now, @dong4j mentioned a workaround about using the default zsh config - does temporarily using the default .zshrc work for you?

<!-- gh-comment-id:2557198481 --> @webfiltered commented on GitHub (Dec 20, 2024): > it works well when I use cmd ,and still not work when I use app, I think it's caused by the shell settings when start the app Yeah! That's exactly what we were testing. It seems like the `echo` being run in your shell is rejecting the command because it does not like the `--` at the start of the first argument (despite the double-quotes, which is the weird part). Fix is in for this now and should be in next version. For now, @dong4j mentioned a workaround about using the default `zsh` config - does temporarily using the default `.zshrc` work for you?
Author
Owner

@lpffernando commented on GitHub (Dec 20, 2024):

it works well when I use cmd ,and still not work when I use app, I think it's caused by the shell settings when start the app

Yeah! That's exactly what we were testing.

It seems like the echo being run in your shell is rejecting the command because it does not like the -- at the start of the first argument (despite the double-quotes, which is the weird part). Fix is in for this now and should be in next version.

For now, @dong4j mentioned a workaround about using the default zsh config - does temporarily using the default .zshrc work for you?

my .zshrc is simple, just conda initialize and proxy setting, the app may not use the proxy settings correctly...

<!-- gh-comment-id:2557876543 --> @lpffernando commented on GitHub (Dec 20, 2024): > > it works well when I use cmd ,and still not work when I use app, I think it's caused by the shell settings when start the app > > Yeah! That's exactly what we were testing. > > It seems like the `echo` being run in your shell is rejecting the command because it does not like the `--` at the start of the first argument (despite the double-quotes, which is the weird part). Fix is in for this now and should be in next version. > > For now, @dong4j mentioned a workaround about using the default `zsh` config - does temporarily using the default `.zshrc` work for you? my .zshrc is simple, just conda initialize and proxy setting, the app may not use the proxy settings correctly...
Author
Owner

@webfiltered commented on GitHub (Dec 21, 2024):

Fixes for terminal issues are in the pipeline - will be in the next release.

<!-- gh-comment-id:2557918429 --> @webfiltered commented on GitHub (Dec 21, 2024): Fixes for terminal issues are in the pipeline - will be in the next release.
Author
Owner

@richtong commented on GitHub (Dec 24, 2024):

Has this been fixed on 0.40. I'm having this hang with MacOS 15.2, but confused when you say CD into your DIRECTORY what you mean? What is the normal default? OH I see from the video, ComfyUI is really an installer, so you need a local installation location.

I found the Mac logs in ~/Library/Log/ComfyUI/main.log and it shows the hang

[2024-12-24 00:16:08.505] [info]  Settings file /Users/rich/Documents/ComfyUI/user/default/comfy.settings.json does not exist. Using default settings.
[2024-12-24 00:16:08.760] [info]  Server start
[2024-12-24 00:16:08.958] [info]  Using uv at /Applications/ComfyUI.app/Contents/Resources/uv/macos/uv
[2024-12-24 00:16:08.958] [info]  Creating virtual environment at /Users/rich/Documents/ComfyUI/.venv with python 3.12.4
[2024-12-24 00:16:08.959] [info]  Running uv command: /Applications/ComfyUI.app/Contents/Resources/uv/macos/uv venv --python 3.12.4
[2024-12-24 00:16:08.960] [info]  clear; /Applications/ComfyUI.app/Contents/Resources/uv/macos/uv "venv" "--python" "3.12.4"; echo "--end-1735028168959:$?"


[2024-12-24 00:16:08.977] [info]  Received renderer-ready message!
[2024-12-24 00:16:08.977] [info]  Sending queued message  loading-progress { status: 'python-setup' }
[2024-12-24 00:16:08.978] [info]  Sending queued message  log-message clear; /Applications/ComfyUI.app/Contents/Resources/uv/macos/uv "venv" "--python" "3.12.4"; echo "--end-1735028168959:$?"

OK, really different from a typical Mac app, might want to consider changing the Mac name to "ComfyUIInstaller" :=) and set a default to ~/Applications/ComfyUI

But I've run

mkdir -p ~/Applications/ComfyUI.app
cd ~/Applications/ComfyUI.app
# setup the vent
/Applications/ComfyUI.app/Contents/Resources/uv/macos/uv pip install -U --prerelease allow torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cpu
# install requirements
/Applications/ComfyUI.app/Contents/Resources/uv/macos/uv pip install -U --prerelease allow torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cpu

As you suggest, so wondering what are the next steps. I have the ComfyUI.app 0.40 just hanging on the --end

<!-- gh-comment-id:2560801511 --> @richtong commented on GitHub (Dec 24, 2024): Has this been fixed on 0.40. I'm having this hang with MacOS 15.2, but confused when you say CD into your DIRECTORY what you mean? What is the normal default? OH I see from the video, ComfyUI is really an installer, so you need a local installation location. I found the Mac logs in `~/Library/Log/ComfyUI/main.log` and it shows the hang ``` [2024-12-24 00:16:08.505] [info] Settings file /Users/rich/Documents/ComfyUI/user/default/comfy.settings.json does not exist. Using default settings. [2024-12-24 00:16:08.760] [info] Server start [2024-12-24 00:16:08.958] [info] Using uv at /Applications/ComfyUI.app/Contents/Resources/uv/macos/uv [2024-12-24 00:16:08.958] [info] Creating virtual environment at /Users/rich/Documents/ComfyUI/.venv with python 3.12.4 [2024-12-24 00:16:08.959] [info] Running uv command: /Applications/ComfyUI.app/Contents/Resources/uv/macos/uv venv --python 3.12.4 [2024-12-24 00:16:08.960] [info] clear; /Applications/ComfyUI.app/Contents/Resources/uv/macos/uv "venv" "--python" "3.12.4"; echo "--end-1735028168959:$?" [2024-12-24 00:16:08.977] [info] Received renderer-ready message! [2024-12-24 00:16:08.977] [info] Sending queued message loading-progress { status: 'python-setup' } [2024-12-24 00:16:08.978] [info] Sending queued message log-message clear; /Applications/ComfyUI.app/Contents/Resources/uv/macos/uv "venv" "--python" "3.12.4"; echo "--end-1735028168959:$?" ``` OK, really different from a typical Mac app, might want to consider changing the Mac name to "ComfyUIInstaller" :=) and set a default to ~/Applications/ComfyUI But I've run ``` mkdir -p ~/Applications/ComfyUI.app cd ~/Applications/ComfyUI.app # setup the vent /Applications/ComfyUI.app/Contents/Resources/uv/macos/uv pip install -U --prerelease allow torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cpu # install requirements /Applications/ComfyUI.app/Contents/Resources/uv/macos/uv pip install -U --prerelease allow torch torchvision torchaudio --extra-index-url https://download.pytorch.org/whl/nightly/cpu ``` As you suggest, so wondering what are the next steps. I have the ComfyUI.app 0.40 just hanging on the --end
Author
Owner

@webfiltered commented on GitHub (Dec 24, 2024):

Hi there, this release should have the relevant bugs fixed:

https://dl.todesktop.com/241012ess7yxs0e/builds/241221fp3hq46zr/mac/dmg/arm64

(This is a direct link and should be digitally signed the same as the releases on GitHub.)

<!-- gh-comment-id:2561231028 --> @webfiltered commented on GitHub (Dec 24, 2024): Hi there, this release should have the relevant bugs fixed: https://dl.todesktop.com/241012ess7yxs0e/builds/241221fp3hq46zr/mac/dmg/arm64 (This is a direct link and should be digitally signed the same as the releases on GitHub.)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Comfy-Org/desktop#121
No description provided.