spinframework / spinframework/spin-python-sdk
"Store" is not exported from module "spin_sdk.key_value"
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 48
- Forks
- 15
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 1
Description
Using Spin KV in my Python app, I get the following error from my language server:
from spin_sdk.key_value import Store
Error:
Diagnostics:
"Store" is not exported from module "spin_sdk.key_value"
Import from "spin_sdk.wit.imports.key_value" instead [reportPrivateImportUsage]
The app build successfully however:
Building component my-app with `componentize-py -w spin-http componentize app -o app.wasm`
Component built successfully
Finished building all Spin components
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.
Research direction
Start by inspecting the Python SDK definitions behind spin_sdk.key_value and spin_sdk.wit.imports.key_value, then reproduce the language-server diagnostic for the shown import. Compare that result with the componentize-py build command; done means the supported import is no longer reported as private while the app still builds successfully.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- developer-experience
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100