Skip to content

The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.

improved: better frontend package installation guide (#7047)

Dr.Lt.Datad6e5d487ad66
diff --git a/app/frontend_management.py b/app/frontend_management.py
index 3ebcc4c4d..20345faf1 100644
--- a/app/frontend_management.py
+++ b/app/frontend_management.py
@@ -3,6 +3,7 @@ import argparse
import logging
import os
import re
+import sys
import tempfile
import zipfile
import importlib
@@ -19,10 +20,10 @@ from comfy.cli_args import DEFAULT_VERSION_STRING
try:
import comfyui_frontend_package
-except ImportError as e:
+except ImportError:
# TODO: Remove the check after roll out of 0.3.16
- logging.error("\n\n********** ERROR ***********\n\ncomfyui-frontend-package is not installed. Please install the updated requirements.txt file by running:\npip 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")
- raise e
+ 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")
+ exit(-1)
REQUEST_TIMEOUT = 10 # seconds