Skip to content

Unable to correctly install scepter with ComfyUI #111

Open

Description

@aaaron7

With Python 3.12, I can correctly install the Node, but get error "ImportError: cannot import name 'find_loader' from 'importlib'" when running the workflow.

With Python 3.10, Can't install the plugin because only aliyun-sdk-core(2.13.10) can be installed, but scepter requires minimum version 2.13.12.

Activity

  1. yaosheng216 commented on May 16, 2025

    @yaosheng216
    Contributor

    @aaaron7 You can try used python 3.10.15 to install.

  2. aaaron7 commented on May 16, 2025

    @aaaron7
    Author

    @aaaron7 You can try used python 3.10.15 to install.

    Thanks, Now I successfully installed scepter , but encounter another error when i try run ACE workflow

    25-05-16T20:44:20.777584 - scepter [INFO] 2025-05-16 20:44:20,776 [File: diffusion_inference.py Function: dynamic_load at line 283]  Loading first_stage_model model
    2025-05-16T20:44:21.217222 - scepter [INFO] 2025-05-16 20:44:21,217 [File: diffusion_inference.py Function: dynamic_unload at line 308]  Unloading first_stage_model model
    2025-05-16T20:44:21.297776 - scepter [INFO] 2025-05-16 20:44:21,297 [File: diffusion_inference.py Function: dynamic_load at line 283]  Loading cond_stage_model model
    2025-05-16T20:44:24.323539 - scepter [INFO] 2025-05-16 20:44:24,322 [File: diffusion_inference.py Function: dynamic_unload at line 308]  Unloading cond_stage_model model
    2025-05-16T20:44:27.331171 - scepter [INFO] 2025-05-16 20:44:27,331 [File: diffusion_inference.py Function: dynamic_load at line 283]  Loading first_stage_model model
    2025-05-16T20:44:27.609839 - scepter [INFO] 2025-05-16 20:44:27,609 [File: diffusion_inference.py Function: dynamic_unload at line 308]  Unloading first_stage_model model
    2025-05-16T20:44:27.690124 - scepter [INFO] 2025-05-16 20:44:27,690 [File: diffusion_inference.py Function: dynamic_load at line 283]  Loading diffusion_model model
    2025-05-16T20:44:27.782363 - !!! Exception during processing !!! Failed to init class <class 'scepter.modules.model.backbone.ace.ace.ACE'>, with 
    2025-05-16T20:44:27.785295 - Traceback (most recent call last):
      File "C:\Users\admin\miniforge3\envs\myenv\lib\site-packages\scepter\modules\utils\registry.py", line 85, in build_from_config
        return req_type_entry(cfg, logger=logger, *args, **kwargs)
      File "C:\Users\admin\miniforge3\envs\myenv\lib\site-packages\scepter\modules\model\backbone\ace\ace.py", line 136, in __init__
        self.blocks = nn.ModuleList([
      File "C:\Users\admin\miniforge3\envs\myenv\lib\site-packages\scepter\modules\model\backbone\ace\ace.py", line 137, in <listcomp>
        ACEBlock(self.hidden_size,
      File "C:\Users\admin\miniforge3\envs\myenv\lib\site-packages\scepter\modules\model\backbone\ace\layers.py", line 41, in __init__
        self.attn = MultiHeadAttention(hidden_size,
      File "C:\Users\admin\miniforge3\envs\myenv\lib\site-packages\scepter\modules\model\backbone\ace\layers.py", line 133, in __init__
        raise NotImplementedError
    NotImplementedError
    
    During handling of the above exception, another exception occurred:
    
    Traceback (most recent call last):
      File "D:\comfyui_manual\ComfyUI\execution.py", line 349, in execute
        output_data, output_ui, has_subgraph = get_output_data(obj, input_data_all, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
      File "D:\comfyui_manual\ComfyUI\execution.py", line 224, in get_output_data
        return_values = _map_node_over_list(obj, input_data_all, obj.FUNCTION, allow_interrupt=True, execution_block_cb=execution_block_cb, pre_execute_cb=pre_execute_cb)
      File "D:\comfyui_manual\ComfyUI\execution.py", line 196, in _map_node_over_list
        process_inputs(input_dict, i)
      File "D:\comfyui_manual\ComfyUI\execution.py", line 185, in process_inputs
        results.append(getattr(obj, func)(**inputs))
      File "D:\comfyui_manual\ComfyUI\custom_nodes\ComfyUI-Scepter\model_node.py", line 75, in execute
        output = self.diff_infer(**data[0], **data[1])
      File "C:\Users\admin\miniforge3\envs\myenv\lib\site-packages\torch\utils\_contextlib.py", line 116, in decorate_context
        return func(*args, **kwargs)
      File "C:\Users\admin\miniforge3\envs\myenv\lib\site-packages\scepter\modules\inference\ace_inference.py", line 454, in __call__
        self.dynamic_load(self.diffusion_model, 'diffusion_model')
      File "C:\Users\admin\miniforge3\envs\myenv\lib\site-packages\scepter\modules\inference\diffusion_inference.py", line 301, in dynamic_load
        module = self.load(module)
      File "C:\Users\admin\miniforge3\envs\myenv\lib\site-packages\scepter\modules\inference\diffusion_inference.py", line 239, in load
        model = BACKBONES.build(module['cfg'],
      File "C:\Users\admin\miniforge3\envs\myenv\lib\site-packages\scepter\modules\utils\registry.py", line 142, in build
        return self.build_func(cfg,
      File "C:\Users\admin\miniforge3\envs\myenv\lib\site-packages\scepter\modules\model\registry.py", line 30, in build_model
        model = build_from_config(cfg, registry, logger=logger, *args, **kwargs)
      File "C:\Users\admin\miniforge3\envs\myenv\lib\site-packages\scepter\modules\utils\registry.py", line 87, in build_from_config
        raise Exception(f'Failed to init class {req_type_entry}, with {e}')
    Exception: Failed to init class <class 'scepter.modules.model.backbone.ace.ace.ACE'>, with 
    
    2025-05-16T20:44:27.787288 - Prompt executed in 7.04 seconds
    
  3. yaosheng216 commented on May 19, 2025

    @yaosheng216
    Contributor

    @aaaron7 Refer you provide error information, caused by ACE model init error, please ensure your local environment installed ACE model.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions