From a0aee41f1af051987688888596f4a3c4d1b28933 Mon Sep 17 00:00:00 2001 From: "Dr.Lt.Data" Date: Wed, 25 Jun 2025 12:44:26 +0900 Subject: [PATCH] fixed: Support configuration with use_uv enabled in environments where only uv exists without pip. https://github.com/Comfy-Org/ComfyUI-Manager/issues/1828 --- glob/manager_core.py | 2 +- glob/security_check.py | 6 ++++-- prestartup_script.py | 2 +- pyproject.toml | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/glob/manager_core.py b/glob/manager_core.py index 71f9a000..9f261def 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, 33, 2] +version_code = [3, 33, 3] version_str = f"V{version_code[0]}.{version_code[1]}" + (f'.{version_code[2]}' if len(version_code) > 2 else '') diff --git a/glob/security_check.py b/glob/security_check.py index fb0e376f..cb694730 100644 --- a/glob/security_check.py +++ b/glob/security_check.py @@ -2,6 +2,8 @@ import sys import subprocess import os +import manager_util + def security_check(): print("[START] Security scan") @@ -66,11 +68,11 @@ https://blog.comfy.org/comfyui-statement-on-the-ultralytics-crypto-miner-situati "lolMiner": [os.path.join(comfyui_path, 'lolMiner')] } - installed_pips = subprocess.check_output([sys.executable, '-m', "pip", "freeze"], text=True) + installed_pips = subprocess.check_output(manager_util.make_pip_cmd(["freeze"]), text=True) detected = set() try: - anthropic_info = subprocess.check_output([sys.executable, '-m', "pip", "show", "anthropic"], text=True, stderr=subprocess.DEVNULL) + anthropic_info = subprocess.check_output(manager_util.make_pip_cmd(["show", "anthropic"]), text=True, stderr=subprocess.DEVNULL) anthropic_reqs = [x for x in anthropic_info.split('\n') if x.startswith("Requires")][0].split(': ')[1] if "pycrypto" in anthropic_reqs: location = [x for x in anthropic_info.split('\n') if x.startswith("Location")][0].split(': ')[1] diff --git a/prestartup_script.py b/prestartup_script.py index 1971067f..67ff4347 100644 --- a/prestartup_script.py +++ b/prestartup_script.py @@ -38,7 +38,6 @@ else: def current_timestamp(): return str(time.time()).split('.')[0] -security_check.security_check() cm_global.pip_blacklist = {'torch', 'torchaudio', 'torchsde', 'torchvision'} cm_global.pip_downgrade_blacklist = ['torch', 'torchaudio', 'torchsde', 'torchvision', 'transformers', 'safetensors', 'kornia'] @@ -119,6 +118,7 @@ def check_file_logging(): read_config() read_uv_mode() +security_check.security_check() check_file_logging() if sys.version_info < (3, 13): diff --git a/pyproject.toml b/pyproject.toml index a794625d..816db1b0 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.33.2" +version = "3.33.3" license = { file = "LICENSE.txt" } dependencies = ["GitPython", "PyGithub", "matrix-client==0.4.0", "transformers", "huggingface-hub>0.20", "typer", "rich", "typing-extensions", "toml", "uv", "chardet"]