philtabor / Youtube-Code-Repository

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

Does not start your python code. #47

Open rocketmaniaKim opened 2 years ago

rocketmaniaKim commented 2 years ago

Hello, I'm trying to start your Lunar_lander code, 'main_torch_dqn_lundar_lander.py' in 'archive' folder, but it is not started. The following is the error. Thank you. File "C:\Users\ys-th\Desktop\Spring2022\main_torch_dqn_lunar_lander.py", line 15, in env = gym.make('LunarLander-v2')

File "C:\Users\ys-th\miniconda3\lib\site-packages\gym\envs\registration.py", line 676, in make return registry.make(id, **kwargs)

File "C:\Users\ys-th\miniconda3\lib\site-packages\gym\envs\registration.py", line 490, in make versions = self.env_specs.versions(namespace, name)

File "C:\Users\ys-th\miniconda3\lib\site-packages\gym\envs\registration.py", line 220, in versions self._assert_name_exists(namespace, name)

File "C:\Users\ys-th\miniconda3\lib\site-packages\gym\envs\registration.py", line 271, in _assert_name_exists self._assert_namespace_exists(namespace)

File "C:\Users\ys-th\miniconda3\lib\site-packages\gym\envs\registration.py", line 268, in _assert_namespace_exists raise error.NamespaceNotFound(message)

NamespaceNotFound: Namespace None does not exist.