ModuleNotFoundError: No module named 'jsonschema.compat'
MasterGeorges67 opened this issue · 3 comments
MasterGeorges67 commented
I use pybit for accessing bybit.
Versions before 1.3 I never saw problems like this.
(env) PS E:\programming\Project\TradeBot> python .\TradingBot.py
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
File "E:\programming\Project\TradeBot\env\lib\site-packages\bravado_core\marshal.py", line 11, in
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'
I am sure there was something missing, Any help or ideas?
Regards,
MasterGeorges67 commented
I identified the problem, it is in the version 4.0.1 of the jsonschema. Revert to version 3.1.1 was solving the problem!
MasterGeorges67 commented
From the developer of the jsonschema:
Hi there. This is a downstream bug you should file on swagger-spec-validator, unless you see it filed already.
More context in #843.
I think it is something wrong in the version 1.3
Regards,
dextertd commented
pybit does not use swagger, I think you meant to file this bug in https://github.com/bybit-exchange/api-connectors/issues