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
Hey,
I wrote the below code to initialize an instance of SpaceInvaders environment, run 1000 iterations to perform a random action from the sample space and render the environment in real-time.
import gym
env = gym.make("ALE/SpaceInvaders-v5")
env.reset()
for _ in range(1000):
env.step(env.action_space.sample())
env.render()
env.close()
But, I am encountering an error on env.step line that states ' ValueError: too many values to unpack (expected 4)'. I tried modifying that line to return 4 values and also downgraded gym version to check if it's working but to no use. Can you help me resolve this issue?
The text was updated successfully, but these errors were encountered:
Hey,
I wrote the below code to initialize an instance of SpaceInvaders environment, run 1000 iterations to perform a random action from the sample space and render the environment in real-time.
import gym
env = gym.make("ALE/SpaceInvaders-v5")
env.reset()
for _ in range(1000):
env.step(env.action_space.sample())
env.render()
env.close()
But, I am encountering an error on env.step line that states ' ValueError: too many values to unpack (expected 4)'. I tried modifying that line to return 4 values and also downgraded gym version to check if it's working but to no use. Can you help me resolve this issue?
The text was updated successfully, but these errors were encountered: