Python dependencies not getting installed when using langgraph up #1021

Closed
opened 2026-02-20 17:42:47 -05:00 by yindo · 4 comments
Owner

Originally created by @sasharosca on GitHub (Oct 24, 2025).

Checked other resources

  • This is a bug, not a usage question. For questions, please use the LangChain Forum (https://forum.langchain.com/).
  • I added a clear and detailed title that summarizes the issue.
  • I read what a minimal reproducible example is (https://stackoverflow.com/help/minimal-reproducible-example).
  • I included a self-contained, minimal example that demonstrates the issue INCLUDING all the relevant imports. The code run AS IS to reproduce the issue.

Example Code

clone https://github.com/langchain-ai/new-langgraph-project

Add 
    "langchain-google-genai>=2.1.9,<3.0.0",
to dependencies

Add
from langchain_google_genai import ChatGoogleGenerativeAI
to graph.py

Add .env file

Error Message and Stack Trace (if applicable)

poetry run langgraph up
Starting LangGraph API server...
For local dev, requires env var LANGSMITH_API_KEY with access to LangSmith Deployment.
For production use, requires a license key in env var LANGGRAPH_CLOUD_LICENSE_KEY.
/ Building...#1 [internal] load local bake definitions
#1 reading from stdin 2.17kB done
#1 DONE 0.0s

#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 1.59kB done
#2 DONE 0.0s

#3 [internal] load metadata for docker.io/langchain/langgraph-api:3.11-wolfi
#3 DONE 0.0s

#4 [internal] load .dockerignore
#4 transferring context: 2B done
#4 DONE 0.0s

#5 [ 1/10] FROM docker.io/langchain/langgraph-api:3.11-wolfi
#5 DONE 0.0s

#6 [internal] load build context
#6 transferring context: 27.95MB 0.3s done
#6 DONE 0.4s

#5 [ 1/10] FROM docker.io/langchain/langgraph-api:3.11-wolfi
#5 CACHED

#7 [ 2/10] ADD . /deps/test
#7 DONE 1.0s

#8 [ 3/10] RUN for dep in /deps/*; do             echo "Installing ";             if [ -d "" ]; then                 echo "Installing ";                 (cd "" && PYTHONDONTWRITEBYTECODE=1 uv pip install --system --no-cache-dir -c /api/constraints.txt -e .);             fi;         done
#8 0.151 Installing 
#8 DONE 0.2s

#9 [ 4/10] RUN mkdir -p /api/langgraph_api /api/langgraph_runtime /api/langgraph_license && touch /api/langgraph_api/__init__.py /api/langgraph_runtime/__init__.py /api/langgraph_license/__init__.py
#9 DONE 0.2s

#10 [ 5/10] RUN PYTHONDONTWRITEBYTECODE=1 uv pip install --system --no-cache-dir --no-deps -e /api
#10 0.339 Using Python 3.11.13 environment at: /usr
#10 1.153 Resolved 1 package in 809ms
#10 1.153    Building langgraph-api @ file:///api
#10 1.378       Built langgraph-api @ file:///api
#10 1.379 Prepared 1 package in 225ms
#10 1.404 Uninstalled 1 package in 24ms
#10 1.405 Installed 1 package in 1ms
#10 1.405  ~ langgraph-api==0.4.46 (from file:///api)
#10 DONE 1.4s

#11 [ 6/10] RUN pip uninstall -y pip setuptools wheel
#11 0.623 Found existing installation: pip 25.2
#11 0.649 Uninstalling pip-25.2:
#11 1.569   Successfully uninstalled pip-25.2
#11 1.614 Found existing installation: setuptools 80.9.0.post20250724
#11 1.643 Uninstalling setuptools-80.9.0.post20250724:
#11 2.507   Successfully uninstalled setuptools-80.9.0.post20250724
#11 2.544 WARNING: Skipping wheel as it is not installed.
#11 DONE 2.6s

#12 [ 7/10] RUN rm -rf /usr/local/lib/python*/site-packages/pip* /usr/local/lib/python*/site-packages/setuptools* /usr/local/lib/python*/site-packages/wheel* && find /usr/local/bin -name "pip*" -delete || true
#12 0.204 find: /usr/local/bin: No such file or directory
#12 DONE 0.2s

#13 [ 8/10] RUN rm -rf /usr/lib/python*/site-packages/pip* /usr/lib/python*/site-packages/setuptools* /usr/lib/python*/site-packages/wheel* && find /usr/bin -name "pip*" -delete || true
#13 DONE 0.2s

#14 [ 9/10] RUN uv pip uninstall --system pip setuptools wheel && rm /usr/bin/uv /usr/bin/uvx
#14 0.224 Using Python 3.11.13 environment at: /usr
#14 0.232 warning: Skipping pip as it is not installed
#14 0.232 warning: Skipping setuptools as it is not installed
#14 0.232 warning: Skipping wheel as it is not installed
#14 0.232 warning: No packages to uninstall
#14 DONE 0.3s

#15 [10/10] WORKDIR /deps/test
#15 DONE 0.1s

#16 exporting to image
#16 exporting layers
#16 exporting layers 1.2s done
#16 writing image sha256:062934f4d09113563bf12905f0c8b8c4e363cf31b467d32c55915505d5e14ee7 done
#16 naming to docker.io/library/test-langgraph-api done
#16 DONE 1.3s

#17 resolving provenance for metadata file
#17 DONE 0.0s
Attaching to langgraph-api-1, langgraph-postgres-1, langgraph-redis-1
langgraph-redis-1  | 1:C 24 Oct 2025 22:37:41.030 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
langgraph-redis-1  | 1:C 24 Oct 2025 22:37:41.030 # Redis version=6.2.20, bits=64, commit=00000000, modified=0, pid=1, just started
langgraph-redis-1  | 1:C 24 Oct 2025 22:37:41.030 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
langgraph-redis-1  | 1:M 24 Oct 2025 22:37:41.030 * monotonic clock: POSIX clock_gettime
langgraph-redis-1  | 1:M 24 Oct 2025 22:37:41.031 * Running mode=standalone, port=6379.
langgraph-redis-1  | 1:M 24 Oct 2025 22:37:41.031 # Server initialized
langgraph-redis-1  | 1:M 24 Oct 2025 22:37:41.031 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
langgraph-redis-1  | 1:M 24 Oct 2025 22:37:41.031 * Loading RDB produced by version 6.2.20
langgraph-redis-1  | 1:M 24 Oct 2025 22:37:41.031 * RDB age 59 seconds
langgraph-redis-1  | 1:M 24 Oct 2025 22:37:41.031 * RDB memory usage when created 0.77 Mb
langgraph-redis-1  | 1:M 24 Oct 2025 22:37:41.031 # Done loading RDB, keys loaded: 0, keys expired: 0.
langgraph-redis-1  | 1:M 24 Oct 2025 22:37:41.031 * DB loaded from disk: 0.000 seconds
langgraph-redis-1  | 1:M 24 Oct 2025 22:37:41.031 * Ready to accept connections
langgraph-postgres-1  | 
langgraph-postgres-1  | PostgreSQL Database directory appears to contain a database; Skipping initialization
langgraph-postgres-1  | 
langgraph-api-1       | 2025-10-24T22:37:49.097790Z [info     ] Using langgraph_runtime_postgres [langgraph_runtime] api_revision=92975bb api_variant=licensed langgraph_api_version=0.4.46 thread_name=MainThread
langgraph-api-1       | 2025-10-24T22:37:49.111490Z [info     ] Using auth of type=noop        [langgraph_api.auth.middleware] api_revision=92975bb api_variant=licensed langgraph_api_version=0.4.46 thread_name=MainThread
langgraph-api-1       | 2025-10-24T22:37:49.117121Z [info     ] Started server process [1]     [uvicorn.error] api_revision=92975bb api_variant=licensed color_message='Started server process [\x1b[36m%d\x1b[0m]' langgraph_api_version=0.4.46 thread_name=MainThread
langgraph-api-1       | 2025-10-24T22:37:49.117232Z [info     ] Waiting for application startup. [uvicorn.error] api_revision=92975bb api_variant=licensed langgraph_api_version=0.4.46 thread_name=MainThread
langgraph-api-1       | 2025-10-24T22:37:49.119408Z [info     ] Starting Postgres runtime with langgraph-api=0.4.46 [langgraph_runtime_postgres.lifespan] api_revision=92975bb api_variant=licensed langgraph_api_version=0.4.46 thread_name=ThreadPoolExecutor-1_0 version=0.4.46
langgraph-api-1       | 2025-10-24T22:37:49.122740Z [info     ] Redis pool stats               [langgraph_runtime_postgres.redis] api_revision=92975bb api_variant=licensed idle_connections=1 in_use_connections=0 langgraph_api_version=0.4.46 max_connections=2000 thread_name=ThreadPoolExecutor-1_0
langgraph-api-1       | 2025-10-24T22:37:49.132785Z [info     ] Attempting to acquire migration lock [langgraph_runtime_postgres.database] api_revision=92975bb api_variant=licensed langgraph_api_version=0.4.46 thread_name=MainThread
langgraph-api-1       | 2025-10-24T22:37:49.133529Z [info     ] Migration lock acquired        [langgraph_runtime_postgres.database] api_revision=92975bb api_variant=licensed langgraph_api_version=0.4.46 thread_name=ThreadPoolExecutor-1_0
langgraph-api-1       | 2025-10-24T22:37:49.139673Z [info     ] No LANGGRAPH_STORE configuration found, using default configuration [langgraph_runtime_postgres.database] api_revision=92975bb api_variant=licensed langgraph_api_version=0.4.46 thread_name=MainThread
langgraph-api-1       | 2025-10-24T22:37:49.140445Z [info     ] Migration lock released        [langgraph_runtime_postgres.database] api_revision=92975bb api_variant=licensed langgraph_api_version=0.4.46 thread_name=ThreadPoolExecutor-1_0
langgraph-api-1       | 2025-10-24T22:37:49.276306Z [info     ] Postgres pool stats            [langgraph_runtime_postgres.database] api_revision=92975bb api_variant=licensed connections_ms=10 connections_num=1 langgraph_api_version=0.4.46 pool_available=1 pool_max=150 pool_min=1 pool_size=1 requests_num=1 requests_waiting=0 thread_name=MainThread usage_ms=5
langgraph-api-1       | 2025-10-24T22:37:49.276662Z [info     ] Starting checkpointer ingestion loop [langgraph_runtime_postgres.checkpoint] api_revision=92975bb api_variant=licensed langgraph_api_version=0.4.46 thread_name=ThreadPoolExecutor-1_0
langgraph-api-1       | 2025-10-24T22:37:49.426114Z [info     ] HTTP Request: GET https://api.smith.langchain.com/auth?langgraph-api=true "HTTP/1.1 200 OK" [httpx] api_revision=92975bb api_variant=licensed langgraph_api_version=0.4.46 thread_name=MainThread
langgraph-api-1       | 2025-10-24T22:37:49.430317Z [warning  ] No enterprise license key found, running in lite mode with LangSmith API key. For production use, set LANGGRAPH_CLOUD_LICENSE_KEY in environment. [langgraph_license.validation] api_revision=92975bb api_variant=licensed langgraph_api_version=0.4.46 thread_name=MainThread
langgraph-api-1       | 2025-10-24T22:37:49.458436Z [info     ] Starting metadata loop         [langgraph_api.metadata] api_revision=92975bb api_variant=licensed langgraph_api_version=0.4.46 thread_name=MainThread
langgraph-api-1       | 2025-10-24T22:37:49.458715Z [info     ] Getting auth instance: None    [langgraph_api.auth.custom] api_revision=92975bb api_variant=licensed langgraph_api_version=0.4.46 langgraph_auth=None thread_name=MainThread
langgraph-api-1       | 2025-10-24T22:37:49.460012Z [info     ] Starting store TTL sweeper with interval 5.0 minutes [langgraph.store.postgres.aio] api_revision=92975bb api_variant=licensed langgraph_api_version=0.4.46 thread_name=MainThread
langgraph-api-1       | 2025-10-24T22:37:49.460666Z [info     ] Starting thread TTL sweeper with interval 5 minutes [langgraph_api.thread_ttl] api_revision=92975bb api_variant=licensed interval_minutes=5 langgraph_api_version=0.4.46 strategy=delete thread_name=ThreadPoolExecutor-1_1
langgraph-api-1       | 2025-10-24T22:37:49.461599Z [info     ] Starting long query monitor with 5min threshold, scanning every 600s [langgraph_runtime_postgres.long_query_monitor] api_revision=92975bb api_variant=licensed langgraph_api_version=0.4.46 scan_interval_seconds=600 thread_name=ThreadPoolExecutor-1_1 threshold_minutes=5
langgraph-api-1       | 2025-10-24T22:37:49.481839Z [error    ] Graph 'agent' failed to load: ModuleNotFoundError: No module named 'langchain_google_genai' [langgraph_runtime_postgres.lifespan] action=fix_user_graph api_revision=92975bb api_variant=licensed error_boundary=user_graph error_message="ModuleNotFoundError: No module named 'langchain_google_genai'" error_type=ModuleNotFoundError graph_id=agent hint='Check that your project dependencies are installed and imports are correct.' langgraph_api_version=0.4.46 location=/deps/test/src/agent/graph.py notes="Could not import python module for graph:\nGraphSpec(id='agent', path='/deps/test/src/agent/graph.py', module=None, variable='graph', config={}, description=None)" summary="ModuleNotFoundError: ModuleNotFoundError: No module named 'langchain_google_genai'" thread_name=ThreadPoolExecutor-1_1 user_traceback='Traceback (most recent call last):\n  File "/api/langgraph_api/graph.py", line 420, in collect_graphs_from_env\n  File "/api/langgraph_api/utils/config.py", line 144, in run_in_executor\n  File "/usr/lib/python3.11/concurrent/futures/thread.py", line 58, in run\n    result = self.fn(*self.args, **self.kwargs)\n             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File "/api/langgraph_api/utils/config.py", line 135, in wrapper\n  File "/api/langgraph_api/graph.py", line 469, in _graph_from_spec\n  File "<frozen importlib._bootstrap_external>", line 940, in exec_module\n  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed\n  File "/deps/test/src/agent/graph.py", line 14, in <module>\n    from langchain_google_genai import ChatGoogleGenerativeAI\nModuleNotFoundError: No module named \'langchain_google_genai\'\nCould not import python module for graph:\nGraphSpec(id=\'agent\', path=\'/deps/test/src/agent/graph.py\', module=None, variable=\'graph\', config={}, description=None)\n'
langgraph-api-1       | 2025-10-24T22:37:49.482868Z [info     ] Shutting down remote graphs    [langgraph_api.graph] api_revision=92975bb api_variant=licensed langgraph_api_version=0.4.46 thread_name=MainThread
langgraph-api-1       | 2025-10-24T22:37:49.483156Z [info     ] Checkpointer ingestion task cancelled. Draining queue. [langgraph_runtime_postgres.checkpoint] api_revision=92975bb api_variant=licensed langgraph_api_version=0.4.46 thread_name=ThreadPoolExecutor-1_1
langgraph-api-1       | 2025-10-24T22:37:49.485787Z [error    ] Traceback (most recent call last):
langgraph-api-1       |   File "/api/langgraph_api/graph.py", line 420, in collect_graphs_from_env
langgraph-api-1       |   File "/api/langgraph_api/utils/config.py", line 144, in run_in_executor
langgraph-api-1       |   File "/usr/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 "/api/langgraph_api/utils/config.py", line 135, in wrapper
langgraph-api-1       |   File "/api/langgraph_api/graph.py", line 469, in _graph_from_spec
langgraph-api-1       |   File "<frozen importlib._bootstrap_external>", line 940, in exec_module
langgraph-api-1       |   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
langgraph-api-1       |   File "/deps/test/src/agent/graph.py", line 14, in <module>
langgraph-api-1       |     from langchain_google_genai import ChatGoogleGenerativeAI
langgraph-api-1       | ModuleNotFoundError: No module named 'langchain_google_genai'
langgraph-api-1       | Could not import python module for graph:
langgraph-api-1       | GraphSpec(id='agent', path='/deps/test/src/agent/graph.py', module=None, variable='graph', config={}, description=None)
langgraph-api-1       | 
langgraph-api-1       | The above exception was the direct cause of the following exception:
langgraph-api-1       | 
langgraph-api-1       | Traceback (most recent call last):
langgraph-api-1       |   File "/usr/lib/python3.11/site-packages/starlette/routing.py", line 694, in lifespan
langgraph-api-1       |     async with self.lifespan_context(app) as maybe_state:
langgraph-api-1       |   File "/usr/lib/python3.11/contextlib.py", line 210, in __aenter__
langgraph-api-1       |     return await anext(self.gen)
langgraph-api-1       |            ^^^^^^^^^^^^^^^^^^^^^
langgraph-api-1       |   File "/usr/lib/python3.11/site-packages/langgraph_runtime_postgres/lifespan.py", line 141, in lifespan
langgraph-api-1       |     await graph.collect_graphs_from_env(True)
langgraph-api-1       |   File "/api/langgraph_api/graph.py", line 422, in collect_graphs_from_env
langgraph-api-1       | langgraph_api.utils.errors.GraphLoadError: Failed to load graph 'agent' from /deps/test/src/agent/graph.py: No module named 'langchain_google_genai'
langgraph-api-1       |  [uvicorn.error] api_revision=92975bb api_variant=licensed langgraph_api_version=0.4.46 thread_name=MainThread
langgraph-api-1       | 2025-10-24T22:37:49.485931Z [error    ] Application startup failed. Exiting. [uvicorn.error] api_revision=92975bb api_variant=licensed langgraph_api_version=0.4.46 thread_name=MainThread
langgraph-api-1 exited with code 3
langgraph-redis-1     | 1:signal-handler (1761345469) Received SIGTERM scheduling shutdown...
langgraph-redis-1     | 1:M 24 Oct 2025 22:37:49.853 # User requested shutdown...
langgraph-redis-1     | 1:M 24 Oct 2025 22:37:49.853 * Saving the final RDB snapshot before exiting.
langgraph-redis-1     | 1:M 24 Oct 2025 22:37:49.856 * DB saved on disk
langgraph-redis-1     | 1:M 24 Oct 2025 22:37:49.856 # Redis is now ready to exit, bye bye...
langgraph-postgres-1 exited with code 0
langgraph-redis-1 exited with code 0
time="2025-10-24T15:37:32-07:00" level=warning msg="The \"dep\" variable is not set. Defaulting to a blank string."
time="2025-10-24T15:37:32-07:00" level=warning msg="The \"dep\" variable is not set. Defaulting to a blank string."
time="2025-10-24T15:37:32-07:00" level=warning msg="The \"dep\" variable is not set. Defaulting to a blank string."
time="2025-10-24T15:37:32-07:00" level=warning msg="The \"dep\" variable is not set. Defaulting to a blank string."
 test-langgraph-api  Built
 Container test-langgraph-api-1  Recreate
 Container test-langgraph-api-1  Recreated
langgraph-postgres-1  | 2025-10-24 22:37:41.085 UTC [1] LOG:  starting PostgreSQL 16.10 (Debian 16.10-1.pgdg12+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14+deb12u1) 12.2.0, 64-bit
langgraph-postgres-1  | 2025-10-24 22:37:41.085 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
langgraph-postgres-1  | 2025-10-24 22:37:41.085 UTC [1] LOG:  listening on IPv6 address "::", port 5432
langgraph-postgres-1  | 2025-10-24 22:37:41.092 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
langgraph-postgres-1  | 2025-10-24 22:37:41.101 UTC [28] LOG:  database system was shut down at 2025-10-24 22:36:42 UTC
langgraph-postgres-1  | 2025-10-24 22:37:41.108 UTC [1] LOG:  database system is ready to accept connections
Aborting on container exit...
 Container test-langgraph-api-1  Stopping
 Container test-langgraph-api-1  Stopped
 Container test-langgraph-redis-1  Stopping
 Container test-langgraph-postgres-1  Stopping
langgraph-postgres-1  | 2025-10-24 22:37:49.806 UTC [1] LOG:  received fast shutdown request
langgraph-postgres-1  | 2025-10-24 22:37:49.810 UTC [1] LOG:  aborting any active transactions
langgraph-postgres-1  | 2025-10-24 22:37:49.812 UTC [1] LOG:  background worker "logical replication launcher" (PID 31) exited with exit code 1
langgraph-postgres-1  | 2025-10-24 22:37:49.812 UTC [26] LOG:  shutting down
langgraph-postgres-1  | 2025-10-24 22:37:49.815 UTC [26] LOG:  checkpoint starting: shutdown immediate
langgraph-postgres-1  | 2025-10-24 22:37:49.842 UTC [26] LOG:  checkpoint complete: wrote 3 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.010 s, sync=0.003 s, total=0.031 s; sync files=2, longest=0.002 s, average=0.002 s; distance=0 kB, estimate=0 kB; lsn=0/16EF938, redo lsn=0/16EF938
langgraph-postgres-1  | 2025-10-24 22:37:49.846 UTC [1] LOG:  database system is shut down
 Container test-langgraph-postgres-1  Stopped
 Container test-langgraph-redis-1  Stopped

Description

Dependency not being found when running with langgraph up but it works fine with langgraph dev.

This part of the log makes me think its not installing anything:
#8 [ 3/10] RUN for dep in /deps/*; do echo "Installing "; if [ -d "" ]; then echo "Installing "; (cd "" && PYTHONDONTWRITEBYTECODE=1 uv pip install --system --no-cache-dir -c /api/constraints.txt -e .); fi; done
#8 0.151 Installing
#8 DONE 0.2s

System Info

poetry run python -m langchain_core.sys_info

System Information

OS: Linux
OS Version: #33~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 19 17:02:30 UTC 2
Python Version: 3.12.3 (main, Aug 14 2025, 17:47:21) [GCC 13.3.0]

Package Information

langchain_core: 0.3.76
langsmith: 0.4.38
langchain_google_genai: 2.1.12
langgraph_api: 0.4.46
langgraph_cli: 0.4.4
langgraph_license: Installed. No version info available.
langgraph_runtime: Installed. No version info available.
langgraph_runtime_inmem: 0.14.1
langgraph_sdk: 0.2.9

Optional packages not installed

langserve

Other Dependencies

blockbuster<2.0.0,>=1.5.24: Installed. No version info available.
claude-agent-sdk>=0.1.0;: Installed. No version info available.
click>=8.1.7: Installed. No version info available.
cloudpickle>=3.0.0: Installed. No version info available.
cryptography<45.0,>=42.0.0: Installed. No version info available.
filetype<2,>=1.2: Installed. No version info available.
google-ai-generativelanguage<1,>=0.7: Installed. No version info available.
grpcio-tools<2.0.0,>=1.75.0: Installed. No version info available.
grpcio<2.0.0,>=1.75.0: Installed. No version info available.
httpx<1,>=0.23.0: Installed. No version info available.
httpx>=0.25.0: Installed. No version info available.
httpx>=0.25.2: Installed. No version info available.
jsonpatch<2.0,>=1.33: Installed. No version info available.
jsonschema-rs<0.30,>=0.20.0: Installed. No version info available.
langchain-core>=0.3.64: Installed. No version info available.
langchain-core>=0.3.75: Installed. No version info available.
langgraph-api<0.5.0,>=0.3;: Installed. No version info available.
langgraph-checkpoint>=2.0.23: Installed. No version info available.
langgraph-checkpoint>=2.0.25: Installed. No version info available.
langgraph-runtime-inmem<0.15.0,>=0.14.0: Installed. No version info available.
langgraph-runtime-inmem>=0.7;: Installed. No version info available.
langgraph-sdk>=0.1.0;: Installed. No version info available.
langgraph-sdk>=0.2.0: Installed. No version info available.
langgraph>=0.2: Installed. No version info available.
langgraph>=0.4.0: Installed. No version info available.
langsmith-pyo3>=0.1.0rc2;: Installed. No version info available.
langsmith>=0.3.45: Installed. No version info available.
openai-agents>=0.0.3;: Installed. No version info available.
opentelemetry-api>=1.30.0;: Installed. No version info available.
opentelemetry-api>=1.37.0: Installed. No version info available.
opentelemetry-exporter-otlp-proto-http>=1.30.0;: Installed. No version info available.
opentelemetry-exporter-otlp-proto-http>=1.37.0: Installed. No version info available.
opentelemetry-sdk>=1.30.0;: Installed. No version info available.
opentelemetry-sdk>=1.37.0: Installed. No version info available.
orjson>=3.10.1: Installed. No version info available.
orjson>=3.9.14;: Installed. No version info available.
orjson>=3.9.7: Installed. No version info available.
packaging>=23.2: Installed. No version info available.
protobuf<7.0.0,>=6.32.1: Installed. No version info available.
pydantic<3,>=1: Installed. No version info available.
pydantic<3,>=2: Installed. No version info available.
pydantic>=2.7.4: Installed. No version info available.
pyjwt>=2.9.0: Installed. No version info available.
pytest>=7.0.0;: Installed. No version info available.
python-dotenv>=0.8.0;: Installed. No version info available.
PyYAML>=5.3: Installed. No version info available.
requests-toolbelt>=1.0.0: Installed. No version info available.
requests>=2.0.0: Installed. No version info available.
rich>=13.9.4;: Installed. No version info available.
sse-starlette<2.2.0,>=2.1.0: Installed. No version info available.
sse-starlette>=2: Installed. No version info available.
starlette>=0.37: Installed. No version info available.
starlette>=0.38.6: Installed. No version info available.
structlog<26,>=24.1.0: Installed. No version info available.
structlog>23: Installed. No version info available.
tenacity!=8.4.0,<10.0.0,>=8.1.0: Installed. No version info available.
tenacity>=8.0.0: Installed. No version info available.
truststore>=0.1: Installed. No version info available.
typing-extensions>=4.7: Installed. No version info available.
uvicorn>=0.26.0: Installed. No version info available.
vcrpy>=7.0.0;: Installed. No version info available.
watchfiles>=0.13: Installed. No version info available.
zstandard>=0.23.0: Installed. No version info available.

Originally created by @sasharosca on GitHub (Oct 24, 2025). ### Checked other resources - [x] This is a bug, not a usage question. For questions, please use the LangChain Forum (https://forum.langchain.com/). - [x] I added a clear and detailed title that summarizes the issue. - [x] I read what a minimal reproducible example is (https://stackoverflow.com/help/minimal-reproducible-example). - [x] I included a self-contained, minimal example that demonstrates the issue INCLUDING all the relevant imports. The code run AS IS to reproduce the issue. ### Example Code ```python clone https://github.com/langchain-ai/new-langgraph-project Add "langchain-google-genai>=2.1.9,<3.0.0", to dependencies Add from langchain_google_genai import ChatGoogleGenerativeAI to graph.py Add .env file ``` ### Error Message and Stack Trace (if applicable) ```shell poetry run langgraph up Starting LangGraph API server... For local dev, requires env var LANGSMITH_API_KEY with access to LangSmith Deployment. For production use, requires a license key in env var LANGGRAPH_CLOUD_LICENSE_KEY. / Building...#1 [internal] load local bake definitions #1 reading from stdin 2.17kB done #1 DONE 0.0s #2 [internal] load build definition from Dockerfile #2 transferring dockerfile: 1.59kB done #2 DONE 0.0s #3 [internal] load metadata for docker.io/langchain/langgraph-api:3.11-wolfi #3 DONE 0.0s #4 [internal] load .dockerignore #4 transferring context: 2B done #4 DONE 0.0s #5 [ 1/10] FROM docker.io/langchain/langgraph-api:3.11-wolfi #5 DONE 0.0s #6 [internal] load build context #6 transferring context: 27.95MB 0.3s done #6 DONE 0.4s #5 [ 1/10] FROM docker.io/langchain/langgraph-api:3.11-wolfi #5 CACHED #7 [ 2/10] ADD . /deps/test #7 DONE 1.0s #8 [ 3/10] RUN for dep in /deps/*; do echo "Installing "; if [ -d "" ]; then echo "Installing "; (cd "" && PYTHONDONTWRITEBYTECODE=1 uv pip install --system --no-cache-dir -c /api/constraints.txt -e .); fi; done #8 0.151 Installing #8 DONE 0.2s #9 [ 4/10] RUN mkdir -p /api/langgraph_api /api/langgraph_runtime /api/langgraph_license && touch /api/langgraph_api/__init__.py /api/langgraph_runtime/__init__.py /api/langgraph_license/__init__.py #9 DONE 0.2s #10 [ 5/10] RUN PYTHONDONTWRITEBYTECODE=1 uv pip install --system --no-cache-dir --no-deps -e /api #10 0.339 Using Python 3.11.13 environment at: /usr #10 1.153 Resolved 1 package in 809ms #10 1.153 Building langgraph-api @ file:///api #10 1.378 Built langgraph-api @ file:///api #10 1.379 Prepared 1 package in 225ms #10 1.404 Uninstalled 1 package in 24ms #10 1.405 Installed 1 package in 1ms #10 1.405 ~ langgraph-api==0.4.46 (from file:///api) #10 DONE 1.4s #11 [ 6/10] RUN pip uninstall -y pip setuptools wheel #11 0.623 Found existing installation: pip 25.2 #11 0.649 Uninstalling pip-25.2: #11 1.569 Successfully uninstalled pip-25.2 #11 1.614 Found existing installation: setuptools 80.9.0.post20250724 #11 1.643 Uninstalling setuptools-80.9.0.post20250724: #11 2.507 Successfully uninstalled setuptools-80.9.0.post20250724 #11 2.544 WARNING: Skipping wheel as it is not installed. #11 DONE 2.6s #12 [ 7/10] RUN rm -rf /usr/local/lib/python*/site-packages/pip* /usr/local/lib/python*/site-packages/setuptools* /usr/local/lib/python*/site-packages/wheel* && find /usr/local/bin -name "pip*" -delete || true #12 0.204 find: /usr/local/bin: No such file or directory #12 DONE 0.2s #13 [ 8/10] RUN rm -rf /usr/lib/python*/site-packages/pip* /usr/lib/python*/site-packages/setuptools* /usr/lib/python*/site-packages/wheel* && find /usr/bin -name "pip*" -delete || true #13 DONE 0.2s #14 [ 9/10] RUN uv pip uninstall --system pip setuptools wheel && rm /usr/bin/uv /usr/bin/uvx #14 0.224 Using Python 3.11.13 environment at: /usr #14 0.232 warning: Skipping pip as it is not installed #14 0.232 warning: Skipping setuptools as it is not installed #14 0.232 warning: Skipping wheel as it is not installed #14 0.232 warning: No packages to uninstall #14 DONE 0.3s #15 [10/10] WORKDIR /deps/test #15 DONE 0.1s #16 exporting to image #16 exporting layers #16 exporting layers 1.2s done #16 writing image sha256:062934f4d09113563bf12905f0c8b8c4e363cf31b467d32c55915505d5e14ee7 done #16 naming to docker.io/library/test-langgraph-api done #16 DONE 1.3s #17 resolving provenance for metadata file #17 DONE 0.0s Attaching to langgraph-api-1, langgraph-postgres-1, langgraph-redis-1 langgraph-redis-1 | 1:C 24 Oct 2025 22:37:41.030 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo langgraph-redis-1 | 1:C 24 Oct 2025 22:37:41.030 # Redis version=6.2.20, bits=64, commit=00000000, modified=0, pid=1, just started langgraph-redis-1 | 1:C 24 Oct 2025 22:37:41.030 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf langgraph-redis-1 | 1:M 24 Oct 2025 22:37:41.030 * monotonic clock: POSIX clock_gettime langgraph-redis-1 | 1:M 24 Oct 2025 22:37:41.031 * Running mode=standalone, port=6379. langgraph-redis-1 | 1:M 24 Oct 2025 22:37:41.031 # Server initialized langgraph-redis-1 | 1:M 24 Oct 2025 22:37:41.031 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect. langgraph-redis-1 | 1:M 24 Oct 2025 22:37:41.031 * Loading RDB produced by version 6.2.20 langgraph-redis-1 | 1:M 24 Oct 2025 22:37:41.031 * RDB age 59 seconds langgraph-redis-1 | 1:M 24 Oct 2025 22:37:41.031 * RDB memory usage when created 0.77 Mb langgraph-redis-1 | 1:M 24 Oct 2025 22:37:41.031 # Done loading RDB, keys loaded: 0, keys expired: 0. langgraph-redis-1 | 1:M 24 Oct 2025 22:37:41.031 * DB loaded from disk: 0.000 seconds langgraph-redis-1 | 1:M 24 Oct 2025 22:37:41.031 * Ready to accept connections langgraph-postgres-1 | langgraph-postgres-1 | PostgreSQL Database directory appears to contain a database; Skipping initialization langgraph-postgres-1 | langgraph-api-1 | 2025-10-24T22:37:49.097790Z [info ] Using langgraph_runtime_postgres [langgraph_runtime] api_revision=92975bb api_variant=licensed langgraph_api_version=0.4.46 thread_name=MainThread langgraph-api-1 | 2025-10-24T22:37:49.111490Z [info ] Using auth of type=noop [langgraph_api.auth.middleware] api_revision=92975bb api_variant=licensed langgraph_api_version=0.4.46 thread_name=MainThread langgraph-api-1 | 2025-10-24T22:37:49.117121Z [info ] Started server process [1] [uvicorn.error] api_revision=92975bb api_variant=licensed color_message='Started server process [\x1b[36m%d\x1b[0m]' langgraph_api_version=0.4.46 thread_name=MainThread langgraph-api-1 | 2025-10-24T22:37:49.117232Z [info ] Waiting for application startup. [uvicorn.error] api_revision=92975bb api_variant=licensed langgraph_api_version=0.4.46 thread_name=MainThread langgraph-api-1 | 2025-10-24T22:37:49.119408Z [info ] Starting Postgres runtime with langgraph-api=0.4.46 [langgraph_runtime_postgres.lifespan] api_revision=92975bb api_variant=licensed langgraph_api_version=0.4.46 thread_name=ThreadPoolExecutor-1_0 version=0.4.46 langgraph-api-1 | 2025-10-24T22:37:49.122740Z [info ] Redis pool stats [langgraph_runtime_postgres.redis] api_revision=92975bb api_variant=licensed idle_connections=1 in_use_connections=0 langgraph_api_version=0.4.46 max_connections=2000 thread_name=ThreadPoolExecutor-1_0 langgraph-api-1 | 2025-10-24T22:37:49.132785Z [info ] Attempting to acquire migration lock [langgraph_runtime_postgres.database] api_revision=92975bb api_variant=licensed langgraph_api_version=0.4.46 thread_name=MainThread langgraph-api-1 | 2025-10-24T22:37:49.133529Z [info ] Migration lock acquired [langgraph_runtime_postgres.database] api_revision=92975bb api_variant=licensed langgraph_api_version=0.4.46 thread_name=ThreadPoolExecutor-1_0 langgraph-api-1 | 2025-10-24T22:37:49.139673Z [info ] No LANGGRAPH_STORE configuration found, using default configuration [langgraph_runtime_postgres.database] api_revision=92975bb api_variant=licensed langgraph_api_version=0.4.46 thread_name=MainThread langgraph-api-1 | 2025-10-24T22:37:49.140445Z [info ] Migration lock released [langgraph_runtime_postgres.database] api_revision=92975bb api_variant=licensed langgraph_api_version=0.4.46 thread_name=ThreadPoolExecutor-1_0 langgraph-api-1 | 2025-10-24T22:37:49.276306Z [info ] Postgres pool stats [langgraph_runtime_postgres.database] api_revision=92975bb api_variant=licensed connections_ms=10 connections_num=1 langgraph_api_version=0.4.46 pool_available=1 pool_max=150 pool_min=1 pool_size=1 requests_num=1 requests_waiting=0 thread_name=MainThread usage_ms=5 langgraph-api-1 | 2025-10-24T22:37:49.276662Z [info ] Starting checkpointer ingestion loop [langgraph_runtime_postgres.checkpoint] api_revision=92975bb api_variant=licensed langgraph_api_version=0.4.46 thread_name=ThreadPoolExecutor-1_0 langgraph-api-1 | 2025-10-24T22:37:49.426114Z [info ] HTTP Request: GET https://api.smith.langchain.com/auth?langgraph-api=true "HTTP/1.1 200 OK" [httpx] api_revision=92975bb api_variant=licensed langgraph_api_version=0.4.46 thread_name=MainThread langgraph-api-1 | 2025-10-24T22:37:49.430317Z [warning ] No enterprise license key found, running in lite mode with LangSmith API key. For production use, set LANGGRAPH_CLOUD_LICENSE_KEY in environment. [langgraph_license.validation] api_revision=92975bb api_variant=licensed langgraph_api_version=0.4.46 thread_name=MainThread langgraph-api-1 | 2025-10-24T22:37:49.458436Z [info ] Starting metadata loop [langgraph_api.metadata] api_revision=92975bb api_variant=licensed langgraph_api_version=0.4.46 thread_name=MainThread langgraph-api-1 | 2025-10-24T22:37:49.458715Z [info ] Getting auth instance: None [langgraph_api.auth.custom] api_revision=92975bb api_variant=licensed langgraph_api_version=0.4.46 langgraph_auth=None thread_name=MainThread langgraph-api-1 | 2025-10-24T22:37:49.460012Z [info ] Starting store TTL sweeper with interval 5.0 minutes [langgraph.store.postgres.aio] api_revision=92975bb api_variant=licensed langgraph_api_version=0.4.46 thread_name=MainThread langgraph-api-1 | 2025-10-24T22:37:49.460666Z [info ] Starting thread TTL sweeper with interval 5 minutes [langgraph_api.thread_ttl] api_revision=92975bb api_variant=licensed interval_minutes=5 langgraph_api_version=0.4.46 strategy=delete thread_name=ThreadPoolExecutor-1_1 langgraph-api-1 | 2025-10-24T22:37:49.461599Z [info ] Starting long query monitor with 5min threshold, scanning every 600s [langgraph_runtime_postgres.long_query_monitor] api_revision=92975bb api_variant=licensed langgraph_api_version=0.4.46 scan_interval_seconds=600 thread_name=ThreadPoolExecutor-1_1 threshold_minutes=5 langgraph-api-1 | 2025-10-24T22:37:49.481839Z [error ] Graph 'agent' failed to load: ModuleNotFoundError: No module named 'langchain_google_genai' [langgraph_runtime_postgres.lifespan] action=fix_user_graph api_revision=92975bb api_variant=licensed error_boundary=user_graph error_message="ModuleNotFoundError: No module named 'langchain_google_genai'" error_type=ModuleNotFoundError graph_id=agent hint='Check that your project dependencies are installed and imports are correct.' langgraph_api_version=0.4.46 location=/deps/test/src/agent/graph.py notes="Could not import python module for graph:\nGraphSpec(id='agent', path='/deps/test/src/agent/graph.py', module=None, variable='graph', config={}, description=None)" summary="ModuleNotFoundError: ModuleNotFoundError: No module named 'langchain_google_genai'" thread_name=ThreadPoolExecutor-1_1 user_traceback='Traceback (most recent call last):\n File "/api/langgraph_api/graph.py", line 420, in collect_graphs_from_env\n File "/api/langgraph_api/utils/config.py", line 144, in run_in_executor\n File "/usr/lib/python3.11/concurrent/futures/thread.py", line 58, in run\n result = self.fn(*self.args, **self.kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/api/langgraph_api/utils/config.py", line 135, in wrapper\n File "/api/langgraph_api/graph.py", line 469, in _graph_from_spec\n File "<frozen importlib._bootstrap_external>", line 940, in exec_module\n File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed\n File "/deps/test/src/agent/graph.py", line 14, in <module>\n from langchain_google_genai import ChatGoogleGenerativeAI\nModuleNotFoundError: No module named \'langchain_google_genai\'\nCould not import python module for graph:\nGraphSpec(id=\'agent\', path=\'/deps/test/src/agent/graph.py\', module=None, variable=\'graph\', config={}, description=None)\n' langgraph-api-1 | 2025-10-24T22:37:49.482868Z [info ] Shutting down remote graphs [langgraph_api.graph] api_revision=92975bb api_variant=licensed langgraph_api_version=0.4.46 thread_name=MainThread langgraph-api-1 | 2025-10-24T22:37:49.483156Z [info ] Checkpointer ingestion task cancelled. Draining queue. [langgraph_runtime_postgres.checkpoint] api_revision=92975bb api_variant=licensed langgraph_api_version=0.4.46 thread_name=ThreadPoolExecutor-1_1 langgraph-api-1 | 2025-10-24T22:37:49.485787Z [error ] Traceback (most recent call last): langgraph-api-1 | File "/api/langgraph_api/graph.py", line 420, in collect_graphs_from_env langgraph-api-1 | File "/api/langgraph_api/utils/config.py", line 144, in run_in_executor langgraph-api-1 | File "/usr/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 "/api/langgraph_api/utils/config.py", line 135, in wrapper langgraph-api-1 | File "/api/langgraph_api/graph.py", line 469, in _graph_from_spec langgraph-api-1 | File "<frozen importlib._bootstrap_external>", line 940, in exec_module langgraph-api-1 | File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed langgraph-api-1 | File "/deps/test/src/agent/graph.py", line 14, in <module> langgraph-api-1 | from langchain_google_genai import ChatGoogleGenerativeAI langgraph-api-1 | ModuleNotFoundError: No module named 'langchain_google_genai' langgraph-api-1 | Could not import python module for graph: langgraph-api-1 | GraphSpec(id='agent', path='/deps/test/src/agent/graph.py', module=None, variable='graph', config={}, description=None) langgraph-api-1 | langgraph-api-1 | The above exception was the direct cause of the following exception: langgraph-api-1 | langgraph-api-1 | Traceback (most recent call last): langgraph-api-1 | File "/usr/lib/python3.11/site-packages/starlette/routing.py", line 694, in lifespan langgraph-api-1 | async with self.lifespan_context(app) as maybe_state: langgraph-api-1 | File "/usr/lib/python3.11/contextlib.py", line 210, in __aenter__ langgraph-api-1 | return await anext(self.gen) langgraph-api-1 | ^^^^^^^^^^^^^^^^^^^^^ langgraph-api-1 | File "/usr/lib/python3.11/site-packages/langgraph_runtime_postgres/lifespan.py", line 141, in lifespan langgraph-api-1 | await graph.collect_graphs_from_env(True) langgraph-api-1 | File "/api/langgraph_api/graph.py", line 422, in collect_graphs_from_env langgraph-api-1 | langgraph_api.utils.errors.GraphLoadError: Failed to load graph 'agent' from /deps/test/src/agent/graph.py: No module named 'langchain_google_genai' langgraph-api-1 | [uvicorn.error] api_revision=92975bb api_variant=licensed langgraph_api_version=0.4.46 thread_name=MainThread langgraph-api-1 | 2025-10-24T22:37:49.485931Z [error ] Application startup failed. Exiting. [uvicorn.error] api_revision=92975bb api_variant=licensed langgraph_api_version=0.4.46 thread_name=MainThread langgraph-api-1 exited with code 3 langgraph-redis-1 | 1:signal-handler (1761345469) Received SIGTERM scheduling shutdown... langgraph-redis-1 | 1:M 24 Oct 2025 22:37:49.853 # User requested shutdown... langgraph-redis-1 | 1:M 24 Oct 2025 22:37:49.853 * Saving the final RDB snapshot before exiting. langgraph-redis-1 | 1:M 24 Oct 2025 22:37:49.856 * DB saved on disk langgraph-redis-1 | 1:M 24 Oct 2025 22:37:49.856 # Redis is now ready to exit, bye bye... langgraph-postgres-1 exited with code 0 langgraph-redis-1 exited with code 0 time="2025-10-24T15:37:32-07:00" level=warning msg="The \"dep\" variable is not set. Defaulting to a blank string." time="2025-10-24T15:37:32-07:00" level=warning msg="The \"dep\" variable is not set. Defaulting to a blank string." time="2025-10-24T15:37:32-07:00" level=warning msg="The \"dep\" variable is not set. Defaulting to a blank string." time="2025-10-24T15:37:32-07:00" level=warning msg="The \"dep\" variable is not set. Defaulting to a blank string." test-langgraph-api Built Container test-langgraph-api-1 Recreate Container test-langgraph-api-1 Recreated langgraph-postgres-1 | 2025-10-24 22:37:41.085 UTC [1] LOG: starting PostgreSQL 16.10 (Debian 16.10-1.pgdg12+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14+deb12u1) 12.2.0, 64-bit langgraph-postgres-1 | 2025-10-24 22:37:41.085 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432 langgraph-postgres-1 | 2025-10-24 22:37:41.085 UTC [1] LOG: listening on IPv6 address "::", port 5432 langgraph-postgres-1 | 2025-10-24 22:37:41.092 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" langgraph-postgres-1 | 2025-10-24 22:37:41.101 UTC [28] LOG: database system was shut down at 2025-10-24 22:36:42 UTC langgraph-postgres-1 | 2025-10-24 22:37:41.108 UTC [1] LOG: database system is ready to accept connections Aborting on container exit... Container test-langgraph-api-1 Stopping Container test-langgraph-api-1 Stopped Container test-langgraph-redis-1 Stopping Container test-langgraph-postgres-1 Stopping langgraph-postgres-1 | 2025-10-24 22:37:49.806 UTC [1] LOG: received fast shutdown request langgraph-postgres-1 | 2025-10-24 22:37:49.810 UTC [1] LOG: aborting any active transactions langgraph-postgres-1 | 2025-10-24 22:37:49.812 UTC [1] LOG: background worker "logical replication launcher" (PID 31) exited with exit code 1 langgraph-postgres-1 | 2025-10-24 22:37:49.812 UTC [26] LOG: shutting down langgraph-postgres-1 | 2025-10-24 22:37:49.815 UTC [26] LOG: checkpoint starting: shutdown immediate langgraph-postgres-1 | 2025-10-24 22:37:49.842 UTC [26] LOG: checkpoint complete: wrote 3 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.010 s, sync=0.003 s, total=0.031 s; sync files=2, longest=0.002 s, average=0.002 s; distance=0 kB, estimate=0 kB; lsn=0/16EF938, redo lsn=0/16EF938 langgraph-postgres-1 | 2025-10-24 22:37:49.846 UTC [1] LOG: database system is shut down Container test-langgraph-postgres-1 Stopped Container test-langgraph-redis-1 Stopped ``` ### Description Dependency not being found when running with langgraph up but it works fine with langgraph dev. This part of the log makes me think its not installing anything: #8 [ 3/10] RUN for dep in /deps/*; do echo "Installing "; if [ -d "" ]; then echo "Installing "; (cd "" && PYTHONDONTWRITEBYTECODE=1 uv pip install --system --no-cache-dir -c /api/constraints.txt -e .); fi; done #8 0.151 Installing #8 DONE 0.2s ### System Info poetry run python -m langchain_core.sys_info System Information ------------------ > OS: Linux > OS Version: #33~24.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 19 17:02:30 UTC 2 > Python Version: 3.12.3 (main, Aug 14 2025, 17:47:21) [GCC 13.3.0] Package Information ------------------- > langchain_core: 0.3.76 > langsmith: 0.4.38 > langchain_google_genai: 2.1.12 > langgraph_api: 0.4.46 > langgraph_cli: 0.4.4 > langgraph_license: Installed. No version info available. > langgraph_runtime: Installed. No version info available. > langgraph_runtime_inmem: 0.14.1 > langgraph_sdk: 0.2.9 Optional packages not installed ------------------------------- > langserve Other Dependencies ------------------ > blockbuster<2.0.0,>=1.5.24: Installed. No version info available. > claude-agent-sdk>=0.1.0;: Installed. No version info available. > click>=8.1.7: Installed. No version info available. > cloudpickle>=3.0.0: Installed. No version info available. > cryptography<45.0,>=42.0.0: Installed. No version info available. > filetype<2,>=1.2: Installed. No version info available. > google-ai-generativelanguage<1,>=0.7: Installed. No version info available. > grpcio-tools<2.0.0,>=1.75.0: Installed. No version info available. > grpcio<2.0.0,>=1.75.0: Installed. No version info available. > httpx<1,>=0.23.0: Installed. No version info available. > httpx>=0.25.0: Installed. No version info available. > httpx>=0.25.2: Installed. No version info available. > jsonpatch<2.0,>=1.33: Installed. No version info available. > jsonschema-rs<0.30,>=0.20.0: Installed. No version info available. > langchain-core>=0.3.64: Installed. No version info available. > langchain-core>=0.3.75: Installed. No version info available. > langgraph-api<0.5.0,>=0.3;: Installed. No version info available. > langgraph-checkpoint>=2.0.23: Installed. No version info available. > langgraph-checkpoint>=2.0.25: Installed. No version info available. > langgraph-runtime-inmem<0.15.0,>=0.14.0: Installed. No version info available. > langgraph-runtime-inmem>=0.7;: Installed. No version info available. > langgraph-sdk>=0.1.0;: Installed. No version info available. > langgraph-sdk>=0.2.0: Installed. No version info available. > langgraph>=0.2: Installed. No version info available. > langgraph>=0.4.0: Installed. No version info available. > langsmith-pyo3>=0.1.0rc2;: Installed. No version info available. > langsmith>=0.3.45: Installed. No version info available. > openai-agents>=0.0.3;: Installed. No version info available. > opentelemetry-api>=1.30.0;: Installed. No version info available. > opentelemetry-api>=1.37.0: Installed. No version info available. > opentelemetry-exporter-otlp-proto-http>=1.30.0;: Installed. No version info available. > opentelemetry-exporter-otlp-proto-http>=1.37.0: Installed. No version info available. > opentelemetry-sdk>=1.30.0;: Installed. No version info available. > opentelemetry-sdk>=1.37.0: Installed. No version info available. > orjson>=3.10.1: Installed. No version info available. > orjson>=3.9.14;: Installed. No version info available. > orjson>=3.9.7: Installed. No version info available. > packaging>=23.2: Installed. No version info available. > protobuf<7.0.0,>=6.32.1: Installed. No version info available. > pydantic<3,>=1: Installed. No version info available. > pydantic<3,>=2: Installed. No version info available. > pydantic>=2.7.4: Installed. No version info available. > pyjwt>=2.9.0: Installed. No version info available. > pytest>=7.0.0;: Installed. No version info available. > python-dotenv>=0.8.0;: Installed. No version info available. > PyYAML>=5.3: Installed. No version info available. > requests-toolbelt>=1.0.0: Installed. No version info available. > requests>=2.0.0: Installed. No version info available. > rich>=13.9.4;: Installed. No version info available. > sse-starlette<2.2.0,>=2.1.0: Installed. No version info available. > sse-starlette>=2: Installed. No version info available. > starlette>=0.37: Installed. No version info available. > starlette>=0.38.6: Installed. No version info available. > structlog<26,>=24.1.0: Installed. No version info available. > structlog>23: Installed. No version info available. > tenacity!=8.4.0,<10.0.0,>=8.1.0: Installed. No version info available. > tenacity>=8.0.0: Installed. No version info available. > truststore>=0.1: Installed. No version info available. > typing-extensions>=4.7: Installed. No version info available. > uvicorn>=0.26.0: Installed. No version info available. > vcrpy>=7.0.0;: Installed. No version info available. > watchfiles>=0.13: Installed. No version info available. > zstandard>=0.23.0: Installed. No version info available.
yindo added the bugpending labels 2026-02-20 17:42:47 -05:00
yindo closed this issue 2026-02-20 17:42:47 -05:00
Author
Owner

@eyurtsev commented on GitHub (Nov 7, 2025):

This looks like user error -- you'd need to use pip install -e . to install the deps after adding them.

@eyurtsev commented on GitHub (Nov 7, 2025): This looks like user error -- you'd need to use `pip install -e .` to install the deps after adding them.
Author
Owner

@sasharosca commented on GitHub (Nov 7, 2025):

@eyurtsev for langgraph dev yes but isn't langgraph up supposed to install dependencies on its own? Are you saying it has a dependency on my current python environment?

For the record I tried pip install -e . and then langgraph up and got the same error.

(agent-py3.12) sasha@sasha-MS-7A59:~/drive/code/new-langgraph-project$ pip install -e .
Obtaining file:///home/sasha/drive/code/new-langgraph-project
  Installing build dependencies ... done
  Checking if build backend supports build_editable ... done
  Getting requirements to build editable ... done
  Preparing editable metadata (pyproject.toml) ... done
Requirement already satisfied: langgraph>=1.0.0 in ./.venv/lib/python3.12/site-packages (from agent==0.0.1) (1.0.2)
Requirement already satisfied: python-dotenv>=1.0.1 in ./.venv/lib/python3.12/site-packages (from agent==0.0.1) (1.2.1)
Requirement already satisfied: langchain-google-genai<3.0.0,>=2.1.9 in ./.venv/lib/python3.12/site-packages (from agent==0.0.1) (2.1.12)
Requirement already satisfied: langchain-core>=0.3.75 in ./.venv/lib/python3.12/site-packages (from langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (1.0.4)
Requirement already satisfied: google-ai-generativelanguage<1,>=0.7 in ./.venv/lib/python3.12/site-packages (from langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (0.9.0)
Requirement already satisfied: pydantic<3,>=2 in ./.venv/lib/python3.12/site-packages (from langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (2.12.4)
Requirement already satisfied: filetype<2,>=1.2 in ./.venv/lib/python3.12/site-packages (from langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (1.2.0)
Requirement already satisfied: google-api-core!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0,>=1.34.1 in ./.venv/lib/python3.12/site-packages (from google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0,>=1.34.1->google-ai-generativelanguage<1,>=0.7->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (2.28.1)
Requirement already satisfied: google-auth!=2.24.0,!=2.25.0,<3.0.0,>=2.14.1 in ./.venv/lib/python3.12/site-packages (from google-ai-generativelanguage<1,>=0.7->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (2.43.0)
Requirement already satisfied: grpcio<2.0.0,>=1.33.2 in ./.venv/lib/python3.12/site-packages (from google-ai-generativelanguage<1,>=0.7->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (1.76.0)
Requirement already satisfied: proto-plus<2.0.0,>=1.22.3 in ./.venv/lib/python3.12/site-packages (from google-ai-generativelanguage<1,>=0.7->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (1.26.1)
Requirement already satisfied: protobuf!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<7.0.0,>=3.20.2 in ./.venv/lib/python3.12/site-packages (from google-ai-generativelanguage<1,>=0.7->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (6.33.0)
Requirement already satisfied: googleapis-common-protos<2.0.0,>=1.56.2 in ./.venv/lib/python3.12/site-packages (from google-api-core!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0,>=1.34.1->google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0,>=1.34.1->google-ai-generativelanguage<1,>=0.7->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (1.72.0)
Requirement already satisfied: requests<3.0.0,>=2.18.0 in ./.venv/lib/python3.12/site-packages (from google-api-core!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0,>=1.34.1->google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0,>=1.34.1->google-ai-generativelanguage<1,>=0.7->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (2.32.5)
Requirement already satisfied: grpcio-status<2.0.0,>=1.33.2 in ./.venv/lib/python3.12/site-packages (from google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0,>=1.34.1->google-ai-generativelanguage<1,>=0.7->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (1.76.0)
Requirement already satisfied: cachetools<7.0,>=2.0.0 in ./.venv/lib/python3.12/site-packages (from google-auth!=2.24.0,!=2.25.0,<3.0.0,>=2.14.1->google-ai-generativelanguage<1,>=0.7->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (6.2.1)
Requirement already satisfied: pyasn1-modules>=0.2.1 in ./.venv/lib/python3.12/site-packages (from google-auth!=2.24.0,!=2.25.0,<3.0.0,>=2.14.1->google-ai-generativelanguage<1,>=0.7->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (0.4.2)
Requirement already satisfied: rsa<5,>=3.1.4 in ./.venv/lib/python3.12/site-packages (from google-auth!=2.24.0,!=2.25.0,<3.0.0,>=2.14.1->google-ai-generativelanguage<1,>=0.7->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (4.9.1)
Requirement already satisfied: typing-extensions~=4.12 in ./.venv/lib/python3.12/site-packages (from grpcio<2.0.0,>=1.33.2->google-ai-generativelanguage<1,>=0.7->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (4.15.0)
Requirement already satisfied: annotated-types>=0.6.0 in ./.venv/lib/python3.12/site-packages (from pydantic<3,>=2->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (0.7.0)
Requirement already satisfied: pydantic-core==2.41.5 in ./.venv/lib/python3.12/site-packages (from pydantic<3,>=2->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (2.41.5)
Requirement already satisfied: typing-inspection>=0.4.2 in ./.venv/lib/python3.12/site-packages (from pydantic<3,>=2->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (0.4.2)
Requirement already satisfied: charset_normalizer<4,>=2 in ./.venv/lib/python3.12/site-packages (from requests<3.0.0,>=2.18.0->google-api-core!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0,>=1.34.1->google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0,>=1.34.1->google-ai-generativelanguage<1,>=0.7->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (3.4.4)
Requirement already satisfied: idna<4,>=2.5 in ./.venv/lib/python3.12/site-packages (from requests<3.0.0,>=2.18.0->google-api-core!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0,>=1.34.1->google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0,>=1.34.1->google-ai-generativelanguage<1,>=0.7->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (3.11)
Requirement already satisfied: urllib3<3,>=1.21.1 in ./.venv/lib/python3.12/site-packages (from requests<3.0.0,>=2.18.0->google-api-core!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0,>=1.34.1->google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0,>=1.34.1->google-ai-generativelanguage<1,>=0.7->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (2.5.0)
Requirement already satisfied: certifi>=2017.4.17 in ./.venv/lib/python3.12/site-packages (from requests<3.0.0,>=2.18.0->google-api-core!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0,>=1.34.1->google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0,>=1.34.1->google-ai-generativelanguage<1,>=0.7->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (2025.10.5)
Requirement already satisfied: pyasn1>=0.1.3 in ./.venv/lib/python3.12/site-packages (from rsa<5,>=3.1.4->google-auth!=2.24.0,!=2.25.0,<3.0.0,>=2.14.1->google-ai-generativelanguage<1,>=0.7->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (0.6.1)
Requirement already satisfied: jsonpatch<2.0.0,>=1.33.0 in ./.venv/lib/python3.12/site-packages (from langchain-core>=0.3.75->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (1.33)
Requirement already satisfied: langsmith<1.0.0,>=0.3.45 in ./.venv/lib/python3.12/site-packages (from langchain-core>=0.3.75->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (0.4.41)
Requirement already satisfied: packaging<26.0.0,>=23.2.0 in ./.venv/lib/python3.12/site-packages (from langchain-core>=0.3.75->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (25.0)
Requirement already satisfied: pyyaml<7.0.0,>=5.3.0 in ./.venv/lib/python3.12/site-packages (from langchain-core>=0.3.75->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (6.0.3)
Requirement already satisfied: tenacity!=8.4.0,<10.0.0,>=8.1.0 in ./.venv/lib/python3.12/site-packages (from langchain-core>=0.3.75->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (9.1.2)
Requirement already satisfied: jsonpointer>=1.9 in ./.venv/lib/python3.12/site-packages (from jsonpatch<2.0.0,>=1.33.0->langchain-core>=0.3.75->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (3.0.0)
Requirement already satisfied: httpx<1,>=0.23.0 in ./.venv/lib/python3.12/site-packages (from langsmith<1.0.0,>=0.3.45->langchain-core>=0.3.75->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (0.28.1)
Requirement already satisfied: orjson>=3.9.14 in ./.venv/lib/python3.12/site-packages (from langsmith<1.0.0,>=0.3.45->langchain-core>=0.3.75->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (3.11.4)
Requirement already satisfied: requests-toolbelt>=1.0.0 in ./.venv/lib/python3.12/site-packages (from langsmith<1.0.0,>=0.3.45->langchain-core>=0.3.75->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (1.0.0)
Requirement already satisfied: zstandard>=0.23.0 in ./.venv/lib/python3.12/site-packages (from langsmith<1.0.0,>=0.3.45->langchain-core>=0.3.75->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (0.25.0)
Requirement already satisfied: anyio in ./.venv/lib/python3.12/site-packages (from httpx<1,>=0.23.0->langsmith<1.0.0,>=0.3.45->langchain-core>=0.3.75->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (4.11.0)
Requirement already satisfied: httpcore==1.* in ./.venv/lib/python3.12/site-packages (from httpx<1,>=0.23.0->langsmith<1.0.0,>=0.3.45->langchain-core>=0.3.75->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (1.0.9)
Requirement already satisfied: h11>=0.16 in ./.venv/lib/python3.12/site-packages (from httpcore==1.*->httpx<1,>=0.23.0->langsmith<1.0.0,>=0.3.45->langchain-core>=0.3.75->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (0.16.0)
Requirement already satisfied: langgraph-checkpoint<4.0.0,>=2.1.0 in ./.venv/lib/python3.12/site-packages (from langgraph>=1.0.0->agent==0.0.1) (3.0.1)
Requirement already satisfied: langgraph-prebuilt<1.1.0,>=1.0.2 in ./.venv/lib/python3.12/site-packages (from langgraph>=1.0.0->agent==0.0.1) (1.0.2)
Requirement already satisfied: langgraph-sdk<0.3.0,>=0.2.2 in ./.venv/lib/python3.12/site-packages (from langgraph>=1.0.0->agent==0.0.1) (0.2.9)
Requirement already satisfied: xxhash>=3.5.0 in ./.venv/lib/python3.12/site-packages (from langgraph>=1.0.0->agent==0.0.1) (3.6.0)
Requirement already satisfied: ormsgpack>=1.12.0 in ./.venv/lib/python3.12/site-packages (from langgraph-checkpoint<4.0.0,>=2.1.0->langgraph>=1.0.0->agent==0.0.1) (1.12.0)
Requirement already satisfied: sniffio>=1.1 in ./.venv/lib/python3.12/site-packages (from anyio->httpx<1,>=0.23.0->langsmith<1.0.0,>=0.3.45->langchain-core>=0.3.75->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (1.3.1)
Building wheels for collected packages: agent
  Building editable for agent (pyproject.toml) ... done
  Created wheel for agent: filename=agent-0.0.1-0.editable-py3-none-any.whl size=5141 sha256=9634b853d45b03aa7c0ee17ca1a05b62bdb9e6f948743ad56573348e54723ecb
  Stored in directory: /tmp/pip-ephem-wheel-cache-t6r8cbta/wheels/5b/16/b9/cd27ec45bbada34b14e482b7f4fcd29bd4a13db5913d2ef763
Successfully built agent
Installing collected packages: agent
  Attempting uninstall: agent
    Found existing installation: agent 0.0.1
    Uninstalling agent-0.0.1:
      Successfully uninstalled agent-0.0.1
Successfully installed agent-0.0.1

[notice] A new release of pip is available: 25.2 -> 25.3
[notice] To update, run: pip install --upgrade pip
(agent-py3.12) sasha@sasha-MS-7A59:~/drive/code/new-langgraph-project$ langgraph up
Starting LangGraph API server...
For local dev, requires env var LANGSMITH_API_KEY with access to LangSmith Deployment.
For production use, requires a license key in env var LANGGRAPH_CLOUD_LICENSE_KEY.
- Building...#1 [internal] load local bake definitions
#1 reading from stdin 2.25kB done
#1 DONE 0.0s

#2 [internal] load build definition from Dockerfile
#2 transferring dockerfile: 1.65kB done
#2 DONE 0.0s

#3 [internal] load metadata for docker.io/langchain/langgraph-api:3.11-wolfi
#3 DONE 0.0s

#4 [internal] load .dockerignore
#4 transferring context: 2B done
#4 DONE 0.0s

#5 [ 1/10] FROM docker.io/langchain/langgraph-api:3.11-wolfi
#5 DONE 0.0s

#6 [internal] load build context
#6 transferring context: 807.69kB 0.2s done
#6 DONE 0.2s

#5 [ 1/10] FROM docker.io/langchain/langgraph-api:3.11-wolfi
#5 CACHED

#7 [ 2/10] ADD . /deps/new-langgraph-project
#7 DONE 0.9s

#8 [ 3/10] RUN for dep in /deps/*; do             echo "Installing ";             if [ -d "" ]; then                 echo "Installing ";                 (cd "" && PYTHONDONTWRITEBYTECODE=1 uv pip install --system --no-cache-dir -c /api/constraints.txt -e .);             fi;         done
#8 0.224 Installing 
#8 DONE 0.2s

#9 [ 4/10] RUN mkdir -p /api/langgraph_api /api/langgraph_runtime /api/langgraph_license && touch /api/langgraph_api/__init__.py /api/langgraph_runtime/__init__.py /api/langgraph_license/__init__.py
#9 DONE 0.2s

#10 [ 5/10] RUN PYTHONDONTWRITEBYTECODE=1 uv pip install --system --no-cache-dir --no-deps -e /api
#10 0.384 Using Python 3.11.13 environment at: /usr
#10 1.108 Resolved 1 package in 717ms
#10 1.109    Building langgraph-api @ file:///api
#10 1.333       Built langgraph-api @ file:///api
#10 1.334 Prepared 1 package in 225ms
#10 1.359 Uninstalled 1 package in 25ms
#10 1.360 Installed 1 package in 1ms
#10 1.360  ~ langgraph-api==0.5.8 (from file:///api)
#10 DONE 1.4s

#11 [ 6/10] RUN pip uninstall -y pip setuptools wheel
#11 0.580 Found existing installation: pip 25.2
#11 0.612 Uninstalling pip-25.2:
#11 1.494   Successfully uninstalled pip-25.2
#11 1.545 Found existing installation: setuptools 80.9.0.post20250724
#11 1.582 Uninstalling setuptools-80.9.0.post20250724:
#11 2.376   Successfully uninstalled setuptools-80.9.0.post20250724
#11 2.447 WARNING: Skipping wheel as it is not installed.
#11 DONE 2.5s

#12 [ 7/10] RUN rm -rf /usr/local/lib/python*/site-packages/pip* /usr/local/lib/python*/site-packages/setuptools* /usr/local/lib/python*/site-packages/wheel* && find /usr/local/bin -name "pip*" -delete || true
#12 0.240 find: /usr/local/bin: No such file or directory
#12 DONE 0.3s

#13 [ 8/10] RUN rm -rf /usr/lib/python*/site-packages/pip* /usr/lib/python*/site-packages/setuptools* /usr/lib/python*/site-packages/wheel* && find /usr/bin -name "pip*" -delete || true
#13 DONE 0.3s

#14 [ 9/10] RUN uv pip uninstall --system pip setuptools wheel && rm /usr/bin/uv /usr/bin/uvx
#14 0.274 Using Python 3.11.13 environment at: /usr
#14 0.283 warning: Skipping pip as it is not installed
#14 0.283 warning: Skipping setuptools as it is not installed
#14 0.283 warning: Skipping wheel as it is not installed
#14 0.283 warning: No packages to uninstall
#14 DONE 0.3s

#15 [10/10] WORKDIR /deps/new-langgraph-project
#15 DONE 0.1s

#16 exporting to image
#16 exporting layers
#16 exporting layers 1.3s done
#16 writing image sha256:60fbaf83aa5cdf7413b85871af50e5f17a2d2c9f2f65c994863ea2e13ad0be3b done
#16 naming to docker.io/library/new-langgraph-project-langgraph-api done
#16 DONE 1.3s

#17 resolving provenance for metadata file
#17 DONE 0.0s
Attaching to langgraph-api-1, langgraph-postgres-1, langgraph-redis-1
langgraph-redis-1  | 1:C 08 Nov 2025 00:46:09.934 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
langgraph-redis-1  | 1:C 08 Nov 2025 00:46:09.934 # Redis version=6.2.20, bits=64, commit=00000000, modified=0, pid=1, just started
langgraph-redis-1  | 1:C 08 Nov 2025 00:46:09.934 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
langgraph-redis-1  | 1:M 08 Nov 2025 00:46:09.935 * monotonic clock: POSIX clock_gettime
langgraph-redis-1  | 1:M 08 Nov 2025 00:46:09.936 * Running mode=standalone, port=6379.
langgraph-redis-1  | 1:M 08 Nov 2025 00:46:09.936 # Server initialized
langgraph-redis-1  | 1:M 08 Nov 2025 00:46:09.936 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect.
langgraph-redis-1  | 1:M 08 Nov 2025 00:46:09.936 * Loading RDB produced by version 6.2.20
langgraph-redis-1  | 1:M 08 Nov 2025 00:46:09.936 * RDB age 146 seconds
langgraph-redis-1  | 1:M 08 Nov 2025 00:46:09.936 * RDB memory usage when created 0.77 Mb
langgraph-redis-1  | 1:M 08 Nov 2025 00:46:09.936 # Done loading RDB, keys loaded: 0, keys expired: 0.
langgraph-redis-1  | 1:M 08 Nov 2025 00:46:09.936 * DB loaded from disk: 0.000 seconds
langgraph-redis-1  | 1:M 08 Nov 2025 00:46:09.936 * Ready to accept connections
langgraph-postgres-1  | 
langgraph-postgres-1  | PostgreSQL Database directory appears to contain a database; Skipping initialization
langgraph-postgres-1  | 
langgraph-api-1       | 2025-11-08T00:46:18.129214Z [info     ] Using langgraph_runtime_postgres [langgraph_runtime] api_revision=fa6ed4f api_variant=licensed langgraph_api_version=0.5.8 thread_name=MainThread
langgraph-api-1       | 2025-11-08T00:46:18.143961Z [info     ] Using auth of type=noop        [langgraph_api.auth.middleware] api_revision=fa6ed4f api_variant=licensed langgraph_api_version=0.5.8 thread_name=MainThread
langgraph-api-1       | 2025-11-08T00:46:18.149920Z [info     ] Started server process [1]     [uvicorn.error] api_revision=fa6ed4f api_variant=licensed color_message='Started server process [\x1b[36m%d\x1b[0m]' langgraph_api_version=0.5.8 thread_name=MainThread
langgraph-api-1       | 2025-11-08T00:46:18.150057Z [info     ] Waiting for application startup. [uvicorn.error] api_revision=fa6ed4f api_variant=licensed langgraph_api_version=0.5.8 thread_name=MainThread
langgraph-api-1       | 2025-11-08T00:46:18.152384Z [info     ] Starting Postgres runtime with langgraph-api=0.5.8 [langgraph_runtime_postgres.lifespan] api_revision=fa6ed4f api_variant=licensed langgraph_api_version=0.5.8 thread_name=ThreadPoolExecutor-1_0 version=0.5.8
langgraph-api-1       | 2025-11-08T00:46:18.155722Z [info     ] Redis pool stats               [langgraph_runtime_postgres.redis] api_revision=fa6ed4f api_variant=licensed idle_connections=1 in_use_connections=0 langgraph_api_version=0.5.8 max_connections=2000 thread_name=ThreadPoolExecutor-1_0
langgraph-api-1       | 2025-11-08T00:46:18.176784Z [info     ] Attempting to acquire migration lock [langgraph_runtime_postgres.database] api_revision=fa6ed4f api_variant=licensed langgraph_api_version=0.5.8 thread_name=MainThread
langgraph-api-1       | 2025-11-08T00:46:18.177553Z [info     ] Migration lock acquired        [langgraph_runtime_postgres.database] api_revision=fa6ed4f api_variant=licensed langgraph_api_version=0.5.8 thread_name=ThreadPoolExecutor-1_0
langgraph-api-1       | 2025-11-08T00:46:18.185293Z [info     ] No LANGGRAPH_STORE configuration found, using default configuration [langgraph_runtime_postgres.database] api_revision=fa6ed4f api_variant=licensed langgraph_api_version=0.5.8 thread_name=MainThread
langgraph-api-1       | 2025-11-08T00:46:18.186095Z [info     ] Migration lock released        [langgraph_runtime_postgres.database] api_revision=fa6ed4f api_variant=licensed langgraph_api_version=0.5.8 thread_name=ThreadPoolExecutor-1_0
langgraph-api-1       | 2025-11-08T00:46:18.327699Z [info     ] Postgres pool stats            [langgraph_runtime_postgres.database] api_revision=fa6ed4f api_variant=licensed connections_ms=21 connections_num=1 langgraph_api_version=0.5.8 pool_available=1 pool_max=150 pool_min=1 pool_size=1 requests_num=1 requests_waiting=0 thread_name=MainThread usage_ms=7
langgraph-api-1       | 2025-11-08T00:46:18.328130Z [info     ] Starting checkpointer ingestion loop [langgraph_runtime_postgres.checkpoint] api_revision=fa6ed4f api_variant=licensed langgraph_api_version=0.5.8 thread_name=ThreadPoolExecutor-1_0
langgraph-api-1       | 2025-11-08T00:46:18.479124Z [info     ] HTTP Request: GET https://api.smith.langchain.com/auth?langgraph-api=true "HTTP/1.1 200 OK" [httpx] api_revision=fa6ed4f api_variant=licensed langgraph_api_version=0.5.8 thread_name=MainThread
langgraph-api-1       | 2025-11-08T00:46:18.484932Z [warning  ] No enterprise license key found, running in lite mode with LangSmith API key. For production use, set LANGGRAPH_CLOUD_LICENSE_KEY in environment. [langgraph_license.validation] api_revision=fa6ed4f api_variant=licensed langgraph_api_version=0.5.8 thread_name=MainThread
langgraph-api-1       | 2025-11-08T00:46:18.528009Z [info     ] Starting metadata loop         [langgraph_api.metadata] api_revision=fa6ed4f api_variant=licensed langgraph_api_version=0.5.8 thread_name=MainThread
langgraph-api-1       | 2025-11-08T00:46:18.528768Z [info     ] Getting auth instance: None    [langgraph_api.auth.custom] api_revision=fa6ed4f api_variant=licensed langgraph_api_version=0.5.8 langgraph_auth=None thread_name=MainThread
langgraph-api-1       | 2025-11-08T00:46:18.532477Z [info     ] Starting store TTL sweeper with interval 5.0 minutes [langgraph.store.postgres.aio] api_revision=fa6ed4f api_variant=licensed langgraph_api_version=0.5.8 thread_name=MainThread
langgraph-api-1       | 2025-11-08T00:46:18.533961Z [info     ] Starting thread TTL sweeper with interval 5 minutes [langgraph_api.thread_ttl] api_revision=fa6ed4f api_variant=licensed interval_minutes=5 langgraph_api_version=0.5.8 strategy=delete thread_name=ThreadPoolExecutor-1_0
langgraph-api-1       | 2025-11-08T00:46:18.536211Z [info     ] Starting long query monitor with 5min threshold, scanning every 600s [langgraph_runtime_postgres.long_query_monitor] api_revision=fa6ed4f api_variant=licensed langgraph_api_version=0.5.8 scan_interval_seconds=600 thread_name=ThreadPoolExecutor-1_0 threshold_minutes=5
langgraph-api-1       | 2025-11-08T00:46:18.563991Z [error    ] Graph 'agent' failed to load: ModuleNotFoundError: No module named 'langchain_google_genai' [langgraph_runtime_postgres.lifespan] action=fix_user_graph api_revision=fa6ed4f api_variant=licensed error_boundary=user_graph error_message="ModuleNotFoundError: No module named 'langchain_google_genai'" error_type=ModuleNotFoundError graph_id=agent hint='Check that your project dependencies are installed and imports are correct.' langgraph_api_version=0.5.8 location=/deps/new-langgraph-project/src/agent/graph.py notes="Could not import python module for graph:\nGraphSpec(id='agent', path='/deps/new-langgraph-project/src/agent/graph.py', module=None, variable='graph', config={}, description=None)" summary="ModuleNotFoundError: ModuleNotFoundError: No module named 'langchain_google_genai'" thread_name=ThreadPoolExecutor-1_0 user_traceback='Traceback (most recent call last):\n  File "/api/langgraph_api/graph.py", line 420, in collect_graphs_from_env\n  File "/api/langgraph_api/utils/config.py", line 144, in run_in_executor\n  File "/usr/lib/python3.11/concurrent/futures/thread.py", line 58, in run\n    result = self.fn(*self.args, **self.kwargs)\n             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n  File "/api/langgraph_api/utils/config.py", line 135, in wrapper\n  File "/api/langgraph_api/graph.py", line 469, in _graph_from_spec\n  File "<frozen importlib._bootstrap_external>", line 940, in exec_module\n  File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed\n  File "/deps/new-langgraph-project/src/agent/graph.py", line 14, in <module>\n    from langchain_google_genai import ChatGoogleGenerativeAI\nModuleNotFoundError: No module named \'langchain_google_genai\'\nCould not import python module for graph:\nGraphSpec(id=\'agent\', path=\'/deps/new-langgraph-project/src/agent/graph.py\', module=None, variable=\'graph\', config={}, description=None)\n'
langgraph-api-1       | 2025-11-08T00:46:18.567368Z [info     ] Shutting down remote graphs    [langgraph_api.graph] api_revision=fa6ed4f api_variant=licensed langgraph_api_version=0.5.8 thread_name=MainThread
langgraph-api-1       | 2025-11-08T00:46:18.568790Z [info     ] Checkpointer ingestion task cancelled. Draining queue. [langgraph_runtime_postgres.checkpoint] api_revision=fa6ed4f api_variant=licensed langgraph_api_version=0.5.8 thread_name=ThreadPoolExecutor-1_0
langgraph-api-1       | 2025-11-08T00:46:18.583400Z [error    ] Traceback (most recent call last):
langgraph-api-1       |   File "/api/langgraph_api/graph.py", line 420, in collect_graphs_from_env
langgraph-api-1       |   File "/api/langgraph_api/utils/config.py", line 144, in run_in_executor
langgraph-api-1       |   File "/usr/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 "/api/langgraph_api/utils/config.py", line 135, in wrapper
langgraph-api-1       |   File "/api/langgraph_api/graph.py", line 469, in _graph_from_spec
langgraph-api-1       |   File "<frozen importlib._bootstrap_external>", line 940, in exec_module
langgraph-api-1       |   File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
langgraph-api-1       |   File "/deps/new-langgraph-project/src/agent/graph.py", line 14, in <module>
langgraph-api-1       |     from langchain_google_genai import ChatGoogleGenerativeAI
langgraph-api-1       | ModuleNotFoundError: No module named 'langchain_google_genai'
langgraph-api-1       | Could not import python module for graph:
langgraph-api-1       | GraphSpec(id='agent', path='/deps/new-langgraph-project/src/agent/graph.py', module=None, variable='graph', config={}, description=None)
langgraph-api-1       | 
langgraph-api-1       | The above exception was the direct cause of the following exception:
langgraph-api-1       | 
langgraph-api-1       | Traceback (most recent call last):
langgraph-api-1       |   File "/usr/lib/python3.11/site-packages/starlette/routing.py", line 694, in lifespan
langgraph-api-1       |     async with self.lifespan_context(app) as maybe_state:
langgraph-api-1       |   File "/usr/lib/python3.11/contextlib.py", line 210, in __aenter__
langgraph-api-1       |     return await anext(self.gen)
langgraph-api-1       |            ^^^^^^^^^^^^^^^^^^^^^
langgraph-api-1       |   File "/usr/lib/python3.11/site-packages/langgraph_runtime_postgres/lifespan.py", line 148, in lifespan
langgraph-api-1       |     await graph.collect_graphs_from_env(True)
langgraph-api-1       |   File "/api/langgraph_api/graph.py", line 422, in collect_graphs_from_env
langgraph-api-1       | langgraph_api.utils.errors.GraphLoadError: Failed to load graph 'agent' from /deps/new-langgraph-project/src/agent/graph.py: No module named 'langchain_google_genai'
langgraph-api-1       |  [uvicorn.error] api_revision=fa6ed4f api_variant=licensed langgraph_api_version=0.5.8 thread_name=MainThread
langgraph-api-1       | 2025-11-08T00:46:18.584104Z [error    ] Application startup failed. Exiting. [uvicorn.error] api_revision=fa6ed4f api_variant=licensed langgraph_api_version=0.5.8 thread_name=MainThread
langgraph-api-1 exited with code 3
langgraph-redis-1     | 1:signal-handler (1762562779) Received SIGTERM scheduling shutdown...
langgraph-redis-1     | 1:M 08 Nov 2025 00:46:19.065 # User requested shutdown...
langgraph-redis-1     | 1:M 08 Nov 2025 00:46:19.065 * Saving the final RDB snapshot before exiting.
langgraph-redis-1     | 1:M 08 Nov 2025 00:46:19.071 * DB saved on disk
langgraph-redis-1     | 1:M 08 Nov 2025 00:46:19.071 # Redis is now ready to exit, bye bye...
langgraph-redis-1 exited with code 0
langgraph-postgres-1 exited with code 0
time="2025-11-07T16:46:01-08:00" level=warning msg="The \"dep\" variable is not set. Defaulting to a blank string."
time="2025-11-07T16:46:01-08:00" level=warning msg="The \"dep\" variable is not set. Defaulting to a blank string."
time="2025-11-07T16:46:01-08:00" level=warning msg="The \"dep\" variable is not set. Defaulting to a blank string."
time="2025-11-07T16:46:01-08:00" level=warning msg="The \"dep\" variable is not set. Defaulting to a blank string."
 new-langgraph-project-langgraph-api  Built
 Container new-langgraph-project-langgraph-api-1  Recreate
 Container new-langgraph-project-langgraph-api-1  Recreated
langgraph-postgres-1  | 2025-11-08 00:46:09.990 UTC [1] LOG:  starting PostgreSQL 16.10 (Debian 16.10-1.pgdg12+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14+deb12u1) 12.2.0, 64-bit
langgraph-postgres-1  | 2025-11-08 00:46:09.990 UTC [1] LOG:  listening on IPv4 address "0.0.0.0", port 5432
langgraph-postgres-1  | 2025-11-08 00:46:09.990 UTC [1] LOG:  listening on IPv6 address "::", port 5432
langgraph-postgres-1  | 2025-11-08 00:46:10.000 UTC [1] LOG:  listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
langgraph-postgres-1  | 2025-11-08 00:46:10.016 UTC [29] LOG:  database system was shut down at 2025-11-08 00:43:43 UTC
langgraph-postgres-1  | 2025-11-08 00:46:10.037 UTC [1] LOG:  database system is ready to accept connections
Aborting on container exit...
 Container new-langgraph-project-langgraph-api-1  Stopping
 Container new-langgraph-project-langgraph-api-1  Stopped
 Container new-langgraph-project-langgraph-postgres-1  Stopping
 Container new-langgraph-project-langgraph-redis-1  Stopping
langgraph-postgres-1  | 2025-11-08 00:46:19.033 UTC [1] LOG:  received fast shutdown request
langgraph-postgres-1  | 2025-11-08 00:46:19.036 UTC [1] LOG:  aborting any active transactions
langgraph-postgres-1  | 2025-11-08 00:46:19.038 UTC [1] LOG:  background worker "logical replication launcher" (PID 32) exited with exit code 1
langgraph-postgres-1  | 2025-11-08 00:46:19.038 UTC [27] LOG:  shutting down
langgraph-postgres-1  | 2025-11-08 00:46:19.044 UTC [27] LOG:  checkpoint starting: shutdown immediate
langgraph-postgres-1  | 2025-11-08 00:46:19.069 UTC [27] LOG:  checkpoint complete: wrote 3 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.007 s, sync=0.003 s, total=0.032 s; sync files=2, longest=0.002 s, average=0.002 s; distance=0 kB, estimate=0 kB; lsn=0/16B38F8, redo lsn=0/16B38F8
langgraph-postgres-1  | 2025-11-08 00:46:19.074 UTC [1] LOG:  database system is shut down
 Container new-langgraph-project-langgraph-redis-1  Stopped
 Container new-langgraph-project-langgraph-postgres-1  Stopped
@sasharosca commented on GitHub (Nov 7, 2025): @eyurtsev for langgraph _**dev**_ yes but isn't langgraph _**up**_ supposed to install dependencies on its own? Are you saying it has a dependency on my current python environment? For the record I tried `pip install -e .` and then `langgraph up` and got the same error. ``` (agent-py3.12) sasha@sasha-MS-7A59:~/drive/code/new-langgraph-project$ pip install -e . Obtaining file:///home/sasha/drive/code/new-langgraph-project Installing build dependencies ... done Checking if build backend supports build_editable ... done Getting requirements to build editable ... done Preparing editable metadata (pyproject.toml) ... done Requirement already satisfied: langgraph>=1.0.0 in ./.venv/lib/python3.12/site-packages (from agent==0.0.1) (1.0.2) Requirement already satisfied: python-dotenv>=1.0.1 in ./.venv/lib/python3.12/site-packages (from agent==0.0.1) (1.2.1) Requirement already satisfied: langchain-google-genai<3.0.0,>=2.1.9 in ./.venv/lib/python3.12/site-packages (from agent==0.0.1) (2.1.12) Requirement already satisfied: langchain-core>=0.3.75 in ./.venv/lib/python3.12/site-packages (from langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (1.0.4) Requirement already satisfied: google-ai-generativelanguage<1,>=0.7 in ./.venv/lib/python3.12/site-packages (from langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (0.9.0) Requirement already satisfied: pydantic<3,>=2 in ./.venv/lib/python3.12/site-packages (from langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (2.12.4) Requirement already satisfied: filetype<2,>=1.2 in ./.venv/lib/python3.12/site-packages (from langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (1.2.0) Requirement already satisfied: google-api-core!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0,>=1.34.1 in ./.venv/lib/python3.12/site-packages (from google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0,>=1.34.1->google-ai-generativelanguage<1,>=0.7->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (2.28.1) Requirement already satisfied: google-auth!=2.24.0,!=2.25.0,<3.0.0,>=2.14.1 in ./.venv/lib/python3.12/site-packages (from google-ai-generativelanguage<1,>=0.7->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (2.43.0) Requirement already satisfied: grpcio<2.0.0,>=1.33.2 in ./.venv/lib/python3.12/site-packages (from google-ai-generativelanguage<1,>=0.7->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (1.76.0) Requirement already satisfied: proto-plus<2.0.0,>=1.22.3 in ./.venv/lib/python3.12/site-packages (from google-ai-generativelanguage<1,>=0.7->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (1.26.1) Requirement already satisfied: protobuf!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<7.0.0,>=3.20.2 in ./.venv/lib/python3.12/site-packages (from google-ai-generativelanguage<1,>=0.7->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (6.33.0) Requirement already satisfied: googleapis-common-protos<2.0.0,>=1.56.2 in ./.venv/lib/python3.12/site-packages (from google-api-core!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0,>=1.34.1->google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0,>=1.34.1->google-ai-generativelanguage<1,>=0.7->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (1.72.0) Requirement already satisfied: requests<3.0.0,>=2.18.0 in ./.venv/lib/python3.12/site-packages (from google-api-core!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0,>=1.34.1->google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0,>=1.34.1->google-ai-generativelanguage<1,>=0.7->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (2.32.5) Requirement already satisfied: grpcio-status<2.0.0,>=1.33.2 in ./.venv/lib/python3.12/site-packages (from google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0,>=1.34.1->google-ai-generativelanguage<1,>=0.7->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (1.76.0) Requirement already satisfied: cachetools<7.0,>=2.0.0 in ./.venv/lib/python3.12/site-packages (from google-auth!=2.24.0,!=2.25.0,<3.0.0,>=2.14.1->google-ai-generativelanguage<1,>=0.7->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (6.2.1) Requirement already satisfied: pyasn1-modules>=0.2.1 in ./.venv/lib/python3.12/site-packages (from google-auth!=2.24.0,!=2.25.0,<3.0.0,>=2.14.1->google-ai-generativelanguage<1,>=0.7->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (0.4.2) Requirement already satisfied: rsa<5,>=3.1.4 in ./.venv/lib/python3.12/site-packages (from google-auth!=2.24.0,!=2.25.0,<3.0.0,>=2.14.1->google-ai-generativelanguage<1,>=0.7->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (4.9.1) Requirement already satisfied: typing-extensions~=4.12 in ./.venv/lib/python3.12/site-packages (from grpcio<2.0.0,>=1.33.2->google-ai-generativelanguage<1,>=0.7->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (4.15.0) Requirement already satisfied: annotated-types>=0.6.0 in ./.venv/lib/python3.12/site-packages (from pydantic<3,>=2->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (0.7.0) Requirement already satisfied: pydantic-core==2.41.5 in ./.venv/lib/python3.12/site-packages (from pydantic<3,>=2->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (2.41.5) Requirement already satisfied: typing-inspection>=0.4.2 in ./.venv/lib/python3.12/site-packages (from pydantic<3,>=2->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (0.4.2) Requirement already satisfied: charset_normalizer<4,>=2 in ./.venv/lib/python3.12/site-packages (from requests<3.0.0,>=2.18.0->google-api-core!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0,>=1.34.1->google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0,>=1.34.1->google-ai-generativelanguage<1,>=0.7->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (3.4.4) Requirement already satisfied: idna<4,>=2.5 in ./.venv/lib/python3.12/site-packages (from requests<3.0.0,>=2.18.0->google-api-core!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0,>=1.34.1->google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0,>=1.34.1->google-ai-generativelanguage<1,>=0.7->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (3.11) Requirement already satisfied: urllib3<3,>=1.21.1 in ./.venv/lib/python3.12/site-packages (from requests<3.0.0,>=2.18.0->google-api-core!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0,>=1.34.1->google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0,>=1.34.1->google-ai-generativelanguage<1,>=0.7->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (2.5.0) Requirement already satisfied: certifi>=2017.4.17 in ./.venv/lib/python3.12/site-packages (from requests<3.0.0,>=2.18.0->google-api-core!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0,>=1.34.1->google-api-core[grpc]!=2.0.*,!=2.1.*,!=2.10.*,!=2.2.*,!=2.3.*,!=2.4.*,!=2.5.*,!=2.6.*,!=2.7.*,!=2.8.*,!=2.9.*,<3.0.0,>=1.34.1->google-ai-generativelanguage<1,>=0.7->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (2025.10.5) Requirement already satisfied: pyasn1>=0.1.3 in ./.venv/lib/python3.12/site-packages (from rsa<5,>=3.1.4->google-auth!=2.24.0,!=2.25.0,<3.0.0,>=2.14.1->google-ai-generativelanguage<1,>=0.7->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (0.6.1) Requirement already satisfied: jsonpatch<2.0.0,>=1.33.0 in ./.venv/lib/python3.12/site-packages (from langchain-core>=0.3.75->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (1.33) Requirement already satisfied: langsmith<1.0.0,>=0.3.45 in ./.venv/lib/python3.12/site-packages (from langchain-core>=0.3.75->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (0.4.41) Requirement already satisfied: packaging<26.0.0,>=23.2.0 in ./.venv/lib/python3.12/site-packages (from langchain-core>=0.3.75->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (25.0) Requirement already satisfied: pyyaml<7.0.0,>=5.3.0 in ./.venv/lib/python3.12/site-packages (from langchain-core>=0.3.75->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (6.0.3) Requirement already satisfied: tenacity!=8.4.0,<10.0.0,>=8.1.0 in ./.venv/lib/python3.12/site-packages (from langchain-core>=0.3.75->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (9.1.2) Requirement already satisfied: jsonpointer>=1.9 in ./.venv/lib/python3.12/site-packages (from jsonpatch<2.0.0,>=1.33.0->langchain-core>=0.3.75->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (3.0.0) Requirement already satisfied: httpx<1,>=0.23.0 in ./.venv/lib/python3.12/site-packages (from langsmith<1.0.0,>=0.3.45->langchain-core>=0.3.75->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (0.28.1) Requirement already satisfied: orjson>=3.9.14 in ./.venv/lib/python3.12/site-packages (from langsmith<1.0.0,>=0.3.45->langchain-core>=0.3.75->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (3.11.4) Requirement already satisfied: requests-toolbelt>=1.0.0 in ./.venv/lib/python3.12/site-packages (from langsmith<1.0.0,>=0.3.45->langchain-core>=0.3.75->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (1.0.0) Requirement already satisfied: zstandard>=0.23.0 in ./.venv/lib/python3.12/site-packages (from langsmith<1.0.0,>=0.3.45->langchain-core>=0.3.75->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (0.25.0) Requirement already satisfied: anyio in ./.venv/lib/python3.12/site-packages (from httpx<1,>=0.23.0->langsmith<1.0.0,>=0.3.45->langchain-core>=0.3.75->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (4.11.0) Requirement already satisfied: httpcore==1.* in ./.venv/lib/python3.12/site-packages (from httpx<1,>=0.23.0->langsmith<1.0.0,>=0.3.45->langchain-core>=0.3.75->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (1.0.9) Requirement already satisfied: h11>=0.16 in ./.venv/lib/python3.12/site-packages (from httpcore==1.*->httpx<1,>=0.23.0->langsmith<1.0.0,>=0.3.45->langchain-core>=0.3.75->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (0.16.0) Requirement already satisfied: langgraph-checkpoint<4.0.0,>=2.1.0 in ./.venv/lib/python3.12/site-packages (from langgraph>=1.0.0->agent==0.0.1) (3.0.1) Requirement already satisfied: langgraph-prebuilt<1.1.0,>=1.0.2 in ./.venv/lib/python3.12/site-packages (from langgraph>=1.0.0->agent==0.0.1) (1.0.2) Requirement already satisfied: langgraph-sdk<0.3.0,>=0.2.2 in ./.venv/lib/python3.12/site-packages (from langgraph>=1.0.0->agent==0.0.1) (0.2.9) Requirement already satisfied: xxhash>=3.5.0 in ./.venv/lib/python3.12/site-packages (from langgraph>=1.0.0->agent==0.0.1) (3.6.0) Requirement already satisfied: ormsgpack>=1.12.0 in ./.venv/lib/python3.12/site-packages (from langgraph-checkpoint<4.0.0,>=2.1.0->langgraph>=1.0.0->agent==0.0.1) (1.12.0) Requirement already satisfied: sniffio>=1.1 in ./.venv/lib/python3.12/site-packages (from anyio->httpx<1,>=0.23.0->langsmith<1.0.0,>=0.3.45->langchain-core>=0.3.75->langchain-google-genai<3.0.0,>=2.1.9->agent==0.0.1) (1.3.1) Building wheels for collected packages: agent Building editable for agent (pyproject.toml) ... done Created wheel for agent: filename=agent-0.0.1-0.editable-py3-none-any.whl size=5141 sha256=9634b853d45b03aa7c0ee17ca1a05b62bdb9e6f948743ad56573348e54723ecb Stored in directory: /tmp/pip-ephem-wheel-cache-t6r8cbta/wheels/5b/16/b9/cd27ec45bbada34b14e482b7f4fcd29bd4a13db5913d2ef763 Successfully built agent Installing collected packages: agent Attempting uninstall: agent Found existing installation: agent 0.0.1 Uninstalling agent-0.0.1: Successfully uninstalled agent-0.0.1 Successfully installed agent-0.0.1 [notice] A new release of pip is available: 25.2 -> 25.3 [notice] To update, run: pip install --upgrade pip (agent-py3.12) sasha@sasha-MS-7A59:~/drive/code/new-langgraph-project$ langgraph up Starting LangGraph API server... For local dev, requires env var LANGSMITH_API_KEY with access to LangSmith Deployment. For production use, requires a license key in env var LANGGRAPH_CLOUD_LICENSE_KEY. - Building...#1 [internal] load local bake definitions #1 reading from stdin 2.25kB done #1 DONE 0.0s #2 [internal] load build definition from Dockerfile #2 transferring dockerfile: 1.65kB done #2 DONE 0.0s #3 [internal] load metadata for docker.io/langchain/langgraph-api:3.11-wolfi #3 DONE 0.0s #4 [internal] load .dockerignore #4 transferring context: 2B done #4 DONE 0.0s #5 [ 1/10] FROM docker.io/langchain/langgraph-api:3.11-wolfi #5 DONE 0.0s #6 [internal] load build context #6 transferring context: 807.69kB 0.2s done #6 DONE 0.2s #5 [ 1/10] FROM docker.io/langchain/langgraph-api:3.11-wolfi #5 CACHED #7 [ 2/10] ADD . /deps/new-langgraph-project #7 DONE 0.9s #8 [ 3/10] RUN for dep in /deps/*; do echo "Installing "; if [ -d "" ]; then echo "Installing "; (cd "" && PYTHONDONTWRITEBYTECODE=1 uv pip install --system --no-cache-dir -c /api/constraints.txt -e .); fi; done #8 0.224 Installing #8 DONE 0.2s #9 [ 4/10] RUN mkdir -p /api/langgraph_api /api/langgraph_runtime /api/langgraph_license && touch /api/langgraph_api/__init__.py /api/langgraph_runtime/__init__.py /api/langgraph_license/__init__.py #9 DONE 0.2s #10 [ 5/10] RUN PYTHONDONTWRITEBYTECODE=1 uv pip install --system --no-cache-dir --no-deps -e /api #10 0.384 Using Python 3.11.13 environment at: /usr #10 1.108 Resolved 1 package in 717ms #10 1.109 Building langgraph-api @ file:///api #10 1.333 Built langgraph-api @ file:///api #10 1.334 Prepared 1 package in 225ms #10 1.359 Uninstalled 1 package in 25ms #10 1.360 Installed 1 package in 1ms #10 1.360 ~ langgraph-api==0.5.8 (from file:///api) #10 DONE 1.4s #11 [ 6/10] RUN pip uninstall -y pip setuptools wheel #11 0.580 Found existing installation: pip 25.2 #11 0.612 Uninstalling pip-25.2: #11 1.494 Successfully uninstalled pip-25.2 #11 1.545 Found existing installation: setuptools 80.9.0.post20250724 #11 1.582 Uninstalling setuptools-80.9.0.post20250724: #11 2.376 Successfully uninstalled setuptools-80.9.0.post20250724 #11 2.447 WARNING: Skipping wheel as it is not installed. #11 DONE 2.5s #12 [ 7/10] RUN rm -rf /usr/local/lib/python*/site-packages/pip* /usr/local/lib/python*/site-packages/setuptools* /usr/local/lib/python*/site-packages/wheel* && find /usr/local/bin -name "pip*" -delete || true #12 0.240 find: /usr/local/bin: No such file or directory #12 DONE 0.3s #13 [ 8/10] RUN rm -rf /usr/lib/python*/site-packages/pip* /usr/lib/python*/site-packages/setuptools* /usr/lib/python*/site-packages/wheel* && find /usr/bin -name "pip*" -delete || true #13 DONE 0.3s #14 [ 9/10] RUN uv pip uninstall --system pip setuptools wheel && rm /usr/bin/uv /usr/bin/uvx #14 0.274 Using Python 3.11.13 environment at: /usr #14 0.283 warning: Skipping pip as it is not installed #14 0.283 warning: Skipping setuptools as it is not installed #14 0.283 warning: Skipping wheel as it is not installed #14 0.283 warning: No packages to uninstall #14 DONE 0.3s #15 [10/10] WORKDIR /deps/new-langgraph-project #15 DONE 0.1s #16 exporting to image #16 exporting layers #16 exporting layers 1.3s done #16 writing image sha256:60fbaf83aa5cdf7413b85871af50e5f17a2d2c9f2f65c994863ea2e13ad0be3b done #16 naming to docker.io/library/new-langgraph-project-langgraph-api done #16 DONE 1.3s #17 resolving provenance for metadata file #17 DONE 0.0s Attaching to langgraph-api-1, langgraph-postgres-1, langgraph-redis-1 langgraph-redis-1 | 1:C 08 Nov 2025 00:46:09.934 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo langgraph-redis-1 | 1:C 08 Nov 2025 00:46:09.934 # Redis version=6.2.20, bits=64, commit=00000000, modified=0, pid=1, just started langgraph-redis-1 | 1:C 08 Nov 2025 00:46:09.934 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf langgraph-redis-1 | 1:M 08 Nov 2025 00:46:09.935 * monotonic clock: POSIX clock_gettime langgraph-redis-1 | 1:M 08 Nov 2025 00:46:09.936 * Running mode=standalone, port=6379. langgraph-redis-1 | 1:M 08 Nov 2025 00:46:09.936 # Server initialized langgraph-redis-1 | 1:M 08 Nov 2025 00:46:09.936 # WARNING Memory overcommit must be enabled! Without it, a background save or replication may fail under low memory condition. Being disabled, it can can also cause failures without low memory condition, see https://github.com/jemalloc/jemalloc/issues/1328. To fix this issue add 'vm.overcommit_memory = 1' to /etc/sysctl.conf and then reboot or run the command 'sysctl vm.overcommit_memory=1' for this to take effect. langgraph-redis-1 | 1:M 08 Nov 2025 00:46:09.936 * Loading RDB produced by version 6.2.20 langgraph-redis-1 | 1:M 08 Nov 2025 00:46:09.936 * RDB age 146 seconds langgraph-redis-1 | 1:M 08 Nov 2025 00:46:09.936 * RDB memory usage when created 0.77 Mb langgraph-redis-1 | 1:M 08 Nov 2025 00:46:09.936 # Done loading RDB, keys loaded: 0, keys expired: 0. langgraph-redis-1 | 1:M 08 Nov 2025 00:46:09.936 * DB loaded from disk: 0.000 seconds langgraph-redis-1 | 1:M 08 Nov 2025 00:46:09.936 * Ready to accept connections langgraph-postgres-1 | langgraph-postgres-1 | PostgreSQL Database directory appears to contain a database; Skipping initialization langgraph-postgres-1 | langgraph-api-1 | 2025-11-08T00:46:18.129214Z [info ] Using langgraph_runtime_postgres [langgraph_runtime] api_revision=fa6ed4f api_variant=licensed langgraph_api_version=0.5.8 thread_name=MainThread langgraph-api-1 | 2025-11-08T00:46:18.143961Z [info ] Using auth of type=noop [langgraph_api.auth.middleware] api_revision=fa6ed4f api_variant=licensed langgraph_api_version=0.5.8 thread_name=MainThread langgraph-api-1 | 2025-11-08T00:46:18.149920Z [info ] Started server process [1] [uvicorn.error] api_revision=fa6ed4f api_variant=licensed color_message='Started server process [\x1b[36m%d\x1b[0m]' langgraph_api_version=0.5.8 thread_name=MainThread langgraph-api-1 | 2025-11-08T00:46:18.150057Z [info ] Waiting for application startup. [uvicorn.error] api_revision=fa6ed4f api_variant=licensed langgraph_api_version=0.5.8 thread_name=MainThread langgraph-api-1 | 2025-11-08T00:46:18.152384Z [info ] Starting Postgres runtime with langgraph-api=0.5.8 [langgraph_runtime_postgres.lifespan] api_revision=fa6ed4f api_variant=licensed langgraph_api_version=0.5.8 thread_name=ThreadPoolExecutor-1_0 version=0.5.8 langgraph-api-1 | 2025-11-08T00:46:18.155722Z [info ] Redis pool stats [langgraph_runtime_postgres.redis] api_revision=fa6ed4f api_variant=licensed idle_connections=1 in_use_connections=0 langgraph_api_version=0.5.8 max_connections=2000 thread_name=ThreadPoolExecutor-1_0 langgraph-api-1 | 2025-11-08T00:46:18.176784Z [info ] Attempting to acquire migration lock [langgraph_runtime_postgres.database] api_revision=fa6ed4f api_variant=licensed langgraph_api_version=0.5.8 thread_name=MainThread langgraph-api-1 | 2025-11-08T00:46:18.177553Z [info ] Migration lock acquired [langgraph_runtime_postgres.database] api_revision=fa6ed4f api_variant=licensed langgraph_api_version=0.5.8 thread_name=ThreadPoolExecutor-1_0 langgraph-api-1 | 2025-11-08T00:46:18.185293Z [info ] No LANGGRAPH_STORE configuration found, using default configuration [langgraph_runtime_postgres.database] api_revision=fa6ed4f api_variant=licensed langgraph_api_version=0.5.8 thread_name=MainThread langgraph-api-1 | 2025-11-08T00:46:18.186095Z [info ] Migration lock released [langgraph_runtime_postgres.database] api_revision=fa6ed4f api_variant=licensed langgraph_api_version=0.5.8 thread_name=ThreadPoolExecutor-1_0 langgraph-api-1 | 2025-11-08T00:46:18.327699Z [info ] Postgres pool stats [langgraph_runtime_postgres.database] api_revision=fa6ed4f api_variant=licensed connections_ms=21 connections_num=1 langgraph_api_version=0.5.8 pool_available=1 pool_max=150 pool_min=1 pool_size=1 requests_num=1 requests_waiting=0 thread_name=MainThread usage_ms=7 langgraph-api-1 | 2025-11-08T00:46:18.328130Z [info ] Starting checkpointer ingestion loop [langgraph_runtime_postgres.checkpoint] api_revision=fa6ed4f api_variant=licensed langgraph_api_version=0.5.8 thread_name=ThreadPoolExecutor-1_0 langgraph-api-1 | 2025-11-08T00:46:18.479124Z [info ] HTTP Request: GET https://api.smith.langchain.com/auth?langgraph-api=true "HTTP/1.1 200 OK" [httpx] api_revision=fa6ed4f api_variant=licensed langgraph_api_version=0.5.8 thread_name=MainThread langgraph-api-1 | 2025-11-08T00:46:18.484932Z [warning ] No enterprise license key found, running in lite mode with LangSmith API key. For production use, set LANGGRAPH_CLOUD_LICENSE_KEY in environment. [langgraph_license.validation] api_revision=fa6ed4f api_variant=licensed langgraph_api_version=0.5.8 thread_name=MainThread langgraph-api-1 | 2025-11-08T00:46:18.528009Z [info ] Starting metadata loop [langgraph_api.metadata] api_revision=fa6ed4f api_variant=licensed langgraph_api_version=0.5.8 thread_name=MainThread langgraph-api-1 | 2025-11-08T00:46:18.528768Z [info ] Getting auth instance: None [langgraph_api.auth.custom] api_revision=fa6ed4f api_variant=licensed langgraph_api_version=0.5.8 langgraph_auth=None thread_name=MainThread langgraph-api-1 | 2025-11-08T00:46:18.532477Z [info ] Starting store TTL sweeper with interval 5.0 minutes [langgraph.store.postgres.aio] api_revision=fa6ed4f api_variant=licensed langgraph_api_version=0.5.8 thread_name=MainThread langgraph-api-1 | 2025-11-08T00:46:18.533961Z [info ] Starting thread TTL sweeper with interval 5 minutes [langgraph_api.thread_ttl] api_revision=fa6ed4f api_variant=licensed interval_minutes=5 langgraph_api_version=0.5.8 strategy=delete thread_name=ThreadPoolExecutor-1_0 langgraph-api-1 | 2025-11-08T00:46:18.536211Z [info ] Starting long query monitor with 5min threshold, scanning every 600s [langgraph_runtime_postgres.long_query_monitor] api_revision=fa6ed4f api_variant=licensed langgraph_api_version=0.5.8 scan_interval_seconds=600 thread_name=ThreadPoolExecutor-1_0 threshold_minutes=5 langgraph-api-1 | 2025-11-08T00:46:18.563991Z [error ] Graph 'agent' failed to load: ModuleNotFoundError: No module named 'langchain_google_genai' [langgraph_runtime_postgres.lifespan] action=fix_user_graph api_revision=fa6ed4f api_variant=licensed error_boundary=user_graph error_message="ModuleNotFoundError: No module named 'langchain_google_genai'" error_type=ModuleNotFoundError graph_id=agent hint='Check that your project dependencies are installed and imports are correct.' langgraph_api_version=0.5.8 location=/deps/new-langgraph-project/src/agent/graph.py notes="Could not import python module for graph:\nGraphSpec(id='agent', path='/deps/new-langgraph-project/src/agent/graph.py', module=None, variable='graph', config={}, description=None)" summary="ModuleNotFoundError: ModuleNotFoundError: No module named 'langchain_google_genai'" thread_name=ThreadPoolExecutor-1_0 user_traceback='Traceback (most recent call last):\n File "/api/langgraph_api/graph.py", line 420, in collect_graphs_from_env\n File "/api/langgraph_api/utils/config.py", line 144, in run_in_executor\n File "/usr/lib/python3.11/concurrent/futures/thread.py", line 58, in run\n result = self.fn(*self.args, **self.kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File "/api/langgraph_api/utils/config.py", line 135, in wrapper\n File "/api/langgraph_api/graph.py", line 469, in _graph_from_spec\n File "<frozen importlib._bootstrap_external>", line 940, in exec_module\n File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed\n File "/deps/new-langgraph-project/src/agent/graph.py", line 14, in <module>\n from langchain_google_genai import ChatGoogleGenerativeAI\nModuleNotFoundError: No module named \'langchain_google_genai\'\nCould not import python module for graph:\nGraphSpec(id=\'agent\', path=\'/deps/new-langgraph-project/src/agent/graph.py\', module=None, variable=\'graph\', config={}, description=None)\n' langgraph-api-1 | 2025-11-08T00:46:18.567368Z [info ] Shutting down remote graphs [langgraph_api.graph] api_revision=fa6ed4f api_variant=licensed langgraph_api_version=0.5.8 thread_name=MainThread langgraph-api-1 | 2025-11-08T00:46:18.568790Z [info ] Checkpointer ingestion task cancelled. Draining queue. [langgraph_runtime_postgres.checkpoint] api_revision=fa6ed4f api_variant=licensed langgraph_api_version=0.5.8 thread_name=ThreadPoolExecutor-1_0 langgraph-api-1 | 2025-11-08T00:46:18.583400Z [error ] Traceback (most recent call last): langgraph-api-1 | File "/api/langgraph_api/graph.py", line 420, in collect_graphs_from_env langgraph-api-1 | File "/api/langgraph_api/utils/config.py", line 144, in run_in_executor langgraph-api-1 | File "/usr/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 "/api/langgraph_api/utils/config.py", line 135, in wrapper langgraph-api-1 | File "/api/langgraph_api/graph.py", line 469, in _graph_from_spec langgraph-api-1 | File "<frozen importlib._bootstrap_external>", line 940, in exec_module langgraph-api-1 | File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed langgraph-api-1 | File "/deps/new-langgraph-project/src/agent/graph.py", line 14, in <module> langgraph-api-1 | from langchain_google_genai import ChatGoogleGenerativeAI langgraph-api-1 | ModuleNotFoundError: No module named 'langchain_google_genai' langgraph-api-1 | Could not import python module for graph: langgraph-api-1 | GraphSpec(id='agent', path='/deps/new-langgraph-project/src/agent/graph.py', module=None, variable='graph', config={}, description=None) langgraph-api-1 | langgraph-api-1 | The above exception was the direct cause of the following exception: langgraph-api-1 | langgraph-api-1 | Traceback (most recent call last): langgraph-api-1 | File "/usr/lib/python3.11/site-packages/starlette/routing.py", line 694, in lifespan langgraph-api-1 | async with self.lifespan_context(app) as maybe_state: langgraph-api-1 | File "/usr/lib/python3.11/contextlib.py", line 210, in __aenter__ langgraph-api-1 | return await anext(self.gen) langgraph-api-1 | ^^^^^^^^^^^^^^^^^^^^^ langgraph-api-1 | File "/usr/lib/python3.11/site-packages/langgraph_runtime_postgres/lifespan.py", line 148, in lifespan langgraph-api-1 | await graph.collect_graphs_from_env(True) langgraph-api-1 | File "/api/langgraph_api/graph.py", line 422, in collect_graphs_from_env langgraph-api-1 | langgraph_api.utils.errors.GraphLoadError: Failed to load graph 'agent' from /deps/new-langgraph-project/src/agent/graph.py: No module named 'langchain_google_genai' langgraph-api-1 | [uvicorn.error] api_revision=fa6ed4f api_variant=licensed langgraph_api_version=0.5.8 thread_name=MainThread langgraph-api-1 | 2025-11-08T00:46:18.584104Z [error ] Application startup failed. Exiting. [uvicorn.error] api_revision=fa6ed4f api_variant=licensed langgraph_api_version=0.5.8 thread_name=MainThread langgraph-api-1 exited with code 3 langgraph-redis-1 | 1:signal-handler (1762562779) Received SIGTERM scheduling shutdown... langgraph-redis-1 | 1:M 08 Nov 2025 00:46:19.065 # User requested shutdown... langgraph-redis-1 | 1:M 08 Nov 2025 00:46:19.065 * Saving the final RDB snapshot before exiting. langgraph-redis-1 | 1:M 08 Nov 2025 00:46:19.071 * DB saved on disk langgraph-redis-1 | 1:M 08 Nov 2025 00:46:19.071 # Redis is now ready to exit, bye bye... langgraph-redis-1 exited with code 0 langgraph-postgres-1 exited with code 0 time="2025-11-07T16:46:01-08:00" level=warning msg="The \"dep\" variable is not set. Defaulting to a blank string." time="2025-11-07T16:46:01-08:00" level=warning msg="The \"dep\" variable is not set. Defaulting to a blank string." time="2025-11-07T16:46:01-08:00" level=warning msg="The \"dep\" variable is not set. Defaulting to a blank string." time="2025-11-07T16:46:01-08:00" level=warning msg="The \"dep\" variable is not set. Defaulting to a blank string." new-langgraph-project-langgraph-api Built Container new-langgraph-project-langgraph-api-1 Recreate Container new-langgraph-project-langgraph-api-1 Recreated langgraph-postgres-1 | 2025-11-08 00:46:09.990 UTC [1] LOG: starting PostgreSQL 16.10 (Debian 16.10-1.pgdg12+1) on x86_64-pc-linux-gnu, compiled by gcc (Debian 12.2.0-14+deb12u1) 12.2.0, 64-bit langgraph-postgres-1 | 2025-11-08 00:46:09.990 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 5432 langgraph-postgres-1 | 2025-11-08 00:46:09.990 UTC [1] LOG: listening on IPv6 address "::", port 5432 langgraph-postgres-1 | 2025-11-08 00:46:10.000 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432" langgraph-postgres-1 | 2025-11-08 00:46:10.016 UTC [29] LOG: database system was shut down at 2025-11-08 00:43:43 UTC langgraph-postgres-1 | 2025-11-08 00:46:10.037 UTC [1] LOG: database system is ready to accept connections Aborting on container exit... Container new-langgraph-project-langgraph-api-1 Stopping Container new-langgraph-project-langgraph-api-1 Stopped Container new-langgraph-project-langgraph-postgres-1 Stopping Container new-langgraph-project-langgraph-redis-1 Stopping langgraph-postgres-1 | 2025-11-08 00:46:19.033 UTC [1] LOG: received fast shutdown request langgraph-postgres-1 | 2025-11-08 00:46:19.036 UTC [1] LOG: aborting any active transactions langgraph-postgres-1 | 2025-11-08 00:46:19.038 UTC [1] LOG: background worker "logical replication launcher" (PID 32) exited with exit code 1 langgraph-postgres-1 | 2025-11-08 00:46:19.038 UTC [27] LOG: shutting down langgraph-postgres-1 | 2025-11-08 00:46:19.044 UTC [27] LOG: checkpoint starting: shutdown immediate langgraph-postgres-1 | 2025-11-08 00:46:19.069 UTC [27] LOG: checkpoint complete: wrote 3 buffers (0.0%); 0 WAL file(s) added, 0 removed, 0 recycled; write=0.007 s, sync=0.003 s, total=0.032 s; sync files=2, longest=0.002 s, average=0.002 s; distance=0 kB, estimate=0 kB; lsn=0/16B38F8, redo lsn=0/16B38F8 langgraph-postgres-1 | 2025-11-08 00:46:19.074 UTC [1] LOG: database system is shut down Container new-langgraph-project-langgraph-redis-1 Stopped Container new-langgraph-project-langgraph-postgres-1 Stopped ```
Author
Owner

@sasharosca commented on GitHub (Nov 11, 2025):

@eyurtsev please either respond or reopen the issue.

@sasharosca commented on GitHub (Nov 11, 2025): @eyurtsev please either respond or reopen the issue.
Author
Owner

@LittleModesty commented on GitHub (Nov 17, 2025):

I have solve this problem with the help of codex:


Root Cause Analysis

  • When running langgraph dev / langgraph up / langgraph build, the CLI (in langgraph_cli/config.py around line 945) generates the following Dockerfile snippet:

    RUN for dep in /deps/*; do \
        echo "Installing $dep"; \
        if [ -d "$dep" ]; then \
          (cd "$dep" && PYTHONDONTWRITEBYTECODE=1 uv pip install … -e .); \
        fi; \
    done
    

    The intention here is to use the shell loop variable dep to run pip install -e . on every local dependency in /deps.

  • The problem is: During Dockerfile parsing, all occurrences of $var are substituted by Docker (via ARG/ENV values; if undefined, replaced with an empty string). Because the Dockerfile did not define a build-time variable named dep, Docker replaced $dep with an empty string before handing the command to /bin/sh. As a result at runtime, the instructions become something like:

    echo "Installing "
    if [ -d "" ]
    (cd "" && …)
    

    The loop body never sees a valid directory path and so pip install never executes — in effect “no packages get installed”.

  • This is not an issue with your project per se, but a bug in the current version (v0.4.7) of the langgraph-cli. The CLI-generated Dockerfile fails to escape the shell variable properly: it uses $dep, but it should use $$dep so that Docker does not substitute it at parse time, and the shell inside the container still sees the variable dep.

Temporary Workarounds

  • After running source .venv/bin/activate && langgraph dockerfile dockerfile.generated to generate the Dockerfile, manually edit it: change "$dep" to "$\$dep" (i.e., "$${dep}") in both the echo and cd occurrences. Then build the image using this edited Dockerfile.
  • Alternatively, edit the file .venv/lib/python3.12/site-packages/langgraph_cli/config.py at the corresponding lines to replace all $dep with $$dep, then rerun the CLI command.
  • Await the upstream fix: once langgraph-cli corrects the variable escaping (i.e., uses $$dep when generating the Dockerfile), you can simply upgrade the CLI version and return to the normal workflow.
@LittleModesty commented on GitHub (Nov 17, 2025): I have solve this problem with the help of codex: --- **Root Cause Analysis** * When running `langgraph dev` / `langgraph up` / `langgraph build`, the CLI (in `langgraph_cli/config.py` around line 945) generates the following Dockerfile snippet: ``` RUN for dep in /deps/*; do \ echo "Installing $dep"; \ if [ -d "$dep" ]; then \ (cd "$dep" && PYTHONDONTWRITEBYTECODE=1 uv pip install … -e .); \ fi; \ done ``` The intention here is to use the shell loop variable `dep` to run `pip install -e .` on every local dependency in `/deps`. * The problem is: During Dockerfile *parsing*, all occurrences of `$var` are substituted by Docker (via `ARG`/`ENV` values; if undefined, replaced with an empty string). Because the Dockerfile did **not** define a build-time variable named `dep`, Docker replaced `$dep` with an empty string *before* handing the command to `/bin/sh`. As a result at runtime, the instructions become something like: ``` echo "Installing " if [ -d "" ] (cd "" && …) ``` The loop body never sees a valid directory path and so `pip install` never executes — in effect “no packages get installed”. * This is *not* an issue with your project per se, but a bug in the current version (v0.4.7) of the `langgraph-cli`. The CLI-generated Dockerfile fails to escape the shell variable properly: it uses `$dep`, but it should use `$$dep` so that Docker does *not* substitute it at parse time, and the shell inside the container still sees the variable `dep`. **Temporary Workarounds** * After running `source .venv/bin/activate && langgraph dockerfile dockerfile.generated` to generate the Dockerfile, manually edit it: change `"$dep"` to `"$\$dep"` (i.e., `"$${dep}"`) in both the `echo` and `cd` occurrences. Then build the image using this edited Dockerfile. * Alternatively, edit the file `.venv/lib/python3.12/site-packages/langgraph_cli/config.py` at the corresponding lines to replace all `$dep` with `$$dep`, then rerun the CLI command. * Await the upstream fix: once `langgraph-cli` corrects the variable escaping (i.e., uses `$$dep` when generating the Dockerfile), you can simply upgrade the CLI version and return to the normal workflow.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#1021