langchain-ai / langgraph-studio

Desktop app for prototyping and debugging LangGraph applications locally.
https://studio.langchain.com
1.84k stars 119 forks source link

Langgraph studio unable to build langgraph project #175

Open vishwaspuri opened 5 days ago

vishwaspuri commented 5 days ago

While trying to build my langgraph project with the studio. I'm encountering the following error:

Failed to start project vectorial-chat-agent-api
Error invoking remote method 'up': ExecaError: Command failed with exit code 17: docker compose --project-directory /Users/vishwas/dev/vectorial/vectorial-chat-agent-api --project-name vectorial-chat-agent-api-0e2ccad26fde57f09047878096b30a31e11b9694007b4c94f5703a6d8478f3d9 -f - up --remove-orphans --watch

failed to solve: process "/bin/sh -c PYTHONDONTWRITEBYTECODE=1 pip install -c /api/constraints.txt -e /deps/*" did not complete successfully: exit code: 1

#0 building with "desktop-linux" instance using docker driver

#1 [langgraph-api internal] load build definition from Dockerfile
#1 transferring dockerfile: 609B done
#1 DONE 0.0s

#2 [langgraph-api internal] load metadata for docker.io/langchain/langgraph-api:3.12
#2 DONE 0.0s

#3 [langgraph-api internal] load .dockerignore
#3 transferring context: 2B done
#3 DONE 0.0s

#4 [langgraph-api stage-0 1/3] FROM docker.io/langchain/langgraph-api:3.12
#4 DONE 0.0s

#5 [langgraph-api stage-0 2/3] RUN --mount=type=cache,target=/root/.cache/pip PYTHONDONTWRITEBYTECODE=1 pip install -c /api/constraints.txt aiohappyeyeballs aiohttp aiosignal anthropic fastapi langgraph langgraph-checkpoint langchain langchain-anthropic langchain-community langchain-openai openai pydantic python-dotenv typing_extensions uvicorn
#5 CACHED

#6 [langgraph-api stage-0 3/3] RUN --mount=type=cache,target=/root/.cache/pip PYTHONDONTWRITEBYTECODE=1 pip install -c /api/constraints.txt -e /deps/*
#6 0.915 ERROR: /deps/* is not a valid editable requirement. It should either be a path to a local project or a VCS URL (beginning with bzr+http, bzr+https, bzr+ssh, bzr+sftp, bzr+ftp, bzr+lp, bzr+file, git+http, git+https, git+ssh, git+git, git+file, hg+file, hg+http, hg+https, hg+ssh, hg+static-http, svn+ssh, svn+http, svn+https, svn+svn, svn+file).
#6 ERROR: process "/bin/sh -c PYTHONDONTWRITEBYTECODE=1 pip install -c /api/constraints.txt -e /deps/*" did not complete successfully: exit code: 1
------
 > [langgraph-api stage-0 3/3] RUN --mount=type=cache,target=/root/.cache/pip PYTHONDONTWRITEBYTECODE=1 pip install -c /api/constraints.txt -e /deps/*:
0.915 ERROR: /deps/* is not a valid editable requirement. It should either be a path to a local project or a VCS URL (beginning with bzr+http, bzr+https, bzr+ssh, bzr+sftp, bzr+ftp, bzr+lp, bzr+file, git+http, git+https, git+ssh, git+git, git+file, hg+file, hg+http, hg+https, hg+ssh, hg+static-http, svn+ssh, svn+http, svn+https, svn+svn, svn+file).
------

langgraph.json file:

{
  "dockerfile_lines": [],
  "graphs": {
    "graph": "./langgraph_studio.py:graph"
  },
  "env": ".env",
  "python_version": "3.12",
  "dependencies": [
    "aiohappyeyeballs",
    "aiohttp",
    "aiosignal",
    "anthropic",
    "langgraph",
    "langgraph-checkpoint",
    "langchain",
    "langchain-anthropic",
    "langchain-community",
    "langchain-openai",
    "openai",
    "pydantic",
    "python-dotenv",
    "typing_extensions"
  ]
}
hezyin commented 3 days ago

I'm running into the same issue