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

Set highway-env version to 1.5 and setuptools to v65.5 #353

Merged
merged 6 commits into from
Feb 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,15 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools==65.5.0
# cpu version of pytorch - faster to download
pip install torch==1.11+cpu -f https://download.pytorch.org/whl/torch_stable.html
pip install pybullet==3.1.9
pip install -r requirements.txt
# Use headless version
pip install opencv-python-headless
# install parking-env to test HER (pinned so it works with gym 0.21)
pip install highway-env==1.6.0
pip install highway-env==1.5.0
pip install -e .
- name: Type check
run: |
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/trained_agents.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,15 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools==65.5.0
# cpu version of pytorch - faster to download
pip install torch==1.11+cpu -f https://download.pytorch.org/whl/torch_stable.html
pip install pybullet==3.1.9
pip install -r requirements.txt
# Use headless version
pip install opencv-python-headless
# install parking-env to test HER (pinned so it works with gym 0.21)
pip install highway-env==1.6.0
pip install highway-env==1.5.0
# Add support for pickle5 protocol
# TODO: remove me when dropping python 3.7
pip install pickle5
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
### New Features

### Bug fixes
- Set ``highway-env`` version to 1.5 and ``setuptools to`` v65.5 for the CI
- Removed `use_auth_token` for push to hub util
- Reverted from v3 to v2 for HumanoidStandup, Reacher, InvertedPendulum and InvertedDoublePendulum since they were not part of the mujoco refactoring (see https://github.com/openai/gym/pull/1304)

Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ RUN \
mkdir -p ${CODE_DIR}/rl_zoo3 && \
pip uninstall -y stable-baselines3 && \
pip install -r /tmp/requirements.txt && \
pip install pip install highway-env==1.6 && \
pip install pip install highway-env==1.5 && \
rm -rf $HOME/.cache/pip

ENV PATH=$VENV/bin:$PATH
Expand Down
5 changes: 5 additions & 0 deletions rl_zoo3/import_envs.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@
import highway_env # pytype: disable=import-error
except ImportError:
highway_env = None
else:
# hotfix for highway_env
import numpy as np

np.float = np.float32 # type: ignore[attr-defined]

try:
import neck_rl # pytype: disable=import-error
Expand Down