Comfy-Org / comfy-cli

Command Line Interface for Managing ComfyUI
https://docs.comfy.org/comfy-cli/getting-started
GNU General Public License v3.0
230 stars 36 forks source link

install failed. '<folder>' already exists. #77

Closed liusida closed 4 months ago

liusida commented 4 months ago

Here is the error:

(Comfy) [clash] PS C:\ComfyUI> comfy  --workspace=C:/ComfyUI/comfy-dummy --skip-prompt install --nvidia
╭──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────  Update Available! ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ ✨ Newer version of comfy-cli is available: 0.27.                                                                                                                                                                                                                                       │
│ Current version: 0.0.0                                                                                                                                                                                                                                                                  │
│ Update by running: 'pip install --upgrade comfy-cli' ⬆                                                                                                                                                                                                                                  │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Installing from 'https://github.com/comfyanonymous/ComfyUI' to 'C:\ComfyUI\comfy-dummy'
'C:\ComfyUI\comfy-dummy' already exists. But it is an invalid ComfyUI repository. Remove it and retry.

I am using the recent main branch.

And I saw it was caused by this line: https://github.com/yoland68/comfy-cli/blob/57fa0323bc60549f6e2c7fed2ba1cee62eae2b28/comfy_cli/command/install.py#L174

And I don't understand why it would run git clone if the folder exists, @ltdrdata , is a not missing here?

ltdrdata commented 4 months ago

oh... that's a bug....