Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't run with new openapi-spec-validator==0.5.0 #173

Closed
Wim-De-Clercq opened this issue Sep 5, 2022 · 5 comments
Closed

Can't run with new openapi-spec-validator==0.5.0 #173

Wim-De-Clercq opened this issue Sep 5, 2022 · 5 comments

Comments

@Wim-De-Clercq
Copy link
Contributor

Wim-De-Clercq commented Sep 5, 2022

dependency tree on a clean install:

pyramid-openapi3==0.14
  - openapi-core [required: >=0.13.4,<0.14, installed: 0.13.8]
    - openapi-spec-validator [required: Any, installed: 0.5.0]
  - openapi-spec-validator [required: Any, installed: 0.5.0]

The error is actually within openapi-core

    from openapi_core.unmarshalling.schemas.formatters import Formatter
../.venv/lib/python3.8/site-packages/openapi_core/__init__.py:3: in <module>
    from openapi_core.shortcuts import (
../.venv/lib/python3.8/site-packages/openapi_core/shortcuts.py:3: in <module>
    from openapi_core.schema.shortcuts import create_spec
../.venv/lib/python3.8/site-packages/openapi_core/schema/shortcuts.py:3: in <module>
    from openapi_spec_validator import (
E   ImportError: cannot import name 'default_handlers' from 'openapi_spec_validator' (/.venv/lib/python3.8/site-packages/openapi_spec_validator/__init__.py)

And this is also fixed in openapi-core 0.14.5
But pyramid_openapi3 can't work with >= 0.14.0, so you are left with an incompatible library tree on installation.

The only workaround right now is to pin openapi-spec-validator==0.4.0 when installing pyramid_openapi3.

@zupo
Copy link
Collaborator

zupo commented Sep 5, 2022

I can take a look next week if noone beats me to it.

@claeyswo
Copy link
Contributor

Is there any update on this?

@zupo
Copy link
Collaborator

zupo commented Oct 11, 2022

No, sorry, haven't had the time to look at it yet, and likely will not be able to until next month. I probably can review PRs though.

@damonhook
Copy link
Collaborator

I can try take a look at it sometime this week.

@zupo
Copy link
Collaborator

zupo commented Dec 11, 2022

New release with support for openapi-spec-validator version 0.5.0 has just been uploaded to PyPI: https://pypi.org/project/pyramid-openapi3/0.15.0/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants