Skip to content

Commit

Permalink
improved: better frontend package installation guide (#7047)
Browse files Browse the repository at this point in the history
* improved: better installation guide
- change `pip` to `{sys.executable} -m pip`
modified: To prevent the guide message from being obscured by a complex error message, apply `exit` instead of `raise`.

* ruff fix
  • Loading branch information
ltdrdata authored Mar 3, 2025
1 parent 6752a82 commit d6e5d48
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/frontend_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import logging
import os
import re
import sys
import tempfile
import zipfile
import importlib
Expand All @@ -19,10 +20,10 @@

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
Expand Down

0 comments on commit d6e5d48

Please sign in to comment.