Windows: PyodideSandbox subprocess support broken due to event loop policy incompatibility #5403
gpavlov2016
started this conversation in
Ideas
Replies: 0 comments
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.
-
Problem
When using
PyodideSandbox
fromlangchain_sandbox
within LangGraph dev environment on Windows, subprocess operations fail withNotImplementedError
. This prevents testing and using Deno-based sandbox functionality on Windows.Error Details
Root Cause
LangGraph uses
_WindowsSelectorEventLoop
on Windows, which doesn't support subprocess operations.PyodideSandbox
requires subprocess support to spawn Deno processes for code execution.Reproduction Steps
langchain_sandbox
PyodideSandbox
:NotImplementedError
Expected Behavior
PyodideSandbox
should work on Windows within LangGraph dev environmentActual Behavior
NotImplementedError
when trying to create subprocessesEnvironment
Workarounds Attempted
asyncio.set_event_loop_policy(asyncio.WindowsProactorEventLoopPolicy())
Impact
Proposed Solutions
ProactorEventLoop
on Windows by default_WindowsSelectorEventLoop
Related Issues
Additional Context
langgraph dev
Component: Core/Event Loop
Beta Was this translation helpful? Give feedback.
All reactions