import gym
import gym_gridworlds
env = gym.make('Gridworld-v0') # substitute environment's name
for i in range (10):
print(i)
done = False
state = env.reset()
while not done:
next_state, reward, done, _ = env.step(env.action_space.sample())
print(state, 'state')
state = next_state
This segment of code gives this error
Traceback (most recent call last):
File "/home/sushant/Desktop/clone1/Model Free Prediction/Temporal Difference/TD prediction.py", line 9, in <module>
state = env.reset()
File "/home/sushant/anaconda3/envs/rl/lib/python3.6/site-packages/gym/core.py", line 64, in reset
raise NotImplementedError
NotImplementedError```
This segment of code gives this error