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

DeprecationWarning: jsonschema.RefResolver is deprecated as of v4.18.0 #1048

Open
rly opened this issue Aug 31, 2024 · 1 comment · May be fixed by #1133
Open

DeprecationWarning: jsonschema.RefResolver is deprecated as of v4.18.0 #1048

rly opened this issue Aug 31, 2024 · 1 comment · May be fixed by #1133
Assignees
Labels

Comments

@rly
Copy link
Contributor

rly commented Aug 31, 2024

Running neuroconv generates a DeprecationWarning:

  /Users/rly/mambaforge/envs/jdb/lib/python3.12/site-packages/neuroconv/tools/yaml_conversion_specification/_yaml_conversion_specification.py:7: DeprecationWarning: 
jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the https://github.com/python-jsonschema/referencing library, 
which provides more compliant referencing behavior as well as more flexible APIs for customization. A future release will remove 
RefResolver. Please file a feature request (on referencing) if you are missing an API for the kind of customization you need.
    from jsonschema import RefResolver, validate

Neuroconv uses jsonschema>=3.2.0: https://github.com/catalystneuro/neuroconv/blob/main/pyproject.toml#L37

Release notes: https://github.com/python-jsonschema/jsonschema/blob/main/CHANGELOG.rst#v4180

@h-mayorquin
Copy link
Collaborator

There is also a yaml one. I will look into it.

@h-mayorquin h-mayorquin self-assigned this Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants