mirror of
https://github.com/langchain-ai/langgraph-example.git
synced 2026-07-25 05:05:34 -04:00
Unable to Execute langgraph up on Windows: NotImplementedError with asyncio Signal #4
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @c0pper on GitHub (Jun 19, 2024).
Issue Summary:
Attempting to run langgraph up on Windows results in the following error:
Steps to Reproduce:
Expected Behavior:
The langgraph up command should start successfully and execute without errors, leveraging Docker functionality on Windows.
Actual Behavior:
Encountered a NotImplementedError related to add_signal_handler and subsequent errors related to os.killpg and Event loop is closed.
Environment Details:
Additional Context:
I have Docker Desktop installed and running on my Windows machine. This issue prevents me from using langgraph-cli effectively for my development workflows.
@SouthCentralCode commented on GitHub (Jun 19, 2024):
Was having the same issue...
so created a very hacky workaround (using a cursor.so) to get it working on windows...
I changed my local \site-packages\langgraph_cli\exec.py
to the below code and it has worked to create the docker image and containers.
ive only ran it once, so be warned...
@c0pper commented on GitHub (Jun 20, 2024):
That did the trick, thanks a lot!
@ahsanshah commented on GitHub (May 24, 2025):
It seems like Langgraph is not useable in Windows (despite now we say we no longer need a Desktop App in a Mac and its compatible) has anyone addresses this issue cleanly on Windows or is the best way just avoid Windows for Langgraph.
@icsimlai commented on GitHub (Sep 5, 2025):
@ahsanshah,
I was having the issue in Windows environment as below,
"langgraph : The term 'langgraph' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again."
Then I created a ".venv" environment and opened the "Integrated Terminal" in it e.g., "...venv>"
After that I could execute all the below commands,
Options:
--version Show the version and exit.
--help Show this message and exit.
Commands:
build 📦 Build LangGraph API server Docker image.
dev 🏃♀️➡️ Run LangGraph API server in development mode with...
dockerfile 🐳 Generate a Dockerfile for the LangGraph API server, with...
new 🌱 Create a new LangGraph project from a template.
up 🚀 Launch LangGraph API server.