Skip to content
This repository has been archived by the owner on Apr 6, 2018. It is now read-only.

Link not found #23

Closed
vivekpatani opened this issue Dec 6, 2016 · 1 comment
Closed

Link not found #23

vivekpatani opened this issue Dec 6, 2016 · 1 comment

Comments

@vivekpatani
Copy link

script.py is the basic file in the readme.

  • I just pulled in the latest code from master and ran this installation. I have configured universe correctly, since importing it works, so I'm sure configuration is not an issue. Please tell me if I am doing something wrong.
 flipswitch@devcenter  ~  python
Python 3.5.2 |Anaconda 4.2.0 (64-bit)| (default, Jul  2 2016, 17:53:06) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import universe
>>> import gym
>>> exit()

 flipswitch@devcenter  ~  cd junkyard/universe-example 

 flipswitch@devcenter  ~/junkyard/universe-example  ls
script.py

 flipswitch@devcenter  ~/junkyard/universe-example  python script.py 
[2016-12-06 03:31:29,706] Making new env: flashgames.DuskDrive-v0
[2016-12-06 03:31:29,723] Writing logs to file: /tmp/universe-10115.log
[2016-12-06 03:31:29,724] Configuring VNCEnv
[2016-12-06 03:31:29,751] [0] Creating container: image=quay.io/openai/universe.flashgames:0.19.45. Run the same thing by hand as: docker run -p 10000:5900 -p 10001:15900 --ipc host --cap-add NET_ADMIN --cap-add SYS_ADMIN quay.io/openai/universe.flashgames:0.19.45
[2016-12-06 03:31:29,756] Image quay.io/openai/universe.flashgames:0.19.45 not present locally; pulling
Pulling repository quay.io/openai/universe.flashgames
Traceback (most recent call last):
  File "/opt/anaconda3/lib/python3.5/site-packages/docker/client.py", line 170, in _raise_for_status
    response.raise_for_status()
  File "/opt/anaconda3/lib/python3.5/site-packages/requests/models.py", line 844, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 404 Client Error: Not Found for url: http+docker://localunixsocket/v1.24/containers/create?name=universe-gXhBpc-0

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/flipswitch/junkyard/universe/universe/remotes/docker_remote.py", line 243, in _spawn
    container = self._spawn_container()
  File "/home/flipswitch/junkyard/universe/universe/remotes/docker_remote.py", line 282, in _spawn_container
    'com.openai.automanaged': 'true',
  File "/opt/anaconda3/lib/python3.5/site-packages/docker/api/container.py", line 135, in create_container
    return self.create_container_from_config(config, name)
  File "/opt/anaconda3/lib/python3.5/site-packages/docker/api/container.py", line 146, in create_container_from_config
    return self._result(res, True)
  File "/opt/anaconda3/lib/python3.5/site-packages/docker/client.py", line 178, in _result
    self._raise_for_status(response)
  File "/opt/anaconda3/lib/python3.5/site-packages/docker/client.py", line 173, in _raise_for_status
    raise errors.NotFound(e, response, explanation=explanation)
docker.errors.NotFound: 404 Client Error: Not Found ("b'{"message":"No such image: quay.io/openai/universe.flashgames:0.19.45"}'")

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "script.py", line 5, in <module>
    env.configure(remotes=1)  # automatically creates a local docker container
  File "/opt/anaconda3/lib/python3.5/site-packages/gym/core.py", line 246, in configure
    self._configure(*args, **kwargs)
  File "/home/flipswitch/junkyard/universe/universe/vectorized/core.py", line 57, in _configure
    super(Wrapper, self)._configure(**kwargs)
  File "/opt/anaconda3/lib/python3.5/site-packages/gym/core.py", line 350, in _configure
    return self.env.configure(*args, **kwargs)
  File "/opt/anaconda3/lib/python3.5/site-packages/gym/core.py", line 246, in configure
    self._configure(*args, **kwargs)
  File "/home/flipswitch/junkyard/universe/universe/wrappers/render.py", line 18, in _configure
    super(Render, self)._configure(**kwargs)
  File "/home/flipswitch/junkyard/universe/universe/vectorized/core.py", line 57, in _configure
    super(Wrapper, self)._configure(**kwargs)
  File "/opt/anaconda3/lib/python3.5/site-packages/gym/core.py", line 350, in _configure
    return self.env.configure(*args, **kwargs)
  File "/opt/anaconda3/lib/python3.5/site-packages/gym/core.py", line 246, in configure
    self._configure(*args, **kwargs)
  File "/home/flipswitch/junkyard/universe/universe/wrappers/throttle.py", line 27, in _configure
    super(Throttle, self)._configure(**kwargs)
  File "/home/flipswitch/junkyard/universe/universe/vectorized/core.py", line 57, in _configure
    super(Wrapper, self)._configure(**kwargs)
  File "/opt/anaconda3/lib/python3.5/site-packages/gym/core.py", line 350, in _configure
    return self.env.configure(*args, **kwargs)
  File "/opt/anaconda3/lib/python3.5/site-packages/gym/core.py", line 246, in configure
    self._configure(*args, **kwargs)
  File "/home/flipswitch/junkyard/universe/universe/envs/vnc_env.py", line 180, in _configure
    api_key=api_key,
  File "/home/flipswitch/junkyard/universe/universe/remotes/build.py", line 19, in build
    n=n,
  File "/home/flipswitch/junkyard/universe/universe/remotes/docker_remote.py", line 54, in __init__
    self._start()
  File "/home/flipswitch/junkyard/universe/universe/remotes/docker_remote.py", line 81, in _start
    [instance.start() for instance in self.instances]
  File "/home/flipswitch/junkyard/universe/universe/remotes/docker_remote.py", line 81, in <listcomp>
    [instance.start() for instance in self.instances]
  File "/home/flipswitch/junkyard/universe/universe/remotes/docker_remote.py", line 219, in start
    self._spawn()
  File "/home/flipswitch/junkyard/universe/universe/remotes/docker_remote.py", line 249, in _spawn
    self._pull_image()
  File "/home/flipswitch/junkyard/universe/universe/remotes/docker_remote.py", line 258, in _pull_image
    progress_stream.stream_output(output, sys.stdout))
  File "/home/flipswitch/junkyard/universe/universe/remotes/compose/progress_stream.py", line 23, in stream_output
    print_output_event(event, stream, is_terminal)
  File "/home/flipswitch/junkyard/universe/universe/remotes/compose/progress_stream.py", line 58, in print_output_event
    raise StreamOutputError(event['errorDetail']['message'])
universe.remotes.compose.progress_stream.StreamOutputError: Tag 0.19.45 not found in repository quay.io/openai/universe.flashgames
 flipswitch@devcenter  ~/junkyard/universe-example  docker ps
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES
 flipswitch@devcenter  ~/junkyard/universe-example  

This is /tmp/universe-10115.log

[2016-12-06 03:31:29,724] Configuring VNCEnv
[2016-12-06 03:31:29,751] [0] Creating container: image=quay.io/openai/universe.flashgames:0.19.45. Run the same thing by hand as: docker run -p 10000:5900 -p 10001:15900 --ipc host --cap-add NET_ADMIN --cap-add SYS_ADMIN quay.io/openai/universe.flashgames:0.19.45
[2016-12-06 03:31:29,756] Image quay.io/openai/universe.flashgames:0.19.45 not present locally; pulling
@gdb
Copy link
Contributor

gdb commented Dec 6, 2016

I think you're still using the beta version of this repo. Should be enough to reclone this one!

@gdb gdb closed this as completed Dec 6, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants