comfy-cli icon indicating copy to clipboard operation
comfy-cli copied to clipboard

Having problem with set-default and --workspace commands

Open scaruslooner opened this issue 1 year ago • 2 comments

Describe the bug A clear and concise description of what the bug is. image

(env) Z:\AI\ComfyUI>comfy set-default "Z:\AI\ComfyUI"
warn: The recent workspace Z:\AI\ComfyUI_windows_portable\ComfyUI is not a valid ComfyUI path.

Specified path is not a ComfyUI path: Z:\AI\ComfyUI.


(env) Z:\AI\ComfyUI>comfy set-default "Z:\AI\ComfyUI\main.py"
warn: The recent workspace Z:\AI\ComfyUI_windows_portable\ComfyUI is not a valid ComfyUI path.

Specified path is not a ComfyUI path: Z:\AI\ComfyUI\main.py.


(env) Z:\AI\ComfyUI>comfy set-default ComfyUI
warn: The recent workspace Z:\AI\ComfyUI_windows_portable\ComfyUI is not a valid ComfyUI path.

Path not found: Z:\AI\ComfyUI\ComfyUI.

(env) Z:\AI\ComfyUI>cd AI
The system cannot find the path specified.

(env) Z:\AI\ComfyUI>cd Z:\AI

(env) Z:\AI>comfy set-default ComfyUI
warn: The recent workspace Z:\AI\ComfyUI_windows_portable\ComfyUI is not a valid ComfyUI path.

Specified path is not a ComfyUI path: Z:\AI\ComfyUI.

(env) Z:\AI>cd Z:\AI\ComfyUI

To Reproduce Steps to reproduce the behavior py -3.10 -m venv env env\Scripts\Activate pip install comfy-cli

Expected behavior It wont set the workspace so I cant launch it.

scaruslooner avatar Nov 10 '24 00:11 scaruslooner

This is a a bit different than scaruslooner bug but still due to workspace:

Trying to install ComfyUI and ComfyUI manager: (https://github.com/ltdrdata/ComfyUI-Manager)

Installation[method3] (Installation through comfy-cli: install ComfyUI and ComfyUI-Manager at once.) RECOMMENDED: comfy-cli provides various features to manage ComfyUI from the CLI. prerequisite: python 3, git Windows: python -m venv venv venv\Scripts\activate pip install comfy-cli comfy install

At the step comfy install the warning appear twice (venv) PS D:\comfy> comfy install warn: The recent workspace None is not a valid ComfyUI path. warn: The recent workspace None is not a valid ComfyUI path. ? What GPU do you have? nvidia Install from https://github.com/comfyanonymous/ComfyUI to C:\Users\PL\Documents\comfy\ComfyUI? [y/N]:

My environment venv is correct. I checked in D:\comfy\venv\Scripts the files activate.bat and activate.ps1 It appear to me that activate.ps1 is not able to get my venv environment (I may be wrong I'm learning coding)

In any case an issue occurs to set the installation directory (workspace) for ComfyUI.

I tried to push the workspace : "comfy install --workspace D:\comfy\comfyui" but this is not a valid command

Any thoughts how to solve this ?

P1LeFR avatar Dec 08 '24 12:12 P1LeFR

Has there been any progress on this issue? i get same problem.

saberuster avatar Nov 02 '25 06:11 saberuster