Skip to content

Windows: Error initializing server markdown_processor #23

@liuxin-James

Description

@liuxin-James

Image

Image

I already pull the latest codes and run with this command streamlit run example/chatbot_streamlit/app.py, this error still exists.

I try to catch the exception and find this error:

Image
` D:\codes\llm-dev\mcp_chatbot.venv\Lib\site-packages\mcp\client\stdio\win32.py:72 in
create_windows_process

 69 │   """                                                                         
 70 │   try:                                                                        
 71 │   │   # Try with Windows-specific flags to hide console window                

❱ 72 │ │ process = await anyio.open_process(
73 │ │ │ [command, *args],
74 │ │ │ env=env,
75 │ │ │ # Ensure we don't create console windows for each process

D:\codes\llm-dev\mcp_chatbot.venv\Lib\site-packages\anyio_core_subprocesses.py:19
0 in open_process

187 │   if umask >= 0:                                                              
188 │   │   kwargs["umask"] = umask                                                 
189 │                                                                               

❱ 190 │ return await get_async_backend().open_process(
191 │ │ command,
192 │ │ stdin=stdin,
193 │ │ stdout=stdout,

D:\codes\llm-dev\mcp_chatbot.venv\Lib\site-packages\anyio_backends_asyncio.py:256
1 in open_process

2558 │   │   │   │   **kwargs,                                                      
2559 │   │   │   )                                                                  
2560 │   │   else:                                                                  

❱ 2561 │ │ │ process = await asyncio.create_subprocess_exec(
2562 │ │ │ │ *command,
2563 │ │ │ │ stdin=stdin,
2564 │ │ │ │ stdout=stdout,

C:\Users\xxx\AppData\Local\anaconda3\Lib\asyncio\subprocess.py:218 in
create_subprocess_exec

215 │   loop = events.get_running_loop()                                            
216 │   protocol_factory = lambda: SubprocessStreamProtocol(limit=limit,            
217 │   │   │   │   │   │   │   │   │   │   │   │   │   │   loop=loop)              

❱ 218 │ transport, protocol = await loop.subprocess_exec(
219 │ │ protocol_factory,
220 │ │ program, *args,
221 │ │ stdin=stdin, stdout=stdout,

C:\Users\xxx\AppData\Local\anaconda3\Lib\asyncio\base_events.py:1694 in
subprocess_exec

1691 │   │   │   # (password) and may be too long                                   
1692 │   │   │   debug_log = f'execute program {program!r}'                         
1693 │   │   │   self._log_subprocess(debug_log, stdin, stdout, stderr)             

❱ 1694 │ │ transport = await self._make_subprocess_transport(
1695 │ │ │ protocol, popen_args, False, stdin, stdout, stderr,
1696 │ │ │ bufsize, **kwargs)
1697 │ │ if self._debug and debug_log is not None:

C:\Users\xxx\AppData\Local\anaconda3\Lib\asyncio\base_events.py:502 in
_make_subprocess_transport

 499 │   │   │   │   │   │   │   │   │   │    stdin, stdout, stderr, bufsize,       
 500 │   │   │   │   │   │   │   │   │   │    extra=None, **kwargs):                
 501 │   │   """Create subprocess transport."""                                     

❱ 502 │ │ raise NotImplementedError
503 │
504 │ def _write_to_self(self):
505 │ │ """Write a byte to self-pipe, to wake up the event loop.
────────────────────────────────────────────────────────────────────────────────────────
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