coinbase-agentkit 0.7.x fails on fresh install: imports solana.rpc.api, which solana>=0.37 removed
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 76/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- python
- Domain
- blockchain
Research direction
Start in pyproject and coinbase_agentkit/wallet_providers/cdp_solana_wallet_provider.py, then reproduce the failure in a fresh Python 3.12 or 3.14 virtual environment with pip install coinbase-agentkit and the reported import command. Resolve the solana dependency incompatibility or migrate the provider as maintainers direct; done means a fresh install imports coinbase_agentkit successfully without a workaround.
Written by the indexing model from the issue text.
Description
Environment: Python 3.12/3.14, fresh venv, pip install coinbase-agentkit (0.7.4)
Repro:
pip install coinbase-agentkit
python -c "import coinbase_agentkit"
Fails immediately:
ModuleNotFoundError: No module named 'solana.rpc.api'
File ".../coinbase_agentkit/wallet_providers/cdp_solana_wallet_provider.py", line 9, in <module>
from solana.rpc.api import Client as SolanaClient
Root cause: coinbase-agentkit declares solana as an unconstrained dependency, so pip resolves the latest (0.40.x) — but solana.rpc.api (the sync client) was removed in solana >= 0.37. Fresh installs are broken out of the box; it only works if a consumer happens to pin solana <= 0.36.
Workarounds (until fixed):
pip install "solana==0.36.1"after installing agentkit (downgrade), or- stub the module at import time when only EVM wallets are used (what I did in a demo):
try:
import solana.rpc.api
except ImportError:
import sys, types
_api = types.ModuleType("solana.rpc.api"); _api.Client = type("Client", (), {})
sys.modules["solana.rpc.api"] = _api
Suggested fix: pin solana>=0.36,<0.37 in pyproject (or migrate the Solana provider to the async client / solana.rpc.async_api).
Happy to open a PR if maintainers point me at the right place. TypeScript SDK is unaffected.
- Dominant language
- TypeScript
- Stars
- 1.3k
- Forks
- 822
- Avg merge
- 13h 31m
- Merged PRs (30d)
- 2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from coinbase/agentkit
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
-
Difficulty 5/5 Over a week Newbie friendliness 15/100
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
All issues in coinbase/agentkit
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
fullcalendar/fullcalendar#8106 ·