Omegastick/pytorch-cpp-rl

ubuntu 16.04, python 3.6, no gpu

shul opened this issue · 0 comments

shul commented

I am getting this on the server side:
(venv) ➜ pytorch-cpp-rl git:(master) ✗ ./launch_gym_server.py
20190418 11:25:27 main [INFO]: Initializing gym server
20190418 11:25:27 main [INFO]: Connecting to client
20190418 11:25:51 main [INFO]: Connected
20190418 11:25:51 init [INFO]: Gym server initialized
20190418 11:25:51 serve [INFO]: Serving
20190418 11:25:51 make [INFO]: Making 8 LunarLander-v2s
Process SpawnProcess-5:
Traceback (most recent call last):
File "/usr/lib/python3.6/multiprocessing/process.py", line 258, in _bootstrap
self.run()
File "/usr/lib/python3.6/multiprocessing/process.py", line 93, in run
self._target(*self._args, **self._kwargs)
File "/home/reduct/git/baselines/baselines/common/vec_env/subproc_vec_env.py", line 9, in worker
env = env_fn_wrapper.x()
File "/home/reduct/git/pytorch-cpp-rl/gym_server/envs.py", line 112, in _thunk
env = gym.make(env_id)
File "/home/reduct/git/pytorch-cpp-rl/venv/lib/python3.6/site-packages/gym/envs/registration.py", line 183, in make
return registry.make(id, **kwargs)
File "/home/reduct/git/pytorch-cpp-rl/venv/lib/python3.6/site-packages/gym/envs/registration.py", line 125, in make
env = spec.make(**kwargs)
File "/home/reduct/git/pytorch-cpp-rl/venv/lib/python3.6/site-packages/gym/envs/registration.py", line 88, in make
cls = load(self._entry_point)
File "/home/reduct/git/pytorch-cpp-rl/venv/lib/python3.6/site-packages/gym/envs/registration.py", line 18, in load
fn = getattr(mod, attr_name)
AttributeError: module 'gym.envs.box2d' has no attribute 'LunarLander'

edit: answering myself , I was missing pip install box2d-py