philtabor / Youtube-Code-Repository

Repository for most of the code from my YouTube channel
873 stars 479 forks source link

does not start on latest python #5

Closed salos1982 closed 5 years ago

salos1982 commented 5 years ago

Hello, I'm trying to start your example lunar_lander.py but it is not started. I have follwoing error Traceback (most recent call last): File "D:/ai/DeepQLearning/lunar_lander.py", line 9, in env = gym.make('LunarLander-v2') File "D:\ai\DeepQLearning\venv\lib\site-packages\gym\envs\registration.py", line 156, in make return registry.make(id, kwargs) File "D:\ai\DeepQLearning\venv\lib\site-packages\gym\envs\registration.py", line 101, in make env = spec.make(kwargs) File "D:\ai\DeepQLearning\venv\lib\site-packages\gym\envs\registration.py", line 72, in make cls = load(self._entry_point) File "D:\ai\DeepQLearning\venv\lib\site-packages\gym\envs\registration.py", line 18, in load fn = getattr(mod, attr_name) AttributeError: module 'gym.envs.box2d' has no attribute 'LunarLander'

salos1982 commented 5 years ago

I've already found issue. I need to install box2d

philtabor commented 5 years ago

I made the same mistake :) It's not clear from the OpenAI gym docs, so don't feel bad.