You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python venv's with older versions jsonschema will cause the following error
Traceback (most recent call last):
File "/home/sam/repos/venv/3py/bin/oasislmf", line 8, in <module>
sys.exit(main())
^^^^^^
File "/home/sam/repos/venv/3py/lib/python3.11/site-packages/oasislmf/cli/root.py", line 54, in main
sys.exit(RootCmd().run())
^^^^^^^^^^^^^^^
File "/home/sam/repos/venv/3py/lib/python3.11/site-packages/oasislmf/cli/root.py", line 42, in run
return super(OasisBaseCommand, self).run(args=args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sam/repos/venv/3py/lib/python3.11/site-packages/argparsetree/cmd.py", line 159, in run
return cmd_cls(sub_command_name).run(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sam/repos/venv/3py/lib/python3.11/site-packages/argparsetree/cmd.py", line 159, in run
return cmd_cls(sub_command_name).run(args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sam/repos/venv/3py/lib/python3.11/site-packages/argparsetree/cmd.py", line 161, in run
return self.action(args) or 0
^^^^^^^^^^^^^^^^^
File "/home/sam/repos/venv/3py/lib/python3.11/site-packages/oasislmf/cli/command.py", line 164, in action
_kwargs = self.get_arguments(args, manager_method)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sam/repos/venv/3py/lib/python3.11/site-packages/oasislmf/cli/command.py", line 150, in get_arguments
new_settings = settings_info['loader'](setting_fp)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sam/repos/venv/3py/lib/python3.11/site-packages/ods_tools/oed/settings.py", line 388, in load
self.validate(settings_data, raise_error=raise_error)
File "/home/sam/repos/venv/3py/lib/python3.11/site-packages/ods_tools/oed/settings.py", line 419, in validate
for err in jsonschema.Draft202012Validator(schema_info['schema']).iter_errors(json_sub_part):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'js
Python venv's with older versions
jsonschema
will cause the following errorWorking version
Broken version
Context
Stephane: It needs something that support
"unevaluatedProperties":false
we use to have something like this Draft3ValidatorSee:
https://python-jsonschema.readthedocs.io/en/latest/api/jsonschema/protocols/#jsonschema.protocols.Validator
https://github.com/OasisLMF/ODS_Tools/blob/39f4ee6ca807aa1c642060919a89b07cb367ac00/ods_tools/oed/setting_schema.py#L200#
The text was updated successfully, but these errors were encountered: