Skip to content
New issue

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

running error of play_maps.py #68

Open
KeysaYoung opened this issue Aug 22, 2022 · 2 comments
Open

running error of play_maps.py #68

KeysaYoung opened this issue Aug 22, 2022 · 2 comments

Comments

@KeysaYoung
Copy link

KeysaYoung commented Aug 22, 2022

python play_maps.py -map i80
Traceback (most recent call last):
  File "play_maps.py", line 81, in <module>
    observation, reward, done, info = env.step(action)
  File "/anaconda3/envs/PPUU/lib/python3.8/site-packages/gym/wrappers/order_enforcing.py", line 37, in step
    return self.env.step(action)
  File "/anaconda3/envs/PPUU/lib/python3.8/site-packages/gym/wrappers/step_api_compatibility.py", line 52, in step
    step_returns = self.env.step(action)
  File "/anaconda3/envs/PPUU/lib/python3.8/site-packages/gym/wrappers/env_checker.py", line 37, in step
    return env_step_passive_checker(self.env, action)
  File "/anaconda3/envs/PPUU/lib/python3.8/site-packages/gym/utils/passive_env_checker.py", line 269, in env_step_passive_checker
    assert isinstance(
AssertionError: The `info` returned by `step()` must be a python dictionary, actual type: <class 'NoneType'>
@Atcold
Copy link
Owner

Atcold commented Sep 16, 2022

play_maps.py has 79 lines.
How is it that you're getting an error at line 81?

@915414922
Copy link

I also got the same problem.

python play_maps.py -map i80
Traceback (most recent call last):
  File "play_maps.py", line 73, in <module>
    observation, reward, done, info = env.step(numpy.zeros((2,)))
  File "/home/workspace/anaconda3/envs/PPUU/lib/python3.8/site-packages/gym/wrappers/order_enforcing.py", line 37, in step
    return self.env.step(action)
  File "/home/workspace/anaconda3/envs/PPUU/lib/python3.8/site-packages/gym/wrappers/env_checker.py", line 37, in step
    return env_step_passive_checker(self.env, action)
  File "/home/workspace/anaconda3/envs/PPUU/lib/python3.8/site-packages/gym/utils/passive_env_checker.py", line 261, in env_step_passive_checker
    assert isinstance(
AssertionError: The `info` returned by `step()` must be a python dictionary, actual type: <class 'NoneType'>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants