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

Edit jsonschema version #148

Closed
wants to merge 1 commit into from

Conversation

chenxing1999
Copy link

>>> import swagger_spec_validator
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/xing/Workspace/opensource/swagger_spec_validator/swagger_spec_validator/__init__.py", line 8, in <module>
    from swagger_spec_validator.util import validate_spec_url
  File "/home/xing/Workspace/opensource/swagger_spec_validator/swagger_spec_validator/util.py", line 9, in <module>
    from swagger_spec_validator import validator12
  File "/home/xing/Workspace/opensource/swagger_spec_validator/swagger_spec_validator/validator12.py", line 29, in <module>
    from swagger_spec_validator.ref_validators import default_handlers
  File "/home/xing/Workspace/opensource/swagger_spec_validator/swagger_spec_validator/ref_validators.py", line 14, in <module>
    from jsonschema.compat import iteritems
ModuleNotFoundError: No module named 'jsonschema.compat'

Json schema just release version 4.0 today and cause backward incompatible.

@peterdudfield
Copy link

This looks a better way to do it - #146, then it works for python2

@chenxing1999
Copy link
Author

Yes, agree

@chenxing1999 chenxing1999 deleted the fix_dependency branch October 1, 2021 03:49
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

Successfully merging this pull request may close these issues.

2 participants