0
我在玩OpenAI的宇宙,當我點擊運行時,它出現了一個錯誤。獲取服務器API版本時Docker錯誤
當前腳本:
import gym
import universe # register the universe environments
env = gym.make('flashgames.CoasterRacer-v0')
observation_n = env.reset()
如果我刪除observation_n變量,也不會拿出一個錯誤。使用observation_n會導致錯誤。現在我正在運行docker-py (1.10.3)
。
[2016-12-11 18:32:12,128] Making new env: flashgames.CoasterRacer-v0
[2016-12-11 18:32:12,132] Writing logs to file: /tmp/universe-10547.log
Traceback (most recent call last):
File "/home/ubuntu/workspace/gim.py", line 5, in <module>
observation_n = env.reset()
File "/home/ubuntu/workspace/gym/gym/core.py", line 137, in reset
self.configure()
File "/home/ubuntu/workspace/gym/gym/core.py", line 246, in configure
self._configure(*args, **kwargs)
File "/home/ubuntu/workspace/universe/universe/vectorized/core.py", line 57, in _configure
super(Wrapper, self)._configure(**kwargs)
File "/home/ubuntu/workspace/gym/gym/core.py", line 350, in _configure
return self.env.configure(*args, **kwargs)
File "/home/ubuntu/workspace/gym/gym/core.py", line 246, in configure
self._configure(*args, **kwargs)
File "/home/ubuntu/workspace/universe/universe/wrappers/render.py", line 18, in _configure
super(Render, self)._configure(**kwargs)
File "/home/ubuntu/workspace/universe/universe/vectorized/core.py", line 57, in _configure
super(Wrapper, self)._configure(**kwargs)
File "/home/ubuntu/workspace/gym/gym/core.py", line 350, in _configure
return self.env.configure(*args, **kwargs)
File "/home/ubuntu/workspace/gym/gym/core.py", line 246, in configure
self._configure(*args, **kwargs)
File "/home/ubuntu/workspace/universe/universe/wrappers/throttle.py", line 27, in _configure
super(Throttle, self)._configure(**kwargs)
File "/home/ubuntu/workspace/universe/universe/vectorized/core.py", line 57, in _configure
super(Wrapper, self)._configure(**kwargs)
File "/home/ubuntu/workspace/gym/gym/core.py", line 350, in _configure
File "/home/ubuntu/workspace/gym/gym/core.py", line 246, in configure
self._configure(*args, **kwargs)
File "/home/ubuntu/workspace/universe/universe/envs/vnc_env.py", line 192, in _configure
api_key=api_key,
File "/home/ubuntu/workspace/universe/universe/remotes/build.py", line 19, in build
n=n,
File "/home/ubuntu/workspace/universe/universe/remotes/docker_remote.py", line 43, in __init__
self._assigner = PortAssigner(reuse=reuse)
File "/home/ubuntu/workspace/universe/universe/remotes/docker_remote.py", line 149, in __init__
self.client, self.info = get_client()
File "/home/ubuntu/workspace/universe/universe/remotes/docker_remote.py", line 143, in get_client
return docker.Client(base_url=host, version=client_api_version), info
File "/usr/local/lib/python2.7/dist-packages/docker/client.py", line 99, in __init__
self._version = self._retrieve_server_version()
File "/usr/local/lib/python2.7/dist-packages/docker/client.py", line 124, in _retrieve_server_version
'Error while fetching server API version: {0}'.format(e)
docker.errors.DockerException: Error while fetching server API version: ('Connection aborted.', error(2, 'No such file or directory'))
但要有耐心! 'sudo docker run ...'命令可能會下載相當多的內容(多個100 MB,取決於體育館),並且在所有下載成功完成後,'env.configure()'將只能連接**。 –