Closed SimonB97 closed 8 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
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!
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.
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
.
Hello,
thanks for this template! I followed the instructions carefully, but unfortunately i'm having a few issues:
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'
After switching to 3.9 and trying to launch with
autogenui
i see thattyper
seems to be missing from the dependencies:ModuleNotFoundError: No module named 'typer'
After installing typer, i notice that autogen itself is missing too
After installing autogen using
pip install autogen
, i can launch withautogenui
, but when trying to send a message i seeConnection error. Ensure server is up and running.
INFO: 127.0.0.1:51780 - "OPTIONS /api/generate HTTP/1.1" 400 Bad Request
Edit2:
✅ Solution:
Do not install
autogen
instead ofpyautogen
accidentally! Also, make sure the practices outlined in the first two answers are followed.