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

Using a private API in jsonschema that has now been removed #830

Closed
kemitix opened this issue Oct 1, 2021 · 6 comments
Closed

Using a private API in jsonschema that has now been removed #830

kemitix opened this issue Oct 1, 2021 · 6 comments

Comments

@kemitix
Copy link

kemitix commented Oct 1, 2021

core/jsonutils/renamer.py uses the jsonschema.compat API which is a private API.

The new 4.0.0 and 4.0.1 versions of jsonschema removes that API.

ref: python-jsonschema/jsonschema#843 (comment)

@richardhboyd
Copy link

As a temporary workaround, if anybody encounters this issue, you can 'downgrade' your jsonschema version with

python3 -m pip install -U 'jsonschema<4.0'

@skinny85
Copy link

skinny85 commented Nov 3, 2021

I just ran into this issue (the cfn command fails saying jsonschema.compat has not been found).

I can confirm @richardhboyd's workaround did make the problem go away for me, but this should definitely be fixed upstream.

@priyap286
Copy link
Contributor

@richardhboyd 's PR to fix this is merged, #840. Closing this issue. Thanks Richard!

@priyap286
Copy link
Contributor

The issue was raised with jsonschema, python-jsonschema/jsonschema#843.

@kemitix
Copy link
Author

kemitix commented Nov 10, 2021

Thanks for the stopgap @richardhboyd

@priyap286
Copy link
Contributor

priyap286 commented Nov 10, 2021

v0.2.21 has Richard's changes mentioned above.

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