langgraph-cli[inmem] dependencies with langgraph-api is outdated #1037

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

Originally created by @soufiene-slimi on GitHub (Nov 1, 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

After forcing the use of **langgraph-api:v0.5.0** as recommended in the langgraph studio, I was not able to install the latest version of **langgraph-cli[inmem]** (v0.4.5).

Error Message and Stack Trace (if applicable)

uv add langgraph-api -U


uv add 'langgraph-cli[inmem]>=0.4.5' -U

  × No solution found when resolving dependencies:
  ╰─▶ Because only langgraph-cli[inmem]<=0.4.5 is available and langgraph-cli[inmem]==0.4.5 depends
      on langgraph-api>=0.3,<0.5.0, we can conclude that langgraph-cli[inmem]>=0.4.5 depends on
      langgraph-api>=0.3,<0.5.0.
      And because your project depends on langgraph-api>=0.5.0 and langgraph-cli[inmem]>=0.4.5, we can conclude
      that your project's requirements are unsatisfiable.
  help: If you want to add the package regardless of the failed resolution, provide the `--frozen` flag to skip
        locking and syncing.

Description

uv add langgraph-api -U


uv add 'langgraph-cli[inmem]>=0.4.5' -U

  × No solution found when resolving dependencies:
  ╰─▶ Because only langgraph-cli[inmem]<=0.4.5 is available and langgraph-cli[inmem]==0.4.5 depends
      on langgraph-api>=0.3,<0.5.0, we can conclude that langgraph-cli[inmem]>=0.4.5 depends on
      langgraph-api>=0.3,<0.5.0.
      And because your project depends on langgraph-api>=0.5.0 and langgraph-cli[inmem]>=0.4.5, we can conclude
      that your project's requirements are unsatisfiable.
  help: If you want to add the package regardless of the failed resolution, provide the `--frozen` flag to skip
        locking and syncing.

System Info

uv tree | grep langgraph-api -B3 -A3
Resolved 81 packages in 20ms
│       ├── regex v2025.10.23
│       └── requests v2.32.5 (*)
├── langgraph v1.0.2 (*)
├── langgraph-api v0.5.0
│   ├── cloudpickle v3.1.1
│   ├── cryptography v44.0.3
│   │   └── cffi v2.0.0
--
└── langgraph-cli[inmem] v0.3.3
    ├── click v8.3.0
    ├── langgraph-sdk v0.2.9 (*)
    ├── langgraph-api v0.5.0 (extra: inmem) (*)
    ├── langgraph-runtime-inmem v0.15.0 (extra: inmem) (*)
    └── python-dotenv v1.2.1 (extra: inmem)
(*) Package tree already displayed
Originally created by @soufiene-slimi on GitHub (Nov 1, 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 After forcing the use of **langgraph-api:v0.5.0** as recommended in the langgraph studio, I was not able to install the latest version of **langgraph-cli[inmem]** (v0.4.5). ``` ### Error Message and Stack Trace (if applicable) ```shell uv add langgraph-api -U uv add 'langgraph-cli[inmem]>=0.4.5' -U × No solution found when resolving dependencies: ╰─▶ Because only langgraph-cli[inmem]<=0.4.5 is available and langgraph-cli[inmem]==0.4.5 depends on langgraph-api>=0.3,<0.5.0, we can conclude that langgraph-cli[inmem]>=0.4.5 depends on langgraph-api>=0.3,<0.5.0. And because your project depends on langgraph-api>=0.5.0 and langgraph-cli[inmem]>=0.4.5, we can conclude that your project's requirements are unsatisfiable. help: If you want to add the package regardless of the failed resolution, provide the `--frozen` flag to skip locking and syncing. ``` ### Description ```bash uv add langgraph-api -U uv add 'langgraph-cli[inmem]>=0.4.5' -U × No solution found when resolving dependencies: ╰─▶ Because only langgraph-cli[inmem]<=0.4.5 is available and langgraph-cli[inmem]==0.4.5 depends on langgraph-api>=0.3,<0.5.0, we can conclude that langgraph-cli[inmem]>=0.4.5 depends on langgraph-api>=0.3,<0.5.0. And because your project depends on langgraph-api>=0.5.0 and langgraph-cli[inmem]>=0.4.5, we can conclude that your project's requirements are unsatisfiable. help: If you want to add the package regardless of the failed resolution, provide the `--frozen` flag to skip locking and syncing. ``` ### System Info ```bash uv tree | grep langgraph-api -B3 -A3 Resolved 81 packages in 20ms │ ├── regex v2025.10.23 │ └── requests v2.32.5 (*) ├── langgraph v1.0.2 (*) ├── langgraph-api v0.5.0 │ ├── cloudpickle v3.1.1 │ ├── cryptography v44.0.3 │ │ └── cffi v2.0.0 -- └── langgraph-cli[inmem] v0.3.3 ├── click v8.3.0 ├── langgraph-sdk v0.2.9 (*) ├── langgraph-api v0.5.0 (extra: inmem) (*) ├── langgraph-runtime-inmem v0.15.0 (extra: inmem) (*) └── python-dotenv v1.2.1 (extra: inmem) (*) Package tree already displayed ```
yindo added the bugpending labels 2026-02-20 17:42:50 -05:00
yindo closed this issue 2026-02-20 17:42:50 -05:00
Author
Owner

@zhangzhefang-github commented on GitHub (Nov 2, 2025):

I’d like to take this issue and try to fix/test it.

@zhangzhefang-github commented on GitHub (Nov 2, 2025): I’d like to take this issue and try to fix/test it.
Author
Owner

@ShariqAli-Dev commented on GitHub (Nov 2, 2025):

bumping the issue, i'm experiencing the same thing.

@ShariqAli-Dev commented on GitHub (Nov 2, 2025): bumping the issue, i'm experiencing the same thing.
Author
Owner

@zhangzhefang-github commented on GitHub (Nov 2, 2025):

Hey @soufiene-slimi @ShariqAli-Dev 👋

Thanks for flagging this! You’re right — the issue happens because
langgraph-cli[inmem] v0.4.5 still pins langgraph-api to <0.5.0, so it conflicts with the new langgraph-api v0.5.x.

I’ve opened PR #6382 to update the dependency range (>=0.3,<0.6.0) so the CLI works fine with the latest API.

The PR hasn’t been merged yet, but you can test the fix right now by installing from my branch:

uv pip install "git+https://github.com/zhangzhefang-github/langgraph.git@feat/update-cli-api-compat"

That should install cleanly with langgraph-api v0.5.0.
Once the PR is merged, it’ll be included in the next release.

Thanks again for confirming you’re seeing the same thing — this fix should cover your case too 👍

@zhangzhefang-github commented on GitHub (Nov 2, 2025): **Hey @soufiene-slimi @ShariqAli-Dev** 👋 Thanks for flagging this! You’re right — the issue happens because langgraph-cli[inmem] `v0.4.5 `still pins langgraph-api to `<0.5.0`, so it conflicts with the new langgraph-api v0.5.x. I’ve opened [PR #6382](https://github.com/langchain-ai/langgraph/pull/6382) to update the dependency range (>=0.3,<0.6.0) so the CLI works fine with the latest API. **_The PR hasn’t been merged yet, but you can test the fix right now by installing from my branch:_** `uv pip install "git+https://github.com/zhangzhefang-github/langgraph.git@feat/update-cli-api-compat"` That should install cleanly with langgraph-api v0.5.0. Once the PR is merged, it’ll be included in the next release. Thanks again for confirming you’re seeing the same thing — this fix should cover your case too 👍
Author
Owner

@roryeckel commented on GitHub (Nov 3, 2025):

Much appreciated on the above fix, I'm experiencing this issue too

@roryeckel commented on GitHub (Nov 3, 2025): Much appreciated on the above fix, I'm experiencing this issue too
Author
Owner

@hinthornw commented on GitHub (Nov 3, 2025):

Thank you for flagging! Our apologies here. Bounds should be updated in 0.4.7 release

@hinthornw commented on GitHub (Nov 3, 2025): Thank you for flagging! Our apologies here. Bounds should be updated in `0.4.7` [release](https://github.com/langchain-ai/langgraph/releases/tag/cli%3D%3D0.4.7)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langchain-ai/langgraph#1037