From 2b140654c7ee9cd5e70800e75b0481dd08ef3b49 Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" <128333288+ltdrdata@users.noreply.github.com> Date: Wed, 5 Mar 2025 13:29:34 +0900 Subject: [PATCH] suggest absolute full path to the `requirements.txt` instead of just `requirements.txt` (#7079) For users of the portable version, there are occasional instances where commands are misinterpreted. --- app/frontend_management.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/frontend_management.py b/app/frontend_management.py index 20345faf1..9ab1334db 100644 --- a/app/frontend_management.py +++ b/app/frontend_management.py @@ -22,7 +22,8 @@ try: import comfyui_frontend_package except ImportError: # TODO: Remove the check after roll out of 0.3.16 - logging.error(f"\n\n********** ERROR ***********\n\ncomfyui-frontend-package is not installed. Please install the updated requirements.txt file by running:\n{sys.executable} -m pip install -r requirements.txt\n\nThis error is happening because the ComfyUI frontend is no longer shipped as part of the main repo but as a pip package instead.\n********** ERROR **********\n") + req_path = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', 'requirements.txt')) + logging.error(f"\n\n********** ERROR ***********\n\ncomfyui-frontend-package is not installed. Please install the updated requirements.txt file by running:\n{sys.executable} -m pip install -r {req_path}\n\nThis error is happening because the ComfyUI frontend is no longer shipped as part of the main repo but as a pip package instead.\n********** ERROR **********\n") exit(-1)