victordibia / autogen-ui

Web UI for AutoGen (A Framework Multi-Agent LLM Applications)
MIT License
651 stars 98 forks source link

A few issues (missing dependencies, connection error, python version) #4

Closed SimonB97 closed 8 months ago

SimonB97 commented 9 months ago

Hello,

thanks for this template! I followed the instructions carefully, but unfortunately i'm having a few issues:

  1. It seems the dependencies require Python >=3.9. I had 3.8 installed but i received this error message: ERROR: Package 'autogenui' requires a different Python: 3.8.0 not in '>=3.9'

  2. After switching to 3.9 and trying to launch with autogenui i see that typer seems to be missing from the dependencies: ModuleNotFoundError: No module named 'typer'

  3. After installing typer, i notice that autogen itself is missing too

  4. After installing autogen using pip install autogen, i can launch with autogenui, but when trying to send a message i see

    • in the Brower/app: Connection error. Ensure server is up and running.
    • console: INFO: 127.0.0.1:51780 - "OPTIONS /api/generate HTTP/1.1" 400 Bad Request
Edit: Header Header
OS Win 11
Python 3.9.0
Browser MS Edge Dev

Edit2:

✅ Solution:

Do not install autogen instead of pyautogen accidentally! Also, make sure the practices outlined in the first two answers are followed.

plusnarrative-phillip commented 9 months ago

you likely need to create a venv or remove other pythons files and reinstall only the one that is needed, this is the prcie you pay playing with python

SimonB97 commented 9 months ago

yeah, that's the impression i'm getting too.. though, i've created a new conda env and installed the dependencies into that. do you have any guesses where i should start looking for conflicts?

Thanks!

winklerj commented 8 months ago

Check the network requests in your browser. You will get a CORS error if you use 127.0.0.1:8081. You need to use localhost:8081. Also make sure you have your OpenAI key specified as an environment variable.

SimonB97 commented 8 months ago

Thank you for your help! Although, i found the issue myself, got trolled majorly here...

the issue was that i installed autogen instead of pyautogen.