From 15ef9b976075e3cfb1da2ed0216e580bc920ab50 Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Sat, 27 Jul 2024 11:25:08 +0900 Subject: [PATCH] hotfix: Temporarily pin `numpy` installation to `numpy<2` numpy 2 is breaking many package dependencies --- cm-cli.py | 1 + glob/manager_core.py | 2 +- prestartup_script.py | 1 + pyproject.toml | 2 +- 4 files changed, 4 insertions(+), 2 deletions(-) diff --git a/cm-cli.py b/cm-cli.py index 518461c5..f2327093 100644 --- a/cm-cli.py +++ b/cm-cli.py @@ -40,6 +40,7 @@ if os.path.exists(pip_overrides_path): with open(pip_overrides_path, 'r', encoding="UTF-8", errors="ignore") as json_file: cm_global.pip_overrides = json.load(json_file) + cm_global.pip_overrides['numpy'] = 'numpy<2' def check_comfyui_hash(): diff --git a/glob/manager_core.py b/glob/manager_core.py index cd0ca830..be4657d0 100644 --- a/glob/manager_core.py +++ b/glob/manager_core.py @@ -23,7 +23,7 @@ import cm_global from manager_util import * -version = [2, 48, 1] +version = [2, 48, 2] version_str = f"V{version[0]}.{version[1]}" + (f'.{version[2]}' if len(version) > 2 else '') diff --git a/prestartup_script.py b/prestartup_script.py index 163a9880..17f7fd84 100644 --- a/prestartup_script.py +++ b/prestartup_script.py @@ -82,6 +82,7 @@ def check_file_logging(): if os.path.exists(pip_overrides_path): with open(pip_overrides_path, 'r', encoding="UTF-8", errors="ignore") as json_file: cm_global.pip_overrides = json.load(json_file) + cm_global.pip_overrides['numpy'] = 'numpy<2' def remap_pip_package(pkg): diff --git a/pyproject.toml b/pyproject.toml index 587a6445..b5b206eb 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 = "2.48.1" +version = "2.48.2" license = "LICENSE" dependencies = ["GitPython", "PyGithub", "matrix-client==0.4.0", "transformers", "huggingface-hub>0.20", "typer", "rich", "typing-extensions"]