Skip to content

exceptiongroup.ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception) #22

@huazai665

Description

@huazai665

when I run "uv run gemini_client.py", it occurs errors.
Exception Group Traceback (most recent call last):
| File "/home/yoan/ros-mcp-client/clients/gemini_live/gemini_client.py", line 375, in
| main()
| File "/home/yoan/ros-mcp-client/clients/gemini_live/gemini_client.py", line 371, in main
| asyncio.run(client.run())
| File "/home/yoan/.local/share/uv/python/cpython-3.10.19-linux-x86_64-gnu/lib/python3.10/asyncio/runners.py", line 44, in run
| return loop.run_until_complete(main)
| File "/home/yoan/.local/share/uv/python/cpython-3.10.19-linux-x86_64-gnu/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
| return future.result()
| File "/home/yoan/ros-mcp-client/clients/gemini_live/gemini_client.py", line 233, in run
| async with stdio_client(server_params) as (read, write):
| File "/home/yoan/.local/share/uv/python/cpython-3.10.19-linux-x86_64-gnu/lib/python3.10/contextlib.py", line 217, in aexit
| await self.gen.athrow(typ, value, traceback)
| File "/home/yoan/ros-mcp-client/.venv/lib/python3.10/site-packages/mcp/client/stdio/init.py", line 182, in stdio_client
| async with (
| File "/home/yoan/ros-mcp-client/.venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 781, in aexit
| raise BaseExceptionGroup(
| exceptiongroup.ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
+-+---------------- 1 ----------------
| Exception Group Traceback (most recent call last):
| File "/home/yoan/ros-mcp-client/.venv/lib/python3.10/site-packages/mcp/client/stdio/init.py", line 189, in stdio_client
| yield read_stream, write_stream
| File "/home/yoan/ros-mcp-client/clients/gemini_live/gemini_client.py", line 234, in run
| async with ClientSession(read, write) as mcp_session:
| File "/home/yoan/ros-mcp-client/.venv/lib/python3.10/site-packages/anyio/_backends/_asyncio.py", line 781, in aexit
| raise BaseExceptionGroup(
| exceptiongroup.ExceptionGroup: unhandled errors in a TaskGroup (1 sub-exception)
+-+---------------- 1 ----------------
| Traceback (most recent call last):
| File "/home/yoan/ros-mcp-client/clients/gemini_live/gemini_client.py", line 331, in run
| asyncio.TaskGroup() as task_group,
| AttributeError: module 'asyncio' has no attribute 'TaskGroup'
|
| During handling of the above exception, another exception occurred:
|
| Traceback (most recent call last):
| File "/home/yoan/ros-mcp-client/clients/gemini_live/gemini_client.py", line 350, in run
| except asyncio.ExceptionGroup as exception_group:
| AttributeError: module 'asyncio' has no attribute 'ExceptionGroup'

Image

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions