Skip to content

fix(deps): pin solana<0.40 — 0.40.0 breaks x402 SVM imports#18

Merged
VickyXAI merged 1 commit into
mainfrom
fix/pin-solana-lt-0.40
Jul 4, 2026
Merged

fix(deps): pin solana<0.40 — 0.40.0 breaks x402 SVM imports#18
VickyXAI merged 1 commit into
mainfrom
fix/pin-solana-lt-0.40

Conversation

@VickyXAI

@VickyXAI VickyXAI commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

What

Main CI went red on the #16/#17 merges, but the break is environmental, not those PRs: solana 0.40.0 (released 2026-06-27) removed solana.rpc.api, which x402's SVM signer imports. x402's svm extra has no upper bound, so every fresh install (CI, and any new pip install blockrun-llm[solana] user) now gets _HAS_X402 = FalseSolanaLLMClient raises ImportError at instantiation and the unit tests that monkeypatch register_exact_svm_client fail.

Fix

Pin solana>=0.36,<0.40 in the solana extra. Lift when x402 supports the new solana layout.

Validation

Clean venv with x402[svm]==2.14.0:

  • solana 0.40.0 → ModuleNotFoundError: No module named 'solana.rpc.api' (chained under x402's ImportError)
  • solana 0.39.0 → all x402 SVM imports OK

Timeline check: main was green at 30521bd (Jun 26); solana 0.40.0 shipped Jun 27; both Jul 4 merge commits failed on identical Solana-init tests including #17 which only touched cache.py.

@VickyXAI VickyXAI merged commit 67a9c08 into main Jul 4, 2026
3 checks passed
@VickyXAI VickyXAI deleted the fix/pin-solana-lt-0.40 branch July 4, 2026 02:24
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