Skip to content

Problem on running MCP agent #2

@alfredlauyongfu

Description

@alfredlauyongfu

On running MCP agent, on trying to Generate Dashboard, the action failed with the following trace. Please advise.

Thanks in advance.

ERROR    Unexpected error:
         Traceback (most recent call last):
           File
         "C:\Users\alau1\PycharmProjects\ai-experiments\mcp-agent-experiment\.venv\lib\site-packages\mcp\client\stdio\wi
         n32.py", line 72, in create_windows_process
             process = await anyio.open_process(
           File
         "C:\Users\alau1\PycharmProjects\ai-experiments\mcp-agent-experiment\.venv\lib\site-packages\anyio\_core\_subpro
         cesses.py", line 190, in open_process
             return await get_async_backend().open_process(
           File
         "C:\Users\alau1\PycharmProjects\ai-experiments\mcp-agent-experiment\.venv\lib\site-packages\anyio\_backends\_as
         yncio.py", line 2561, in open_process
             process = await asyncio.create_subprocess_exec(
           File
         "C:\Users\alau1\AppData\Roaming\uv\python\cpython-3.10.18-windows-x86_64-none\lib\asyncio\subprocess.py", line
         218, in create_subprocess_exec
             transport, protocol = await loop.subprocess_exec(
           File
         "C:\Users\alau1\AppData\Roaming\uv\python\cpython-3.10.18-windows-x86_64-none\lib\asyncio\base_events.py", line
         1681, in subprocess_exec
             transport = await self._make_subprocess_transport(
           File
         "C:\Users\alau1\AppData\Roaming\uv\python\cpython-3.10.18-windows-x86_64-none\lib\asyncio\base_events.py", line
         498, in _make_subprocess_transport
             raise NotImplementedError
         NotImplementedError

         During handling of the above exception, another exception occurred:

         Traceback (most recent call last):
           File "C:\Users\alau1\PycharmProjects\ai-experiments\mcp-agent-experiment\dashboard_agent.py", line 236, in
         run_mcp_agent
             async with MCPTools(command=cmd) as mcp_tools:
           File
         "C:\Users\alau1\PycharmProjects\ai-experiments\mcp-agent-experiment\.venv\lib\site-packages\agno\tools\mcp.py",
         line 183, in __aenter__
             session_params = await self._context.__aenter__()  # type: ignore
           File "C:\Users\alau1\AppData\Roaming\uv\python\cpython-3.10.18-windows-x86_64-none\lib\contextlib.py", line
         199, in __aenter__
             return await anext(self.gen)
           File
         "C:\Users\alau1\PycharmProjects\ai-experiments\mcp-agent-experiment\.venv\lib\site-packages\mcp\client\stdio\__
         init__.py", line 115, in stdio_client
             process = await _create_platform_compatible_process(
           File
         "C:\Users\alau1\PycharmProjects\ai-experiments\mcp-agent-experiment\.venv\lib\site-packages\mcp\client\stdio\__
         init__.py", line 224, in _create_platform_compatible_process
             process = await create_windows_process(command, args, env, errlog, cwd)
           File
         "C:\Users\alau1\PycharmProjects\ai-experiments\mcp-agent-experiment\.venv\lib\site-packages\mcp\client\stdio\wi
         n32.py", line 85, in create_windows_process
             process = await anyio.open_process([command, *args], env=env, stderr=errlog, cwd=cwd)
           File
         "C:\Users\alau1\PycharmProjects\ai-experiments\mcp-agent-experiment\.venv\lib\site-packages\anyio\_core\_subpro
         cesses.py", line 190, in open_process
             return await get_async_backend().open_process(
           File
         "C:\Users\alau1\PycharmProjects\ai-experiments\mcp-agent-experiment\.venv\lib\site-packages\anyio\_backends\_as
         yncio.py", line 2561, in open_process
             process = await asyncio.create_subprocess_exec(
           File
         "C:\Users\alau1\AppData\Roaming\uv\python\cpython-3.10.18-windows-x86_64-none\lib\asyncio\subprocess.py", line
         218, in create_subprocess_exec
             transport, protocol = await loop.subprocess_exec(
           File
         "C:\Users\alau1\AppData\Roaming\uv\python\cpython-3.10.18-windows-x86_64-none\lib\asyncio\base_events.py", line
         1681, in subprocess_exec
             transport = await self._make_subprocess_transport(
           File
         "C:\Users\alau1\AppData\Roaming\uv\python\cpython-3.10.18-windows-x86_64-none\lib\asyncio\base_events.py", line
         498, in _make_subprocess_transport
             raise NotImplementedError
         NotImplementedError

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions