You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
when try to run start autogenstudio, get a autogen circular import error.
This error is caused by an unused circular import in autogen/coding/base.py:
from ..agentchat.agent import LLMAgent
And in autogen.agentchat.conversable_agent try to import will also import autogen.coding.base CodeExecutor:
from ..coding.base import CodeExecutor
Steps to reproduce
Run following command to start autogenstudio:
autogenstudio ui --port 8081
See error
Traceback (most recent call last):
File "/usr/local/bin/autogenstudio", line 5, in <module>
from autogenstudio.cli import run
File "/usr/local/lib/python3.9/site-packages/autogenstudio/__init__.py", line 1, in <module>
from .chatmanager import *
File "/usr/local/lib/python3.9/site-packages/autogenstudio/chatmanager.py", line 11, in <module>
from .workflowmanager import WorkflowManager
File "/usr/local/lib/python3.9/site-packages/autogenstudio/workflowmanager.py", line 19, in <module>
from .utils import (
File "/usr/local/lib/python3.9/site-packages/autogenstudio/utils/__init__.py", line 1, in <module>
from .utils import *
File "/usr/local/lib/python3.9/site-packages/autogenstudio/utils/utils.py", line 13, in <module>
from autogen.coding import DockerCommandLineCodeExecutor, LocalCommandLineCodeExecutor
File "/Users/Code/ai/autogen/autogen/coding/__init__.py", line 1, in <module>
from .base import CodeBlock, CodeExecutor, CodeExtractor, CodeResult
File "/Users/Code/ai/autogen/autogen/coding/base.py", line 7, in <module>
from ..agentchat.agent import LLMAgent
File "/Users/Code/ai/autogen/autogen/agentchat/__init__.py", line 2, in <module>
from .assistant_agent import AssistantAgent
File "/Users/Code/ai/autogen/autogen/agentchat/assistant_agent.py", line 5, in <module>
from .conversable_agent import ConversableAgent
File "/Users/Code/ai/autogen/autogen/agentchat/conversable_agent.py", line 29, in <module>
from ..coding.base import CodeExecutor
ImportError: cannot import name 'CodeExecutor' from partially initialized module 'autogen.coding.base' (most likely due to a circular import) (/Users/Code/ai/autogen/autogen/coding/base.py)
Model Used
No response
Expected Behavior
autogenstudio, autogen
Screenshots and logs
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered:
Describe the bug
when try to run start autogenstudio, get a autogen circular import error.
This error is caused by an unused circular import in autogen/coding/base.py:
And in autogen.agentchat.conversable_agent try to import will also import autogen.coding.base CodeExecutor:
Steps to reproduce
Model Used
No response
Expected Behavior
autogenstudio, autogen
Screenshots and logs
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: