We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When I try to reproduce the example in (https://tianshou.readthedocs.io/en/master/tutorials/tictactoe.html), I encounter an type error: TypeError: object of type 'PettingZooEnv' has no len() The complete error information is as follows:
Traceback (most recent call last): File "tic_tac_toe.py", line 244, in <module> watch(args, agent) File "tic_tac_toe.py", line 236, in watch collector = Collector(policy, env, exploration_noise=True) File "/home/lzy/miniconda3/envs/ray/lib/python3.8/site-packages/tianshou/data/collector.py", line 70, in __init__ self.env_num = len(self.env) TypeError: object of type 'PettingZooEnv' has no len()
Writing "env = DummyVectorEnv([lambda:env])" after "env = get_env()" can fix this error. Maybe the tutorials should be updated?
The text was updated successfully, but these errors were encountered:
Thanks for reporting this issue! Yes, feel free to open a pull request to update the tutorial.
Sorry, something went wrong.
fix docs tictacto dummy vector env thu-ml#669
7636a98
fix docs tictactoc dummy vector env #669 (#749)
0181fe7
a fix for #669
fix docs tictactoc dummy vector env thu-ml#669 (thu-ml#749)
5e44898
a fix for thu-ml#669
No branches or pull requests
When I try to reproduce the example in (https://tianshou.readthedocs.io/en/master/tutorials/tictactoe.html), I encounter an type error: TypeError: object of type 'PettingZooEnv' has no len()
The complete error information is as follows:
Writing "env = DummyVectorEnv([lambda:env])" after "env = get_env()" can fix this error. Maybe the tutorials should be updated?
The text was updated successfully, but these errors were encountered: