Skip to content

Commit

Permalink
fix(requirements.txt): Set requirements path to posix expression so t…
Browse files Browse the repository at this point in the history
…hat 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.
  • Loading branch information
bhavya3024 authored Jan 21, 2025
1 parent 22e6468 commit c48d495
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/cli/langgraph_cli/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def check_reserved(name: str, ref: str):
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",
)
)
Expand Down

0 comments on commit c48d495

Please sign in to comment.