"Store" is not exported from module "spin_sdk.key_value"
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- python
- Domain
- developer-experience
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.
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
- Dominant language
- Python
- Stars
- 48
- Forks
- 15
- Avg merge
- 2d 23h
- Merged PRs (30d)
- 1
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 spinframework/spin-python-sdk
-
templates: redis Open
Difficulty 3/5 1-2 days Newbie friendliness 55/100
spinframework/spin-python-sdk#143 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
spinframework/spin-python-sdk#135 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
spinframework/spin-python-sdk#131 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 42/100
spinframework/spin-python-sdk#123 · 4 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
spinframework/spin-python-sdk#118 ·
All issues in spinframework/spin-python-sdk
Similar issues
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
simonw/sqlite-utils#872 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100