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
There are numerous ``DeprecationWarningwhen running thetools/populate.py` script, which is built on top of `datalad_registry_client`.
❯ python tools/populate.py --start 60 --stop 65
/Users/isaac/.pyenv/versions/3.9.16/envs/datalad-registry/lib/python3.9/site-packages/boto/plugin.py:40: DeprecationWarning: the imp module is deprecated in favour of importlib; see the module's documentation for alternative uses import imp/Users/isaac/.pyenv/versions/3.9.16/envs/datalad-registry/lib/python3.9/site-packages/datalad_catalog/webcatalog.py:5: 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 (/Users/isaac/.pyenv/versions/3.9.16/envs/datalad-registry/lib/python3.9/site-packages/datalad_catalog/validate.py:18: 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 (/Users/isaac/.pyenv/versions/3.9.16/envs/datalad-registry/lib/python3.9/site-packages/datalad/interface/utils.py:223: DeprecationWarning: datalad.interface.utils.eval_results is obsolete. Use datalad.interface.base.eval_results instead warnings.warn("datalad.interface.utils.eval_results is obsolete. "/Users/isaac/.pyenv/versions/3.9.16/envs/datalad-registry/lib/python3.9/site-packages/datalad/interface/utils.py:223: DeprecationWarning: datalad.interface.utils.eval_results is obsolete. Use datalad.interface.base.eval_results instead warnings.warn("datalad.interface.utils.eval_results is obsolete. "Submitting 5 of the total 5112 active GitHub datasets to the datalad-registry.registry-submit-urls(ok): [Registered https://github.com/NCCR-SYNAPSY/ds-NeuroDataPubOSFTest4.git]registry-submit-urls(ok): [Registered https://github.com/NGenetzky/academic-oss-elc.git]registry-submit-urls(ok): [Registered https://github.com/NGenetzky/balena-phusion.git]registry-submit-urls(ok): [Registered https://github.com/NGenetzky/bitbake.bblayer.git]registry-submit-urls(ok): [Registered https://github.com/NGenetzky/datasets.datalad.org.git]
Out of these five ``DeprecationWarnings, four of the them occurred when just import datalad.api as dl` with the working directory set to the repo directory of `datalad-registry` which contains the `datalad_registry_client` source.
It seems that these warnings only show up "because of" some imports from the datatad_registry package when writing or using a Datalad extension as illustrated below.
@yarikoptic Any idea? Something related to how Datalad sets add subcommands or extensions dynamically? It also smells circular nature to me. By the way, everything works as expected other than the unseemly warnings.
Never mind, the warnings are not related to Datalad extensions. They can be recreated just by running the above import statements in a new Python console.
There are numerous ``DeprecationWarning
when running the
tools/populate.py` script, which is built on top of `datalad_registry_client`.Out of these five ``DeprecationWarning
s, four of the them occurred when just
import datalad.api as dl` with the working directory set to the repo directory of `datalad-registry` which contains the `datalad_registry_client` source.import datalad.api as dl
did not produce any warning when the working directory is set outside of the repo directory ofdatalad-registry
.The text was updated successfully, but these errors were encountered: