Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Docker build settings for January 20, 2023 #54

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ricrowl
Copy link

@ricrowl ricrowl commented Jan 21, 2023

Why

In 2023/01/20, I tried to run dreamerv2 by Docker, however, some errors occurred when building the docker image.

The error details are as follows:

  1. GPG error in running apt-get update
W: GPG error: https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY A4B469963BF863CC
E: The repository 'https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64  InRelease' is no longer signed.
  1. pip dependency error in installing Python packages.
ERROR: Could not find a version that satisfies the requirement ale-py~=0.8.0; extra == "atari" (from gym[atari]) (from versions: 0.6.0.dev20200207, 0.7rc0, 0.7rc1, 0.7rc2, 0.7rc3, 0.7rc4, 0.7, 0.7.1)
ERROR: No matching distribution found for ale-py~=0.8.0; extra == "atari" (from gym[atari])
  1. unzip error in extracting Atari ROMS
unzip:  cannot find or open ROMS.zip, ROMS.zip.zip or ROMS.zip.ZIP.

Then, I fixed these errors.

And we can use MuJoCo for free since October 18, 2021, so I update some settings to run dreamerv2 without own MUJOCO_KEY.

What

  1. Update the CUDA Linux GPG Repository Key
  2. Create requirements.txt and pip install from it
  3. Update unzip configure for Atari ROMS
  4. Update MuJoCo key settings and Train on DM Control on README

And I confirmed that the code works fine by running follows:

docker build -t dreamerv2 .
docker run -it --rm --gpus all -v ~/logdir:/logdir dreamerv2 \
  python3 dreamerv2/train.py --logdir /logdir/atari_pong/dreamerv2/1 \
    --configs atari --task atari_pong
docker build -t dreamerv2 .
docker run -it --rm --gpus all -v ~/logdir:/logdir dreamerv2 \
  python3 dreamerv2/train.py --logdir /logdir/dmc_walker_walk/dreamerv2/1 \
    --configs dmc_vision --task dmc_walker_walk

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant