Skip to content

fix(deps): pin FastAPI to 0.139.0 - #1823

Merged
phernandez merged 1 commit into
mainfrom
fix/fastapi-pin-flat-dependant
Oct 23, 2026
Merged

phernandez merged 1 commit into
mainfrom
fix/fastapi-pin-flat-dependant

Conversation

@phernandez

Copy link
Copy Markdown
Member

Fresh installs of v0.24.0 fail on bm status:

Error checking status: cannot import name 'get_flat_dependant' from 'fastapi.dependencies.utils'

src/basic_memory/read_cache/routes.py imports FastAPI's private get_flat_dependant, which FastAPI removed in 0.140.7. Our lock pins 0.139.0, so CI never saw it, but the fastapi[standard]>=0.136.1 floor let new installs resolve 0.140.13 or later. Reported on Discord by lastguru. Reproduced with uvx --from basic-memory==0.24.0 --with fastapi==0.140.13 bm status.

Change

Verified

A fresh isolated install of this branch's wheel resolves fastapi 0.139.0 and imports basic_memory.read_cache.routes and basic_memory.api.app.

Follow-up

The code still uses private FastAPI helpers (get_flat_dependant here; get_dependant and solve_dependencies in mcp/async_client.py). Moving off them should come with a deliberate FastAPI upgrade.

🤖 Generated with Claude Code

https://claude.ai/code/session_018CoZ3jWnMJsyQsik4tPySk

The read cache imports fastapi.dependencies.utils.get_flat_dependant, which
FastAPI removed in 0.140.7. The >=0.136.1 floor let fresh installs resolve
0.140.13+, so bm status failed with "cannot import name 'get_flat_dependant'".
Pin the exact version CI tests. Adds the v0.24.1 changelog entry and applies a
ruff format rewrap left on main by #1790.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018CoZ3jWnMJsyQsik4tPySk
Signed-off-by: phernandez <paul@basicmachines.co>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-23T01:56:51.262732Z 0635243 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@phernandez
phernandez merged commit 3cdfe55 into main Oct 23, 2026
32 checks passed
@phernandez
phernandez deleted the fix/fastapi-pin-flat-dependant branch October 23, 2026 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant