Moving to the new API for creating the env because a temporary wrapper support is provided for the old code and it will cease to be backward compatible very soon.
Solution
Migrate gym environments to the new step api to remove the annoying deprecation warnings
Deal with other annoying deprecation warnings when running an experiment.
Step api warning
cogment-verse/.venv/lib/python3.9/site-packages/gym/core.py:317: DeprecationWarning: WARN: Initializing wrapper in old step API which
returns one bool instead of two. It is recommended to set `new_step_api=True` to use new step API. This will be the default behaviour in future.
pkg_resources warning:
cogment-verse/.venv/lib/python3.9/site-packages/pkg_resources/__init__.py:2870: DeprecationWarning: Deprecated call to `pkg_resources.
declare_namespace('google')`.
Implementing implicit namespace packages (as specified in PEP 420) is preferred to `pkg_resources.declare_namespace`. See https://setuptools.pypa.io/en/
latest/references/keywords.html#keyword-namespace-packages
Context
Moving to the new API for creating the env because a temporary wrapper support is provided for the old code and it will cease to be backward compatible very soon.
Solution
Step api warning
pkg_resources warning: