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

tapipy can't import with latest version of openapi-spec-validator #48

Open
georgiastuart opened this issue Sep 5, 2022 · 0 comments
Open

Comments

@georgiastuart
Copy link

georgiastuart commented Sep 5, 2022

tapipy appears to have broken with the 0.5.0 release of openapi-spec-validator, which is a valid version from the pip requirements. The resulting error is:

Traceback (most recent call last):
  File "/home/georgia/Projects/research/seismic/exp-repo/.tapis/util/create_credential.py", line 2, in <module>
    from tapipy.tapis import Tapis
  File "/home/georgia/.conda/envs/tapis-env/lib/python3.9/site-packages/tapipy/tapis.py", line 9, in <module>
    from openapi_core import create_spec
  File "/home/georgia/.conda/envs/tapis-env/lib/python3.9/site-packages/openapi_core/__init__.py", line 3, in <module>
    from openapi_core.shortcuts import (
  File "/home/georgia/.conda/envs/tapis-env/lib/python3.9/site-packages/openapi_core/shortcuts.py", line 3, in <module>
    from openapi_spec_validator import default_handlers
ImportError: cannot import name 'default_handlers' from 'openapi_spec_validator' (/home/georgia/.conda/envs/tapis-env/lib/python3.9/site-packages/openapi_spec_validator/__init__.py)

Manually downgrading openapi-spec-validator to 0.4.0 works just fine. This error occurs on the line

from tapipy.tapis import Tapis
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

1 participant