Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
[ghstack-poisoned]
  • Loading branch information
vmoens committed Oct 8, 2024
1 parent 6939894 commit 08ea94e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 10 deletions.
4 changes: 1 addition & 3 deletions .github/unittest/linux/scripts/run_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,7 @@ conda deactivate
conda activate "${env_dir}"

echo "installing gymnasium"
pip3 install "gymnasium"
pip3 install ale_py
pip3 install mo-gymnasium[mujoco] # requires here bc needs mujoco-py
pip3 install "gymnasium[atari,accept-rom-license,mujoco]<1.0" mo-gymnasium[mujoco]
pip3 install "mujoco" -U

# sanity check: remove?
Expand Down
4 changes: 2 additions & 2 deletions .github/unittest/linux_distributed/scripts/setup_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ if [[ $OSTYPE != 'darwin'* ]]; then
rm ale_py-0.8.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
fi
echo "installing gymnasium"
pip install "gymnasium[atari,accept-rom-license]"
pip install "gymnasium[atari,accept-rom-license]<1.0"
else
pip install "gymnasium[atari,accept-rom-license]"
pip install "gymnasium[atari,accept-rom-license]<1.0"
fi
2 changes: 1 addition & 1 deletion .github/unittest/linux_examples/scripts/run_all.sh
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ elif [[ $PY_VERSION == *"3.11"* ]]; then
pip install ale_py-0.8.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
rm ale_py-0.8.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
fi
pip install "gymnasium[atari,accept-rom-license]"
pip install "gymnasium[atari,accept-rom-license]<1.0"

# ============================================================================================ #
# ================================ PyTorch & TorchRL ========================================= #
Expand Down
4 changes: 2 additions & 2 deletions .github/unittest/linux_libs/scripts_envpool/setup_env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ if [[ $OSTYPE != 'darwin'* ]]; then
fi
echo "installing gym"
# envpool does not currently work with gymnasium
pip install "gym[atari,accept-rom-license]"
pip install "gym[atari,accept-rom-license]<1.0"
else
pip install "gym[atari,accept-rom-license]"
pip install "gym[atari,accept-rom-license]<1.0"
fi
pip install envpool treevalue

Expand Down
2 changes: 1 addition & 1 deletion .github/unittest/linux_libs/scripts_gym/batch_scripts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ conda deactivate
conda create --prefix ./cloned_env --clone ./env -y
conda activate ./cloned_env

pip3 install 'gymnasium[accept-rom-license,ale-py,atari]' mo-gymnasium gymnasium-robotics -U
pip3 install 'gymnasium[accept-rom-license,ale-py,atari]<1.0' mo-gymnasium gymnasium-robotics -U

$DIR/run_test.sh

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ dependencies:
- protobuf
- pip:
# Initial version is required to install Atari ROMS in setup_env.sh
- gymnasium
- gymnasium<1.0
- hypothesis
- future
- cloudpickle
Expand Down

0 comments on commit 08ea94e

Please sign in to comment.