-
-
Notifications
You must be signed in to change notification settings - Fork 292
Description
Traceback (most recent call last):
File "C:\Users\AMD\Documents\ComfyUI\custom_nodes\ComfyUI-Copilot\backend\agent_factory.py", line 11, in
from agents import Agent, OpenAIChatCompletionsModel, ModelSettings, Runner, set_tracing_disabled, set_default_openai_api
ModuleNotFoundError: No module named 'agents'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\AMD\AppData\Local\Programs\ComfyUI\resources\ComfyUI\nodes.py", line 2223, 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 "C:\Users\AMD\Documents\ComfyUI\custom_nodes\ComfyUI-Copilot_init.py", line 47, in
from .backend.controller.conversation_api import *
File "C:\Users\AMD\Documents\ComfyUI\custom_nodes\ComfyUI-Copilot\backend\controller\conversation_api.py", line 23, in
from ..service.debug_agent import debug_workflow_errors
File "C:\Users\AMD\Documents\ComfyUI\custom_nodes\ComfyUI-Copilot\backend\service\debug_agent.py", line 5, in
from ..agent_factory import create_agent
File "C:\Users\AMD\Documents\ComfyUI\custom_nodes\ComfyUI-Copilot\backend\agent_factory.py", line 16, in
raise ImportError(
ImportError: Detected incorrect or missing 'agents' package. Please uninstall legacy RL 'agents' (and tensorflow/gym if pulled transitively) and install openai-agents. Commands:
python -m pip uninstall -y agents gym tensorflow
python -m pip install -U openai-agents
Alternatively, keep both by setting COMFYUI_COPILOT_PREFER_OPENAI_AGENTS=1 so this plugin prefers openai-agents.