Farama-Foundation / D4RL

A collection of reference environments for offline reinforcement learning
Apache License 2.0
1.35k stars 285 forks source link

Installation issue related to mjrl #147

Open Altriaex opened 2 years ago

Altriaex commented 2 years ago

When I tried to use pip install git+https://github.com/rail-berkeley/d4rl@master#egg=d4rl to install d4rl, I received the following error.

Collecting d4rl Cloning https://github.com/rail-berkeley/d4rl (to revision master) to /private/var/folders/57/5fr05p6s3kv9yr4nwlhdmxrh0000gn/T/pip-install-9t0rzrqf/d4rl_1c3e6874f14c4accbfc28015878359ba Running command git clone --filter=blob:none -q https://github.com/rail-berkeley/d4rl /private/var/folders/57/5fr05p6s3kv9yr4nwlhdmxrh0000gn/T/pip-install-9t0rzrqf/d4rl_1c3e6874f14c4accbfc28015878359ba Resolved https://github.com/rail-berkeley/d4rl to commit 4aff6f8c46f62f9a57f79caa9287efefa45b6688 Preparing metadata (setup.py) ... done Collecting mjrl@ git+git://github.com/aravindr93/mjrl@master#egg=mjrl Cloning git://github.com/aravindr93/mjrl (to revision master) to /private/var/folders/57/5fr05p6s3kv9yr4nwlhdmxrh0000gn/T/pip-install-9t0rzrqf/mjrl_18d09f99249e4e0fac2ffe0133587584 Running command git clone --filter=blob:none -q git://github.com/aravindr93/mjrl /private/var/folders/57/5fr05p6s3kv9yr4nwlhdmxrh0000gn/T/pip-install-9t0rzrqf/mjrl_18d09f99249e4e0fac2ffe0133587584 fatal: remote error: The unauthenticated git protocol on port 9418 is no longer supported. Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more information. WARNING: Discarding git+git://github.com/aravindr93/mjrl@master#egg=mjrl. Command errored out with exit status 128: git clone --filter=blob:none -q git://github.com/aravindr93/mjrl /private/var/folders/57/5fr05p6s3kv9yr4nwlhdmxrh0000gn/T/pip-install-9t0rzrqf/mjrl_18d09f99249e4e0fac2ffe0133587584 Check the logs for full command output. Requirement already satisfied: gym in /Users/altria/miniforge3/envs/crowd_pbrl/lib/python3.9/site-packages (from d4rl) (0.21.0) Requirement already satisfied: numpy in /Users/altria/miniforge3/envs/crowd_pbrl/lib/python3.9/site-packages (from d4rl) (1.22.0) Requirement already satisfied: mujoco_py in /Users/altria/miniforge3/envs/crowd_pbrl/lib/python3.9/site-packages (from d4rl) (2.1.2.14) Requirement already satisfied: pybullet in /Users/altria/miniforge3/envs/crowd_pbrl/lib/python3.9/site-packages (from d4rl) (3.2.0) Requirement already satisfied: h5py in /Users/altria/miniforge3/envs/crowd_pbrl/lib/python3.9/site-packages (from d4rl) (3.1.0) Requirement already satisfied: termcolor in /Users/altria/miniforge3/envs/crowd_pbrl/lib/python3.9/site-packages (from d4rl) (1.1.0) Requirement already satisfied: click in /Users/altria/miniforge3/envs/crowd_pbrl/lib/python3.9/site-packages (from d4rl) (8.0.3) Requirement already satisfied: dm_control in /Users/altria/miniforge3/envs/crowd_pbrl/lib/python3.9/site-packages (from d4rl) (1.0.0) ERROR: Could not find a version that satisfies the requirement mjrl (unavailable) (from d4rl) (from versions: none) ERROR: No matching distribution found for mjrl (unavailable)

But in fact, after manually installing mjrl and commenting out the line for mjrl in setup.py, I managed to install d4rl. pip install git+https://github.com/aravindr93/mjrl@master#egg=mjrl

lafmdp commented 2 years ago

Running this command git config --global url."https://".insteadOf git:// could solve the problem for me.

arjay55 commented 2 years ago

I installed mjrl separately(commented out) firstusing the instrucitions found on mjrl git page and updated the yml file manually on my working environment.