From c48d495031f9b9a88dd727aa4f2c0fdb030c8aa7 Mon Sep 17 00:00:00 2001 From: Bhavya Dhiman Date: Wed, 22 Jan 2025 01:00:13 +0530 Subject: [PATCH] fix(requirements.txt): Set requirements path to posix expression so that it can work in windows OS as well. (#3101) When I cloned langgraph example, I was not able to run the code because of the requirements.txt file. The path was set to posix expression which was not working in windows OS. I have updated the path to posix expression so that it can work in windows OS as well. Try running `langgraph-example` in windows using the langgraph-cli in windows OS. It was working for linux not in windows. --- libs/cli/langgraph_cli/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/cli/langgraph_cli/config.py b/libs/cli/langgraph_cli/config.py index be8cfd085..41832e7a0 100644 --- a/libs/cli/langgraph_cli/config.py +++ b/libs/cli/langgraph_cli/config.py @@ -330,7 +330,7 @@ def _assemble_local_deps(config_path: pathlib.Path, config: Config) -> LocalDeps rfile = resolved / "requirements.txt" pip_reqs.append( ( - rfile.relative_to(config_path.parent), + rfile.relative_to(config_path.parent).as_posix(), f"{container_path}/requirements.txt", ) )