Comments (31)
OK yeaa i named it autogen.py... i feel really dumb rn lol. Thanks for the help!
from autogen.
Is pip install pyautogen
used to install the package?
from autogen.
redoing pip install pyautogen fixes it for me, thanks!
from autogen.
@walker-null-byte, thank you, will try to reproduce! One more question:
how do you run this python statement?
from autogen import AssistantAgent, UserProxyAgent
Python notebook? Python interpreter in command line? Or you have a script on your disk? Note that running this statement in a file called autogen.py
can result in a circular import error (see video below). So please double-check.
Screen.Recording.2023-09-27.at.6.23.36.PM.mov
from autogen.
Yeah its possible you did pip install autogen
instead of pip install pyautogen
from autogen.
I had a similar issue becuase I pip installed "autogen" not "pyautogen" haha. I feel quite dumb!
from autogen.
Same
Edit: Sorry, I named my file autogen.py which is dumb
from autogen.
may be you can use Virtual Environment
python3 -m venv autogen
source autogen/bin/activate
pip install pyautogen
from autogen.
I have an error like this: AttributeError: module 'autogen' has no attribute 'AssistantAgent'
pyautogen 0.1.14 autogen 1.0.16 openai 1.3.3
Uninstalll pyautogen autogen
then upgrade your pip by following command: python.exe -m pip install --upgrade pip
then install autogen again by following command : pip install pyautogen
from autogen.
I have an error like this: AttributeError: module 'autogen' has no attribute 'AssistantAgent'
pyautogen 0.1.14 autogen 1.0.16 openai 1.3.3
uninstall autogen
from autogen.
I have an error like this: AttributeError: module 'autogen' has no attribute 'AssistantAgent'
pyautogen 0.1.14 autogen 1.0.16 openai 1.3.3
pip uninstall autogen. you only need pyautogen
from autogen.
@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
from autogen.
only the import part is enough to give me the error
For installing i used -
pip install autogen[blendsearch] --break-system-packages
then when i got the circular import error, i used -
pip install autogen --break-system-packages
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
from autogen.
from autogen import AssistantAgent, UserProxyAgent, Completion, tune_data, eval_func, test_instance
ImportError: cannot import name 'AssistantAgent' from 'autogen'
Ok i got this new issue now. Any idea if im doing anything dumb again?
from autogen.
@walker-null-byte , Seems like an issue with setup. Are you able to reproduce your error in a fresh directory and install of AutoGen?
from autogen.
sorry for the late reply. Yes i am getting the same error
from autogen.
Same error here:
ImportError: cannot import name 'AssistantAgent' from 'autogen'
from autogen.
Im getting this issue. I have removed all, tested in new area. new environment.
I have done the pip install autogen, ive have removed and done the pip install pyautogen.
Still getting this error:
ImportError: cannot import name 'AssistantAgent' from 'autogen' from line 1 of my main.py file
from autogen.
I'm having the same issue, uninstalled and re-installed. Tried in multiple venv too
from autogen.
redoing pip install pyautogen fixes it for me too! Thanks
from autogen.
OK yeaa i named it autogen.py... i feel really dumb rn lol. Thanks for the help!
me too
from autogen.
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.
[notice] A new release of pip available: 22.3.1 -> 23.3
[notice] To update, run: python.exe -m pip install --upgrade pip
cmd: python.exe -m pip install --upgrade pip
from autogen.
You don't use both import autoagen
and from autogen import AssistantAgenton
the same page.
Your file name must not autoagen.py.
from autogen.
installing pyautogen
instead of autogen
did the trick for me. thanks!
from autogen.
What worked for me after facing the error:
- removed pyautogen
- reinstalled pyautogen
- in the notebook:
- import autogen
- from autogen import AssistantAgent, UserProxyAgent, config_list_from_json
from autogen.
@walker-null-byte, thank you, will try to reproduce! One more question:
how do you run this python statement?
from autogen import AssistantAgent, UserProxyAgent
Python notebook? Python interpreter in command line? Or you have a script on your disk? Note that running this statement in a file called
autogen.py
can result in a circular import error (see video below). So please double-check.Screen.Recording.2023-09-27.at.6.23.36.PM.mov
I also named my file autogen.py. No wonder it complains about circular import. Thank you very much!
from autogen.
I have an error like this: AttributeError: module 'autogen' has no attribute 'AssistantAgent'
pyautogen 0.1.14
autogen 1.0.16
openai 1.3.3
from autogen.
the errors you guys are facing is because you did pip install autogen.
just do pip uninstall autogen.
pip install pyautogen
from autogen.
@walker-null-byte, thank you, will try to reproduce! One more question:
how do you run this python statement?
from autogen import AssistantAgent, UserProxyAgent
Python notebook? Python interpreter in command line? Or you have a script on your disk? Note that running this statement in a file called
autogen.py
can result in a circular import error (see video below). So please double-check.Screen.Recording.2023-09-27.at.6.23.36.PM.mov
This should be added to the doc
from autogen.
@walker-null-byte, thank you, will try to reproduce! One more question:
how do you run this python statement?
from autogen import AssistantAgent, UserProxyAgent
Python notebook? Python interpreter in command line? Or you have a script on your disk? Note that running this statement in a file calledautogen.py
can result in a circular import error (see video below). So please double-check.
Screen.Recording.2023-09-27.at.6.23.36.PM.movThis 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
from autogen.
@walker-null-byte, thank you, will try to reproduce! One more question:
how do you run this python statement?
from autogen import AssistantAgent, UserProxyAgent
Python notebook? Python interpreter in command line? Or you have a script on your disk? Note that running this statement in a file calledautogen.py
can result in a circular import error (see video below). So please double-check.
Screen.Recording.2023-09-27.at.6.23.36.PM.movThis 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
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.
Related Issues (20)
- [Feature Request]: Remove Tools HOT 2
- [Issue]: pgvector query returning byts instead of string
- How can I correspond the database data in runtime_logging with actual runtime outputs? HOT 1
- Inject message history through `initiate_chat`.
- Async function calling does not work in nested chat [Bug]:
- [Feature Request]: make it easy to manage agents HOT 5
- [Feature Request]: How to build agents automatically from User's request? HOT 2
- During Teachability dialogues, the agent does not trigger is_termination_msg. HOT 5
- AttributeError: 'AssistantAgent' object has no attribute 'register_for_llm'. Did you mean: 'register_reply'?
- [Bug]: 在根据示例去写程序的时候,遇到了实例不能调用的问题 HOT 6
- [Issue]: How to break the inference in autogen studio ?
- [Bug]: 在使用[Function]注解时,自动生成的类中,会和自有项目中的命名空间冲突。 HOT 3
- [Issue]: Write samle base on SemanticKernel with content copy from Example04_Dynamic_GroupChat_Coding_Task, can't work HOT 5
- [Feature Request]: Auto generate Sequential steps and involve relevant agents from group chat, into solving the Sequential chat
- [Feature Request]: we need the `StateFlow` workflow option to have consistent and higher quality results
- [.Net][Feature Request]: Propose Orchestrator for managing group chat/agentic workflow in a more flexible way
- [Bug]: GPTAssistantAgent does not invoke assistant API when called `generate_reply` HOT 2
- Tiktoken and cost tracking issues on gpt-4o HOT 6
- [Issue]: A issue got in Autogen tutorial (conversation pattern, group chat) HOT 4
- [Issue]: In group chat, is there any method to check the the broadcast information from manager_agent?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from autogen.