Tviskaron / pogema-baselines

PPO and PyMARL baseline for Pogema environment
20 stars 5 forks source link

both docker build fails #13

Open Michelangelo-Pinto opened 1 day ago

Michelangelo-Pinto commented 1 day ago

it seems that fails due to gym python requirement. Here the log:

$ ./build.sh [+] Building 96.3s (8/8) FINISHED docker:desktop-linux => [internal] load build definition from Dockerfile 0.0s => => transferring dockerfile: 222B 0.0s => [internal] load metadata for docker.io/pytorch/pytorch:latest 1.1s => [internal] load .dockerignore 0.0s => => transferring context: 2B 0.0s => CACHED [1/4] FROM docker.io/pytorch/pytorch:latest@sha256:11691e035a3651d25a87116b4f6adc113a27a29d8f5a6a5 0.0s => [internal] load build context 0.0s => => transferring context: 232B 0.0s => [2/4] RUN apt update && apt install build-essential ffmpeg libsm6 libxext6 git -y 93.2s => [3/4] ADD requirements.txt /tmp/ 0.0s => ERROR [4/4] RUN pip install -r /tmp/requirements.txt 1.8s

[4/4] RUN pip install -r /tmp/requirements.txt: 0.814 Collecting gym==0.21.0 (from -r /tmp/requirements.txt (line 1)) 1.040 Downloading gym-0.21.0.tar.gz (1.5 MB) 1.393 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.5/1.5 MB 4.4 MB/s eta 0:00:00 1.459 Preparing metadata (setup.py): started 1.591 Preparing metadata (setup.py): finished with status 'error' 1.596 error: subprocess-exited-with-error 1.596 1.596 × python setup.py egg_info did not run successfully. 1.596 │ exit code: 1 1.596 ╰─> [1 lines of output] 1.596 error in gym setup command: 'extras_require' must be a dictionary whose values are strings or lists of strings containing valid project/version requirement specifiers. 1.596 [end of output] 1.596 1.596 note: This error originates from a subprocess, and is likely not a problem with pip. 1.598 error: metadata-generation-failed 1.598 1.598 × Encountered error while generating package metadata. 1.598 ╰─> See above for output. 1.598 1.598 note: This is an issue with the package mentioned above, not pip. 1.598 hint: See above for details.

Dockerfile:4

2 | RUN apt update && apt install build-essential ffmpeg libsm6 libxext6 git -y 3 | ADD requirements.txt /tmp/ 4 | >>> RUN pip install -r /tmp/requirements.txt 5 | 6 | ARG CACHEBUST=1

ERROR: failed to solve: process "/bin/sh -c pip install -r /tmp/requirements.txt" did not complete successfully: exit code: 1

Tviskaron commented 1 day ago

Hi and thank you for your interest!

The Baselines repository will not be receiving any future updates. The main baselines have been transferred to the POGEMA-Benchmark repository, which includes more algorithms and tools. The links in the POGEMA repository have also been updated. I believe the dockerfile from POGEMA benchmark should work.

If I can help you further, please let me know.