From b1df9fbb6683eeb2ebe7973d53a3810c31a7f5e8 Mon Sep 17 00:00:00 2001 From: Adam Skinner Date: Sun, 16 Jul 2023 16:23:37 -0400 Subject: [PATCH] Fix for incompatible operator error When attempting to install a new custom node, I received the following error: > Install(git-clone) error: / '>=' not supported between instances of 'str' and 'int' This fixed it for me --- __init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/__init__.py b/__init__.py index b7649fe..cf5e9fe 100644 --- a/__init__.py +++ b/__init__.py @@ -51,7 +51,7 @@ startup_script_path = os.path.join(comfyui_manager_path, "startup-scripts") def try_install_script(url, repo_path, install_cmd): - if platform.system() == "Windows" and comfy_ui_revision >= 1152: + if platform.system() == "Windows" and (not comfy_ui_revision.isdigit() or int(comfy_ui_revision) >= 1152): if not os.path.exists(startup_script_path): os.makedirs(startup_script_path) @@ -829,4 +829,4 @@ async def install_model(request): NODE_CLASS_MAPPINGS = {} -__all__ = ['NODE_CLASS_MAPPINGS'] \ No newline at end of file +__all__ = ['NODE_CLASS_MAPPINGS']