Skip to content

Cannot import E:\ComfyUI-Easy-Install\ComfyUI\custom_nodes\ComfyUI-Copilot module for custom nodes: Detected incorrect or missing 'agents' package while loading MCP components. #131

@Hermit6202

Description

@Hermit6202

File "E:\ComfyUI-Easy-Install\ComfyUI\custom_nodes\ComfyUI-Copilot\backend\service\mcp_client.py", line 21, in
from agents.mcp import MCPServerSse
ImportError: cannot import name 'MCPServerSse' from 'agents.mcp' (E:\ComfyUI-Easy-Install\python_embeded\Lib\site-packages\agents\mcp_init_.py)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "E:\ComfyUI-Easy-Install\ComfyUI\nodes.py", line 2216, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 999, in exec_module
File "", line 488, in call_with_frames_removed
File "E:\ComfyUI-Easy-Install\ComfyUI\custom_nodes\ComfyUI-Copilot_init
.py", line 47, in
from .backend.controller.conversation_api import *
File "E:\ComfyUI-Easy-Install\ComfyUI\custom_nodes\ComfyUI-Copilot\backend\controller\conversation_api.py", line 25, in
from ..service.mcp_client import comfyui_agent_invoke
File "E:\ComfyUI-Easy-Install\ComfyUI\custom_nodes\ComfyUI-Copilot\backend\service\mcp_client.py", line 29, in
raise ImportError(
ImportError: Detected incorrect or missing 'agents' package while loading MCP components. Please install 'openai-agents' and ensure this plugin prefers it. Commands:
python -m pip uninstall -y agents gym tensorflow
python -m pip install -U openai-agents

Cannot import E:\ComfyUI-Easy-Install\ComfyUI\custom_nodes\ComfyUI-Copilot module for custom nodes: Detected incorrect or missing 'agents' package while loading MCP components. Please install 'openai-agents' and ensure this plugin prefers it. Commands:
python -m pip uninstall -y agents gym tensorflow
python -m pip install -U openai-agents

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions