Skip to content

[Bug]: cannot import name 'Spec' from 'openapi_core' version 0.23.1 #1225

Description

@LaundryPizza03

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugIndicates an issue

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions