Giter Club home page Giter Club logo

Comments (5)

MichaelJKing avatar MichaelJKing commented on June 30, 2024 2

Sorry, my mistake, that command should have been docker run -d gcr.io/deepmind-environments/alchemy:v1.0.0

from dm_alchemy.

MichaelJKing avatar MichaelJKing commented on June 30, 2024

Hi Vishvajeet,

It looks like you are running in Linux in a virtual environment using python 3.7 which is all fine. One possibility is that your docker is not set up correctly. Can you successfully run docker run hello-world and docker run -d gcr.io/deepmind-environments/dm_alchemy:v1.0.0? Note, if you can't run without sudo you will need to follow the instructions at https://docs.docker.com/engine/install/linux-postinstall/.

Also note, to run the examples you can run pip install ./dm_alchemy[examples] which will take care of dependencies like pygame.

from dm_alchemy.

vis7 avatar vis7 commented on June 30, 2024

first command run successfully. while running below commnad

docker run -d gcr.io/deepmind-environments/dm_alchemy:v1.0.0

got error

Unable to find image 'gcr.io/deepmind-environments/dm_alchemy:v1.0.0' locally docker: Error response from daemon: manifest for gcr.io/deepmind-environments/dm_alchemy:v1.0.0 not found: manifest unknown: Failed to fetch "v1.0.0" from request "/v2/deepmind-environments/dm_alchemy/manifests/v1.0.0". See 'docker run --help'.

while trying to fetch docker from cloud

docker pull gcr.io/deepmind-environments/dm_alchemy:v1.0.0

Error response from daemon: manifest for gcr.io/deepmind-environments/dm_alchemy:v1.0.0 not found: manifest unknown: Failed to fetch "v1.0.0" from request "/v2/deepmind-environments/dm_alchemy/manifests/v1.0.0".

it looks like it is not able to find gcr.io/deepmind-environments/dm_alchemy:v1.0.0 on GCR

from dm_alchemy.

vis7 avatar vis7 commented on June 30, 2024

Thank you @MichaelJKing That worked. I updated Readme with correct environment and made pull request. consider that

from dm_alchemy.

jthomy avatar jthomy commented on June 30, 2024

unfortunately on windows, I run into the same error trace trying to run human_agent.py:

pygame 2.0.1 (SDL 2.0.14, Python 3.7.9)
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
  File "human_agent.py", line 186, in <module>
    app.run(main)
  File "C:\Users\jonat\AppData\Local\Programs\Python\Python37\lib\site-packages\absl\app.py", line 303, in run
    _run_main(main, args)
  File "C:\Users\jonat\AppData\Local\Programs\Python\Python37\lib\site-packages\absl\app.py", line 251, in _run_main
    sys.exit(main(argv))
  File "human_agent.py", line 117, in main
    environment_variables=environment_variables) as env:
  File "C:\Users\jonat\AppData\Local\Programs\Python\Python37\lib\site-packages\dm_alchemy\_load_environment.py", line 389, in load_from_docker
    connection_details=_connect_to_environment(port, settings),
  File "C:\Users\jonat\AppData\Local\Programs\Python\Python37\lib\site-packages\dm_alchemy\_load_environment.py", line 246, in _connect_to_environment
    channel, connection = _create_channel_and_connection(port)
  File "C:\Users\jonat\AppData\Local\Programs\Python\Python37\lib\site-packages\dm_alchemy\_load_environment.py", line 204, in _create_channel_and_connection
    _check_grpc_channel_ready(channel)
  File "C:\Users\jonat\AppData\Local\Programs\Python\Python37\lib\site-packages\dm_alchemy\_load_environment.py", line 183, in _check_grpc_channel_ready
    return grpc.channel_ready_future(channel).result(timeout=1)
  File "C:\Users\jonat\AppData\Local\Programs\Python\Python37\lib\site-packages\grpc\_utilities.py", line 140, in result
    self._block(timeout)
  File "C:\Users\jonat\AppData\Local\Programs\Python\Python37\lib\site-packages\grpc\_utilities.py", line 86, in _block
    raise grpc.FutureTimeoutError()
grpc.FutureTimeoutError

the command that is mentioned above does not seem to help. Running

level_name = 'alchemy/perceptual_mapping_randomized_with_rotation_and_random_bottleneck'
seed = 1023
settings = dm_alchemy.EnvironmentSettings(
    seed=seed, level_name=level_name, width=width, height=height)
env = dm_alchemy.load_from_docker(settings)

in the AlchemyGettingStarted.ipynb gives the same error.
The setup is as written in the guide and uses Docker Desktop (except that I don't use a Python virtual environment).
docker run -d gcr.io/deepmind-environments/alchemy:v1.0.0 gives no error.

Shall I open a new issue? While you officially don't support windows maybe you can still help me?

from dm_alchemy.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.