Giter Club home page Giter Club logo

Comments (31)

walker-null-byte avatar walker-null-byte commented on May 22, 2024 11

OK yeaa i named it autogen.py... i feel really dumb rn lol. Thanks for the help!

from autogen.

sonichi avatar sonichi commented on May 22, 2024 9

Is pip install pyautogen used to install the package?

from autogen.

walker-null-byte avatar walker-null-byte commented on May 22, 2024 7

redoing pip install pyautogen fixes it for me, thanks!

from autogen.

gagb avatar gagb commented on May 22, 2024 5

@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.

gagb avatar gagb commented on May 22, 2024 2

Yeah its possible you did pip install autogen instead of pip install pyautogen

from autogen.

Andy-Chase avatar Andy-Chase commented on May 22, 2024 2

I had a similar issue becuase I pip installed "autogen" not "pyautogen" haha. I feel quite dumb!

from autogen.

CUexter avatar CUexter commented on May 22, 2024 1

Same

Edit: Sorry, I named my file autogen.py which is dumb

from autogen.

erdogancayir avatar erdogancayir commented on May 22, 2024 1

may be you can use Virtual Environment

python3 -m venv autogen
source autogen/bin/activate
pip install pyautogen

from autogen.

ganesh1603 avatar ganesh1603 commented on May 22, 2024 1

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.

sonichi avatar sonichi commented on May 22, 2024 1

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.

kennydd001 avatar kennydd001 commented on May 22, 2024 1

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.

gagb avatar gagb commented on May 22, 2024

@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.

walker-null-byte avatar walker-null-byte commented on May 22, 2024

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.

walker-null-byte avatar walker-null-byte commented on May 22, 2024

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.

gagb avatar gagb commented on May 22, 2024

@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.

walker-null-byte avatar walker-null-byte commented on May 22, 2024

sorry for the late reply. Yes i am getting the same error

from autogen.

DoriShabat avatar DoriShabat commented on May 22, 2024

Same error here:
ImportError: cannot import name 'AssistantAgent' from 'autogen'

from autogen.

CarlHodges avatar CarlHodges commented on May 22, 2024

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.

akhilnchauhan avatar akhilnchauhan commented on May 22, 2024

I'm having the same issue, uninstalled and re-installed. Tried in multiple venv too

from autogen.

goforit5 avatar goforit5 commented on May 22, 2024

redoing pip install pyautogen fixes it for me too! Thanks

from autogen.

Alnevis avatar Alnevis commented on May 22, 2024

OK yeaa i named it autogen.py... i feel really dumb rn lol. Thanks for the help!

me too

from autogen.

JTedam avatar JTedam commented on May 22, 2024

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.

erdogancayir avatar erdogancayir commented on May 22, 2024

You don't use both import autoagen and from autogen import AssistantAgenton the same page.
Your file name must not autoagen.py.

from autogen.

rolme avatar rolme commented on May 22, 2024

installing pyautogen instead of autogen did the trick for me. thanks!

from autogen.

zenetio avatar zenetio commented on May 22, 2024

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.

ShimiShimson avatar ShimiShimson commented on May 22, 2024

@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.

MattiaBaldinetti avatar MattiaBaldinetti commented on May 22, 2024

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.

kennydd001 avatar kennydd001 commented on May 22, 2024

the errors you guys are facing is because you did pip install autogen.
just do pip uninstall autogen.
pip install pyautogen

from autogen.

oldmanjk avatar oldmanjk commented on May 22, 2024

@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.

ekzhu avatar ekzhu commented on May 22, 2024

@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

Do you want to add a one line to FAQ? https://microsoft.github.io/autogen/docs/FAQ#install-the-correct-package---pyautogen

from autogen.

oldmanjk avatar oldmanjk commented on May 22, 2024

@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

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.