cogment / cogment-verse

Research platform for Human-in-the-loop learning (HILL) & Multi-Agent Reinforcement Learning (MARL)
https://cogment.ai/cogment_verse
Apache License 2.0
76 stars 14 forks source link

Migrate to new gym step api #156

Closed wduguay-air closed 1 year ago

wduguay-air commented 1 year ago

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

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