[Bug]: cannot import name 'Spec' from 'openapi_core' version 0.23.1
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 68/100
Research direction
Reproduce the failure with pip install openapi-core and from openapi_core import Spec using version 0.23.1. Inspect the openapi_core/__init__.py export shown in the traceback and related package tests or documentation. Done means the reported import works without an ImportError, with the intended public API confirmed.
Written by the indexing model from the issue text.
Description
Actual Behavior
It is impossible to import Spec from openapi_core installed with pip.
Traceback (most recent call last):
<Package that calls Spec>
from openapi_core import Spec
ImportError: cannot import name 'Spec' from 'openapi_core' (/opt/anaconda3/envs/native/lib/python3.13/site-packages/openapi_core/__init__.py)
Expected Behavior
There should be no error.
Steps to Reproduce
pip install openapi-core, then run a python script with from openapi_core import Spec.
OpenAPI Core Version
0.23.1
OpenAPI Core Integration
Don't know
Affected Area(s)
importing in another program
References
No response
Anything else we need to know?
No response
Would you like to implement a fix?
None
- Dominant language
- Python
- Stars
- 368
- Forks
- 140
- PR merge metrics
- No merged PRs in 30d
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 python-openapi/openapi-core
-
kind/bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
python-openapi/openapi-core#1188 · 2 comments ·
-
kind/bug
Difficulty 3/5 1-2 days Newbie friendliness 76/100
python-openapi/openapi-core#1212 ·
-
[Bug]: Query parameter validation fails to match empty string when listed as a valid enum value Openkind/bug
Difficulty 3/5 1-2 days Newbie friendliness 68/100
python-openapi/openapi-core#1210 ·
-
kind/bug kind/bug/confirmed
Difficulty 3/5 1-2 days Newbie friendliness 58/100
python-openapi/openapi-core#1180 · 3 comments ·
-
kind/enhancement
Difficulty 5/5 Over a week Newbie friendliness 32/100
python-openapi/openapi-core#1142 ·
All issues in python-openapi/openapi-core
Similar issues
-
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
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100