ComfyUI-Manager icon indicating copy to clipboard operation
ComfyUI-Manager copied to clipboard

Failed to execute startup-script: F:\comfyui3\ComfyUI\custom_nodes\ComfyUI-Manager\prestartup_script.py / Failed to initialize: list index out of range

Open MusStudio opened this issue 1 year ago • 2 comments

Failed to execute startup-script: F:\comfyui3\ComfyUI\custom_nodes\ComfyUI-Manager\prestartup_script.py / Failed to initialize: list index out of range

Prestartup times for custom nodes: 0.0 seconds: F:\comfyui3\ComfyUI\custom_nodes\rgthree-comfy 0.0 seconds: F:\comfyui3\ComfyUI\custom_nodes\ComfyUI-Easy-Use 0.0 seconds: F:\comfyui3\ComfyUI\custom_nodes\ComfyUI-Marigold 0.0 seconds: F:\comfyui3\ComfyUI\custom_nodes\comfyui-lumi-batcher 0.5 seconds: F:\comfyui3\ComfyUI\custom_nodes\ComfyUI-PMRF 7.7 seconds (PRESTARTUP FAILED): F:\comfyui3\ComfyUI\custom_nodes\ComfyUI-Manager

Checkpoint files will always be loaded safely. Total VRAM 32607 MB, total RAM 64916 MB pytorch version: 2.7.0+cu128 xformers version: 0.0.30 Enabled fp16 accumulation. Set vram state to: NORMAL_VRAM Device: cuda:0 NVIDIA GeForce RTX 5090 D : cudaMallocAsync Using sage attention Python version: 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)] ComfyUI version: 0.3.57 comfyui-frontend-package not found in requirements.txt Failed to check frontend version: 'NoneType' object has no attribute 'split' [Prompt Server] web root: F:\comfyui3\python\lib\site-packages\comfyui_frontend_package\static W0910 16:21:22.309000 26112 site-packages\torch\distributed\elastic\multiprocessing\redirects.py:29] NOTE: Redirects are currently not supported in Windows or MacOs. Note: NumExpr detected 24 cores but "NUMEXPR_MAX_THREADS" not set, so enforcing safe limit of 8. NumExpr defaulting to 8 threads. Traceback (most recent call last): File "F:\comfyui3\python\lib\site-packages\git_init_.py", line 296, in refresh() File "F:\comfyui3\python\lib\site-packages\git_init_.py", line 289, in refresh if not FetchInfo.refresh(): # noqa: F405 File "F:\comfyui3\python\lib\site-packages\git\remote.py", line 344, in refresh if Git().version_info[:2] >= (2, 10): File "F:\comfyui3\python\lib\site-packages\git\cmd.py", line 992, in getattribute return super().getattribute(name) File "F:\comfyui3\python\lib\site-packages\git\cmd.py", line 1041, in version_info version_string = process_version.split(" ")[2] IndexError: list index out of range

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "F:\comfyui3\ComfyUI\nodes.py", line 2129, in load_custom_node module_spec.loader.exec_module(module) File "", line 883, in exec_module File "", line 241, in call_with_frames_removed File "F:\comfyui3\ComfyUI\custom_nodes\antrobots-comfyUI-nodepack_init.py", line 1, in from .utils.globals import NODE_CLASS_MAPPINGS, NODE_DISPLAY_NAME_MAPPINGS File "F:\comfyui3\ComfyUI\custom_nodes\antrobots-comfyUI-nodepack\utils\globals.py", line 18, in from ..image_nodes import NODE_CLASS_MAPPINGS as image_nodes File "F:\comfyui3\ComfyUI\custom_nodes\antrobots-comfyUI-nodepack\image_nodes.py", line 1, in from git import Optional File "F:\comfyui3\python\lib\site-packages\git_init_.py", line 298, in raise ImportError("Failed to initialize: {0}".format(_exc)) from _exc ImportError: Failed to initialize: list index out of range

MusStudio avatar Sep 10 '25 08:09 MusStudio

Execute following command in cmd.

git --version

What messages are displayed?

ltdrdata avatar Sep 15 '25 23:09 ltdrdata

Failed to initialize: list index out of range is raised by GitPython when it is imported and cannot read a version from the output of git --version. The log shows another node pack (antrobots-comfyUI-nodepack) failing on the same import git, so it comes from the Git installation on that machine, not from the Manager. Installing a current Git for Windows, so that git --version prints a line like git version 2.x.y, resolves it.

Closing, since the output of git --version asked for above was not provided. Please reopen with that output if it still happens.

ltdrdata avatar Nov 14 '26 13:11 ltdrdata