PacktPublishing / Deep-Reinforcement-Learning-Hands-On

Hands-on Deep Reinforcement Learning, published by Packt

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Chapter 8: Can't run train_model_conv.py due to the issue with gym.wrappers.TimeLimit

dadamkovic opened this issue · comments

Couldn't get the code in train_model_conv.py to run due to the
'NoneType' object has no attribute 'max_episode_steps'
Not sure if some recent change in gym.wrappers or a bad setup from my side. It seems to somewhat work when I replace self.env.spec.max_episode_steps with self.env.spec in the definition of gym.wrappers.TimeLimit.