#ImportError: cannot import name 'AssistantAgent' from partially initialized module 'autogen' (most l

13 messages · Page 1 of 1 (latest)

livid rain
#

ImportError: cannot import name 'AssistantAgent' from partially initialized module 'autogen' (most likely due to a circular import) (/Users/jasonzhou/Desktop/autogen/autogen.py)

Does anyone had similar issue?

short sorrel
#

Rename your script to something else than autogen.py

livid rain
#

@short sorrel i just tried that, but still the same error 🤔

#

Traceback (most recent call last):
File "/Users/jasonzhou/Desktop/test agent/test.py", line 1, in <module>
from autogen import AssistantAgent, UserProxyAgent
ImportError: cannot import name 'AssistantAgent' from 'autogen' (/Users/jasonzhou/miniforge3/lib/python3.10/site-packages/autogen/init.py)

short sorrel
#

If you run `from autogen import AssistantAgent, UserProxyAgent' directly in python interpreter does that work?

livid rain
#

i have that as the first line of import

short sorrel
#

maybe resinstall autogen? seems like an issue with setup.

livid rain
livid rain
#

Hey @short sorrel sorry to bother you again

#

but i still got error running the basic example provided like above, do you know why?

short sorrel
#

See if this helps: #1157364980992184351 message

Your content of config_list maybe the issue.