You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calling langgraph up i get the error langgraph-api-1 | FileNotFoundError: [Errno 2] No such file or directory: '/deps/langgraph-example-pyproject/my_agent\\agent.py#2061
Open
5 tasks done
Andrei-Tocut opened this issue
Oct 9, 2024
· 4 comments
I searched the LangGraph/LangChain documentation with the integrated search.
I used the GitHub search to find a similar question and didn't find it.
I am sure that this is a bug in LangGraph/LangChain rather than my code.
I am sure this is better as an issue rather than a GitHub discussion, since this is a LangGraph bug and not a design question.
Example Code
langgraphup
Error Message and Stack Trace (if applicable)
langgraph-api-1 | 2024-10-09T06:31:32.686169Z [error ] Traceback (most recent call last):
langgraph-api-1 | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 693, in lifespan
langgraph-api-1 | async with self.lifespan_context(app) as maybe_state:
langgraph-api-1 | File "/usr/local/lib/python3.11/contextlib.py", line 210, in __aenter__
langgraph-api-1 |return await anext(self.gen)
langgraph-api-1 | ^^^^^^^^^^^^^^^^^^^^^
langgraph-api-1 | File "/api/langgraph_api/lifespan.py", line 23, in lifespan
langgraph-api-1 | File "/api/langgraph_api/shared/graph.py", line 205, in collect_graphs_from_env
langgraph-api-1 | File "/usr/local/lib/python3.11/site-packages/langchain_core/runnables/config.py", line 590, in run_in_executor
langgraph-api-1 |return await asyncio.get_running_loop().run_in_executor(
langgraph-api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
langgraph-api-1 | File "/usr/local/lib/python3.11/concurrent/futures/thread.py", line 58, in run
langgraph-api-1 | result = self.fn(*self.args, **self.kwargs)
langgraph-api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
langgraph-api-1 | File "/usr/local/lib/python3.11/site-packages/langchain_core/runnables/config.py", line 581, in wrapper
langgraph-api-1 |return func(*args, **kwargs)
langgraph-api-1 | ^^^^^^^^^^^^^^^^^^^^^
langgraph-api-1 | File "/api/langgraph_api/shared/graph.py", line 233, in _graph_from_spec
langgraph-api-1 | File "<frozen importlib._bootstrap_external>", line 936, in exec_module
langgraph-api-1 | File "<frozen importlib._bootstrap_external>", line 1073, in get_code
langgraph-api-1 | File "<frozen importlib._bootstrap_external>", line 1130, in get_data
langgraph-api-1 | FileNotFoundError: [Errno 2] No such file or directory: '/deps/langgraph-example-pyproject/my_agent\\agent.py'
langgraph-api-1 | [uvicorn.error] api_revision=e09c235 api_variant=licensed
langgraph-api-1 | 2024-10-09T06:31:32.686561Z [error ] Application startup failed. Exiting. [uvicorn.error] api_revision=e09c235 api_variant=licensed
langgraph-api-1 exited with code 3
Description
I want to test the langgraph locally fist before deploy and when i run langgraph up i get the following error langgraph-api-1 | FileNotFoundError: [Errno 2] No such file or directory: '/deps/langgraph-example-pyproject/my_agent\\agent.py. While i encountered this issue i cloned the example project from this and attepmpted to serve it up but i got the same issue. Might it be because i am using windows? But it shouldnt matter since it runs in a docker container.
Checked other resources
Example Code
Error Message and Stack Trace (if applicable)
Description
I want to test the langgraph locally fist before deploy and when i run
langgraph up
i get the following errorlanggraph-api-1 | FileNotFoundError: [Errno 2] No such file or directory: '/deps/langgraph-example-pyproject/my_agent\\agent.py
. While i encountered this issue i cloned the example project from this and attepmpted to serve it up but i got the same issue. Might it be because i am using windows? But it shouldnt matter since it runs in a docker container.System Info
langgraph.json
`
{
"dependencies": ["."],
"graphs": {
"agent": "./my_agent/agent.py:graph"
},
"env": ".env"
}
`
pyproject.toml
`
[tool.poetry]
name = "my_agent"
version = "0.1.0"
description = "Example LangGraph project for deployment to LangGraph Cloud"
authors = [
"langchain-ai"
]
packages = [
{ include = "my_agent" },
]
[tool.poetry.dependencies]
python = ">=3.9.0,<3.13"
langgraph = "^0.2.0"
langchain_anthropic = "^0.1.0"
langchain_core = "^0.2.0"
langchain_openai = "^0.1.0"
tavily-python = "^0.3.0"
langchain_community = "^0.2.0"
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
`
OS Name Microsoft Windows 10 Enterprise
Version 10.0.19045 Build 19045
❯ langchain --version
langchain-cli 0.0.31
The text was updated successfully, but these errors were encountered: