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
I have just started learning PettingZoo and the Tianshou tutorials code is giving me some problems, I think that the render_mode should be specified when the env is initialized, both in 1_basic_api_usage.py and 3_cli_and_logging.py. 1_basic_api_usage.py:
Despite the other tutorials the Tianshou one does not report to be a WIP tutorial and running the code without any changes causes:
pettingzoo/classic/rps/rps.py", line 228, in render
gymnasium.logger.WARN(
TypeError: 'int' object is not callable
Maybe I am missing something, but all the other tutorials warn of possible bugs, while this one doesn't mention any, so I thought to signal the problem.
Describe the bug
I have just started learning PettingZoo and the Tianshou tutorials code is giving me some problems, I think that the
render_mode
should be specified when the env is initialized, both in1_basic_api_usage.py
and3_cli_and_logging.py
.1_basic_api_usage.py
:PettingZoo/tutorials/Tianshou/1_basic_api_usage.py
Lines 18 to 23 in cb39888
3_cli_and_logging.py
:PettingZoo/tutorials/Tianshou/3_cli_and_logging.py
Line 244 in cb39888
Despite the other tutorials the Tianshou one does not report to be a WIP tutorial and running the code without any changes causes:
Maybe I am missing something, but all the other tutorials warn of possible bugs, while this one doesn't mention any, so I thought to signal the problem.
Code example
System info
Additional context
I will make a PR, in case maintainers would like to consider it for a quick fix.
Checklist
The text was updated successfully, but these errors were encountered: