OpenAI demo Issue


#1

I’m having trouble getting the demo to work, my user is added in the docker group and the docker service is running but when I go to start the demo I get this stack trace:

/usr/bin/python2.7 /home/rusherz/PycharmProjects/OpenAI/first.py
[2017-10-29 22:19:12,099] Making new env: flashgames.DuskDrive-v0
[2017-10-29 22:19:12,104] Writing logs to file: /tmp/universe-9188.log
[2017-10-29 22:19:12,106] Connection pool is full, discarding connection: localhost
Traceback (most recent call last):
File “/home/rusherz/PycharmProjects/OpenAI/first.py”, line 5, in
env.configure(remotes=1) # automatically creates a local docker container
File “/home/rusherz/.local/lib/python2.7/site-packages/universe/wrappers/timer.py”, line 14, in configure
self.env.configure(**kwargs)
File “/home/rusherz/.local/lib/python2.7/site-packages/universe/wrappers/render.py”, line 21, in configure
self.env.configure(**kwargs)
File “/home/rusherz/.local/lib/python2.7/site-packages/universe/wrappers/throttle.py”, line 32, in configure
self.env.configure(**kwargs)
File “/home/rusherz/.local/lib/python2.7/site-packages/universe/envs/vnc_env.py”, line 199, in configure
use_recorder_ports=record,
File “/home/rusherz/.local/lib/python2.7/site-packages/universe/remotes/build.py”, line 19, in build
n=n,
File “/home/rusherz/.local/lib/python2.7/site-packages/universe/remotes/docker_remote.py”, line 44, in init
self._assigner = PortAssigner(reuse=reuse)
File “/home/rusherz/.local/lib/python2.7/site-packages/universe/remotes/docker_remote.py”, line 163, in init
self.client, self.info = get_client()
File “/home/rusherz/.local/lib/python2.7/site-packages/universe/remotes/docker_remote.py”, line 157, in get_client
return docker.Client(base_url=host, version=client_api_version), info
File “/home/rusherz/.local/lib/python2.7/site-packages/docker/client.py”, line 99, in init
self._version = self._retrieve_server_version()
File “/home/rusherz/.local/lib/python2.7/site-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: Timeout value connect was Timeout(connect=60, read=60, total=None), but it must be an int or float.

Process finished with exit code 1


#2

You should try Python3 and do follow steps:
step1: copy you code to universe-master
step2: setup go-vncdriver at there, require OpenGL. https://github.com/openai/go-vncdriver
step3: solve error remain.