mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2025-12-19 19:13:02 +08:00
fixed: issue of not properly detecting the removal of the comfyui_manager package in a conda environment.
This commit is contained in:
parent
e0f111c6eb
commit
31469f962f
5
main.py
5
main.py
@ -11,14 +11,15 @@ import itertools
|
||||
import utils.extra_config
|
||||
import logging
|
||||
import sys
|
||||
import importlib.util
|
||||
from comfy_execution.progress import get_progress_state
|
||||
from comfy_execution.utils import get_executing_context
|
||||
from comfy_api import feature_flags
|
||||
|
||||
if not args.disable_manager:
|
||||
try:
|
||||
if importlib.util.find_spec("comfyui_manager"):
|
||||
import comfyui_manager
|
||||
except Exception:
|
||||
else:
|
||||
logging.warning(f"\n\nUnable to run comfyui-manager, disabling it. To enable comfyui-manager, run the following command:\ncommand:\n\t{sys.executable} -m pip install --pre comfyui_manager\n")
|
||||
args.disable_manager = True
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user