The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
fix(manager): improve install guidance when comfyui-manager is not installed (#12810)
Dr.Lt.Data740d998c9cc8
diff --git a/main.py b/main.pyindex 1977f9362..83a7244db 100644--- a/main.py+++ b/main.py@@ -3,6 +3,7 @@ comfy.options.enable_args_parsing()import osimport importlib.util+import shutilimport importlib.metadataimport folder_pathsimport time@@ -64,8 +65,15 @@ if __name__ == "__main__":def handle_comfyui_manager_unavailable():- if not args.windows_standalone_build:- logging.warning(f"\n\nYou appear to be running comfyui-manager from source, this is not recommended. Please install comfyui-manager using the following command:\ncommand:\n\t{sys.executable} -m pip install --pre comfyui_manager\n")+ manager_req_path = os.path.join(os.path.dirname(os.path.abspath(folder_paths.__file__)), "manager_requirements.txt")+ uv_available = shutil.which("uv") is not None++ pip_cmd = f"{sys.executable} -m pip install -r {manager_req_path}"+ msg = f"\n\nTo use the `--enable-manager` feature, the `comfyui-manager` package must be installed first.\ncommand:\n\t{pip_cmd}"+ if uv_available:+ msg += f"\nor using uv:\n\tuv pip install -r {manager_req_path}"+ msg += "\n"+ logging.warning(msg)args.enable_manager = False@@ -173,7 +181,6 @@ execute_prestartup_script()# Main codeimport asyncio-import shutilimport threadingimport gcdiff --git a/manager_requirements.txt b/manager_requirements.txtindex c420cc48e..6bcc3fb50 100644--- a/manager_requirements.txt+++ b/manager_requirements.txt@@ -1 +1 @@-comfyui_manager==4.1b1+comfyui_manager==4.1b2\ No newline at end of file