diff --git a/glob/manager_core.py b/glob/manager_core.py index e0263462..844216a8 100644 --- a/glob/manager_core.py +++ b/glob/manager_core.py @@ -43,7 +43,7 @@ import manager_downloader from node_package import InstalledNodePackage -version_code = [3, 31, 4] +version_code = [3, 31, 5] version_str = f"V{version_code[0]}.{version_code[1]}" + (f'.{version_code[2]}' if len(version_code) > 2 else '') diff --git a/glob/manager_util.py b/glob/manager_util.py index 3edb3fc0..c3ed12e0 100644 --- a/glob/manager_util.py +++ b/glob/manager_util.py @@ -439,10 +439,12 @@ class PIPFixer: lines = file.readlines() front_line = next((line.strip() for line in lines if line.startswith('comfyui-frontend-package')), None) - cmd = make_pip_cmd(['install', front_line]) - subprocess.check_output(cmd , universal_newlines=True) - - logging.info("[ComfyUI-Manager] 'comfyui-frontend-package' dependency were fixed") + if front_line is None: + logging.info("[ComfyUI-Manager] Skipped fixing the 'comfyui-frontend-package' dependency because the ComfyUI is outdated.") + else: + cmd = make_pip_cmd(['install', front_line]) + subprocess.check_output(cmd , universal_newlines=True) + logging.info("[ComfyUI-Manager] 'comfyui-frontend-package' dependency were fixed") except Exception as e: logging.error("[ComfyUI-Manager] Failed to restore comfyui-frontend-package") logging.error(e) diff --git a/pyproject.toml b/pyproject.toml index 3f56cdf5..6b6cb62e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "comfyui-manager" description = "ComfyUI-Manager provides features to install and manage custom nodes for ComfyUI, as well as various functionalities to assist with ComfyUI." -version = "3.31.4" +version = "3.31.5" license = { file = "LICENSE.txt" } dependencies = ["GitPython", "PyGithub", "matrix-client==0.4.0", "transformers", "huggingface-hub>0.20", "typer", "rich", "typing-extensions", "toml", "uv", "chardet"]