Skip to content

Commit d2566eb

Browse files
Add a warning for old python versions. (comfyanonymous#8504)
1 parent ef7e885 commit d2566eb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
os.environ['HF_HUB_DISABLE_TELEMETRY'] = '1'
1818
os.environ['DO_NOT_TRACK'] = '1'
1919

20-
2120
setup_logger(log_level=args.verbose, use_stdout=args.log_stdout)
2221

2322
def apply_custom_paths():
@@ -310,6 +309,9 @@ async def start_all():
310309
logging.info("Python version: {}".format(sys.version))
311310
logging.info("ComfyUI version: {}".format(comfyui_version.__version__))
312311

312+
if sys.version_info.major == 3 and sys.version_info.minor < 10:
313+
logging.warning("WARNING: You are using a python version older than 3.10, please upgrade to a newer one. 3.12 and above is recommended.")
314+
313315
event_loop, _, start_all_func = start_comfyui()
314316
try:
315317
x = start_all_func()

0 commit comments

Comments
 (0)