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

ModuleNotFoundError: No module named 'jsonschema.compat' #851

Closed
MasterGeorges67 opened this issue Oct 3, 2021 · 2 comments
Closed

ModuleNotFoundError: No module named 'jsonschema.compat' #851

MasterGeorges67 opened this issue Oct 3, 2021 · 2 comments

Comments

@MasterGeorges67
Copy link

I using the pybit project, which is using also the jsonschema.
Since updating to version 4.0.1 I get the following error:

Traceback (most recent call last):
File "E:\programming\Project\TradeBot\TradingBot.py", line 12, in
from bybit import HTTP
File "E:\programming\Project\TradeBot\env\lib\site-packages\bybit_init_.py", line 3, in
from bravado.client import SwaggerClient
File "E:\programming\Project\TradeBot\env\lib\site-packages\bravado\client.py", line 51, in
from bravado_core.param import marshal_param
File "E:\programming\Project\TradeBot\env\lib\site-packages\bravado_core\param.py", line 13, in
from bravado_core.marshal import marshal_schema_object
from bravado_core.model import Model
File "E:\programming\Project\TradeBot\env\lib\site-packages\bravado_core\model.py", line 13, in
from swagger_spec_validator.ref_validators import attach_scope
File "E:\programming\Project\TradeBot\env\lib\site-packages\swagger_spec_validator_init_.py", line 8, in
from swagger_spec_validator.util import validate_spec_url
File "E:\programming\Project\TradeBot\env\lib\site-packages\swagger_spec_validator\util.py", line 9, in
from swagger_spec_validator import validator12
File "E:\programming\Project\TradeBot\env\lib\site-packages\swagger_spec_validator\validator12.py", line 29, in
from swagger_spec_validator.ref_validators import default_handlers
File "E:\programming\Project\TradeBot\env\lib\site-packages\swagger_spec_validator\ref_validators.py", line 14, in
from jsonschema.compat import iteritems
ModuleNotFoundError: No module named 'jsonschema.compat'

Any help or ideas?
Regards,

@Julian
Copy link
Member

Julian commented Oct 3, 2021

Hi there. This is a downstream bug you should file on swagger-spec-validator, unless you see it filed already.

More context in #843.

@Julian Julian closed this as completed Oct 3, 2021
@MasterGeorges67
Copy link
Author

Thanks for the reply, but I using bybit and if I go back to the version 3.1.1 of jsonschema, all is running correct.
I give back your replay to the bybit developer.
Regards,

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

2 participants