-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
from autogen import AssistantAgent, UserProxyAgent Gives Circular Import error #30
Comments
@walker-null-byte, thank you for the issue. But I am not able to reproduce your error. See video below. Can you please provide your full code (including filenames), commands you ran to install autogen, platform, python version, etc. Screen.Recording.2023-09-27.at.5.37.33.PM.mov |
only the import part is enough to give me the error For installing i used - then when i got the circular import error, i used - I am using python 3.11.5 I am using Garuda Linux with kernel - 6.5.3-zen1-1-zen NOTE: --break-system-packages is used to override the warnings of pacman, and in most cases it has no effect on python. Circular Import in my experience is not caused by the --break-system-packages tag, but i might be wrong. Thank You |
@walker-null-byte, thank you, will try to reproduce! One more question: how do you run this python statement?
Python notebook? Python interpreter in command line? Or you have a script on your disk? Note that running this statement in a file called Screen.Recording.2023-09-27.at.6.23.36.PM.mov |
OK yeaa i named it autogen.py... i feel really dumb rn lol. Thanks for the help! |
from autogen import AssistantAgent, UserProxyAgent, Completion, tune_data, eval_func, test_instance Ok i got this new issue now. Any idea if im doing anything dumb again? |
@walker-null-byte , Seems like an issue with setup. Are you able to reproduce your error in a fresh directory and install of AutoGen? |
sorry for the late reply. Yes i am getting the same error |
Same error here: |
Is |
Yeah its possible you did |
redoing pip install pyautogen fixes it for me, thanks! |
Im getting this issue. I have removed all, tested in new area. new environment. ImportError: cannot import name 'AssistantAgent' from 'autogen' from line 1 of my main.py file |
I'm having the same issue, uninstalled and re-installed. Tried in multiple venv too |
Same Edit: Sorry, I named my file autogen.py which is dumb |
redoing pip install pyautogen fixes it for me too! Thanks |
me too |
had a similar error and had to uninstalled pyautogen and reinstalled pyautogen but first, I upgraded my version of Pip before I reinstalled pyautogen and it works fine now. |
may be you can use Virtual Environment
|
You don't use both |
installing |
What worked for me after facing the error:
|
I also named my file autogen.py. No wonder it complains about circular import. Thank you very much! |
I have an error like this: AttributeError: module 'autogen' has no attribute 'AssistantAgent' pyautogen 0.1.14 |
Uninstalll pyautogen autogen |
uninstall autogen |
the errors you guys are facing is because you did pip install autogen. |
pip uninstall autogen. you only need pyautogen |
This should be added to the doc |
Do you want to add a one line to FAQ? https://microsoft.github.io/autogen/docs/FAQ#install-the-correct-package---pyautogen |
I had a similar issue becuase I pip installed "autogen" not "pyautogen" haha. I feel quite dumb! |
Sorry, I'm just now seeing this message. I don't really remember what this issue is about and I've never done a pull request. Maybe someone familiar with the process would like to do it. Or, if microsoft is hiring, I could certainly learn how =;-) |
from autogen import AssistantAgent, UserProxyAgent
ImportError: cannot import name 'AssistantAgent' from partially initialized module 'autogen' (most likely due to a circular import)
The above is the error message
The text was updated successfully, but these errors were encountered: