PacktPublishing / Deep-Reinforcement-Learning-Hands-On

Hands-on Deep Reinforcement Learning, published by Packt
MIT License
2.83k stars 1.28k forks source link

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

Open dadamkovic opened 5 years ago

dadamkovic commented 5 years ago

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.