Replies: 1 comment
-
Hello @keingkrai - the traceback stack you posted is not referencing autogen code - it's in your http stack in the https_client module. It's possible there is another stack trace that does reference autogen that you didn't paste in? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What happened?
import os
import asyncio
from autogen_ext.models.openai import OpenAIChatCompletionClient
from autogen_core.models import ModelInfo, ModelFamily
from autogen_agentchat.agents import AssistantAgent, SocietyOfMindAgent
from autogen_agentchat.ui import Console
from autogen_agentchat.conditions import MaxMessageTermination, TextMentionTermination
from autogen_agentchat.teams import RoundRobinGroupChat, BaseGroupChat
from autogenstudio.teammanager import TeamManager
from flask import Flask, request, jsonify
from transformers import AutoTokenizer, AutoModel
from sklearn.metrics.pairwise import cosine_similarity
import torch
import numpy as np
import json
app = Flask(name)
@app.route("/autogenprocess", methods=["POST"])
async def autogen():
manager = TeamManager()
team_config = json.load(open("team.json"))
@app.route("/autogenprocessfeedback", methods=["POST"])
async def autogen_feedback():
manager = TeamManager()
team_config = json.load(open("team.json"))
if name == "main":
app.run(debug=True)
Traceback (most recent call last):
File "c:\project.venv\Lib\site-packages\httpx_client.py", line 1985, in aclose
await self._transport.aclose()
File "c:\project.venv\Lib\site-packages\httpx_transports\default.py", line 406, in aclose
await self._pool.aclose()
File "c:\project.venv\Lib\site-packages\httpcore_async\connection_pool.py", line 353, in aclose
await self._close_connections(closing_connections)
File "c:\project.venv\Lib\site-packages\httpcore_async\connection_pool.py", line 345, in _close_connections
await connection.aclose()
File "c:\project.venv\Lib\site-packages\httpcore_async\connection.py", line 173, in aclose
await self._connection.aclose()
File "c:\project.venv\Lib\site-packages\httpcore_async\http11.py", line 258, in aclose
await self._network_stream.aclose()
File "c:\project.venv\Lib\site-packages\httpcore_backends\anyio.py", line 53, in aclose
await self._stream.aclose()
File "c:\project.venv\Lib\site-packages\anyio\streams\tls.py", line 201, in aclose
await self.transport_stream.aclose()
File "c:\project.venv\Lib\site-packages\anyio_backends_asyncio.py", line 1306, in aclose
self._transport.close()
File "C:\Users\griae\AppData\Local\Programs\Python\Python312\Lib\asyncio\proactor_events.py", line 109, in close
self._loop.call_soon(self._call_connection_lost, None)
File "C:\Users\griae\AppData\Local\Programs\Python\Python312\Lib\asyncio\base_events.py", line 792, in call_soon
self._check_closed()
File "C:\Users\griae\AppData\Local\Programs\Python\Python312\Lib\asyncio\base_events.py", line 539, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
Which packages was the bug in?
Python AgentChat (autogen-agentchat>=0.4.0)
AutoGen library version.
Python dev (main branch)
Other library version.
No response
Model used
No response
Model provider
None
Other model provider
No response
Python version
None
.NET version
None
Operating system
None
Beta Was this translation helpful? Give feedback.
All reactions