Due to the relative imports (example) when the package is not cloned and pip install locally, the package cannot be imported:
(base) ➜ Developer conda create -y -n offline_rl python=3.6.9
Collecting package metadata (current_repodata.json): done
Solving environment: failed with repodata from current_repodata.json, will retry with next repodata source.
Collecting package metadata (repodata.json): done
Solving environment: done
==> WARNING: A newer version of conda exists. <==
current version: 4.7.12
latest version: 4.8.3
Please update conda by running
$ conda update -n base -c defaults conda
## Package Plan ##
environment location: /usr/local/Caskroom/miniconda/base/envs/offline_rl
added / updated specs:
- python=3.6.9
The following packages will be downloaded:
package | build
---------------------------|-----------------
xz-5.2.5 | h1de35cc_0 282 KB
------------------------------------------------------------
Total: 282 KB
The following NEW packages will be INSTALLED:
ca-certificates pkgs/main/osx-64::ca-certificates-2020.1.1-0
certifi pkgs/main/osx-64::certifi-2020.4.5.1-py36_0
libcxx pkgs/main/osx-64::libcxx-4.0.1-hcfea43d_1
libcxxabi pkgs/main/osx-64::libcxxabi-4.0.1-hcfea43d_1
libedit pkgs/main/osx-64::libedit-3.1.20181209-hb402a30_0
libffi pkgs/main/osx-64::libffi-3.2.1-h475c297_4
ncurses pkgs/main/osx-64::ncurses-6.2-h0a44026_0
openssl pkgs/main/osx-64::openssl-1.1.1f-h1de35cc_0
pip pkgs/main/osx-64::pip-20.0.2-py36_1
python pkgs/main/osx-64::python-3.6.9-h359304d_0
readline pkgs/main/osx-64::readline-7.0-h1de35cc_5
setuptools pkgs/main/osx-64::setuptools-46.1.3-py36_0
sqlite pkgs/main/osx-64::sqlite-3.31.1-ha441bb4_0
tk pkgs/main/osx-64::tk-8.6.8-ha441bb4_0
wheel pkgs/main/osx-64::wheel-0.34.2-py36_0
xz pkgs/main/osx-64::xz-5.2.5-h1de35cc_0
zlib pkgs/main/osx-64::zlib-1.2.11-h1de35cc_3
Downloading and Extracting Packages
xz-5.2.5 | 282 KB | ################################################################################################################################################################################################################################# | 100%
Preparing transaction: done
Verifying transaction: done
Executing transaction: done
#
# To activate this environment, use
#
# $ conda activate offline_rl
#
# To deactivate an active environment, use
#
# $ conda deactivate
(base) ➜ Developer conda activate offline_rl
(offline_rl) ➜ Developer pip install git+https://github.com/rail-berkeley/offline_rl@master#egg=offline-rl
Collecting offline-rl
Cloning https://github.com/rail-berkeley/offline_rl (to revision master) to /private/var/folders/t4/2083q_815sl0312trk4k_4l00000gn/T/pip-install-718sfz13/offline-rl
Running command git clone -q https://github.com/rail-berkeley/offline_rl /private/var/folders/t4/2083q_815sl0312trk4k_4l00000gn/T/pip-install-718sfz13/offline-rl
Processing /Users/alpha/Library/Caches/pip/wheels/83/05/c5/c585041ad642c75ce98ecee9a930e34dab7eb64fd5305972be/gym-0.17.1-py3-none-any.whl
Collecting numpy
Using cached numpy-1.18.2-cp36-cp36m-macosx_10_9_x86_64.whl (15.2 MB)
Collecting mujoco_py
Downloading mujoco-py-2.0.2.9.tar.gz (777 kB)
|████████████████████████████████| 777 kB 426 kB/s
Installing build dependencies ... done
WARNING: Missing build requirements in pyproject.toml for mujoco_py from https://files.pythonhosted.org/packages/a2/30/21abd0cf2734bf5f34a7a8967789b12dee55f1e51e9c1c60af1cba549123/mujoco-py-2.0.2.9.tar.gz#sha256=6ae20ca9509203758f5e30a7a4019cb2d581b6d40dc2c2669dbe3229cfdf05e8 (from offline-rl).
WARNING: The project does not specify a build backend, and pip cannot fall back to setuptools without 'wheel'.
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing wheel metadata ... done
Collecting h5py
Using cached h5py-2.10.0-cp36-cp36m-macosx_10_6_intel.whl (3.0 MB)
Collecting mjrl@ git+git://github.com/aravindr93/mjrl@master#egg=mjrl
Cloning git://github.com/aravindr93/mjrl (to revision master) to /private/var/folders/t4/2083q_815sl0312trk4k_4l00000gn/T/pip-install-718sfz13/mjrl
Running command git clone -q git://github.com/aravindr93/mjrl /private/var/folders/t4/2083q_815sl0312trk4k_4l00000gn/T/pip-install-718sfz13/mjrl
Collecting six
Using cached six-1.14.0-py2.py3-none-any.whl (10 kB)
Collecting cloudpickle<1.4.0,>=1.2.0
Using cached cloudpickle-1.3.0-py2.py3-none-any.whl (26 kB)
Collecting scipy
Using cached scipy-1.4.1-cp36-cp36m-macosx_10_6_intel.whl (28.5 MB)
Collecting pyglet<=1.5.0,>=1.4.0
Using cached pyglet-1.5.0-py2.py3-none-any.whl (1.0 MB)
Collecting imageio>=2.1.2
Using cached imageio-2.8.0-py3-none-any.whl (3.3 MB)
Collecting glfw>=1.4.0
Using cached glfw-1.11.0-py2.py27.py3.py30.py31.py32.py33.py34.py35.py36.py37.py38-none-macosx_10_6_intel.whl (100 kB)
Collecting cffi>=1.10
Using cached cffi-1.14.0-cp36-cp36m-macosx_10_9_x86_64.whl (174 kB)
Collecting Cython>=0.27.2
Using cached Cython-0.29.16-cp36-cp36m-macosx_10_9_x86_64.whl (2.0 MB)
Collecting fasteners~=0.15
Using cached fasteners-0.15-py2.py3-none-any.whl (23 kB)
Processing /Users/alpha/Library/Caches/pip/wheels/6e/9c/ed/4499c9865ac1002697793e0ae05ba6be33553d098f3347fb94/future-0.18.2-py3-none-any.whl
Collecting pillow
Using cached Pillow-7.1.1-cp36-cp36m-macosx_10_10_x86_64.whl (2.2 MB)
Collecting pycparser
Using cached pycparser-2.20-py2.py3-none-any.whl (112 kB)
Collecting monotonic>=0.1
Using cached monotonic-1.5-py2.py3-none-any.whl (5.3 kB)
Building wheels for collected packages: offline-rl, mujoco-py, mjrl
Building wheel for offline-rl (setup.py) ... done
Created wheel for offline-rl: filename=offline_rl-1.0-py3-none-any.whl size=70315 sha256=00e52eb5520e1b573e8867a6181e78feaf798b2ef19bc2fb36df4436b197b4ca
Stored in directory: /private/var/folders/t4/2083q_815sl0312trk4k_4l00000gn/T/pip-ephem-wheel-cache-zykbok5i/wheels/75/a8/3e/ed95ca3abac0062f8d6cfc73e017e6b87c83926a15f4a7678a
Building wheel for mujoco-py (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/Caskroom/miniconda/base/envs/offline_rl/bin/python /usr/local/Caskroom/miniconda/base/envs/offline_rl/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /var/folders/t4/2083q_815sl0312trk4k_4l00000gn/T/tmppdxeqqa2
cwd: /private/var/folders/t4/2083q_815sl0312trk4k_4l00000gn/T/pip-install-718sfz13/mujoco-py
Complete output (67 lines):
running bdist_wheel
running build
You appear to be missing MuJoCo. We expected to find the file here: /Users/alpha/.mujoco/mujoco200
This package only provides python bindings, the library must be installed separately.
Please follow the instructions on the README to install MuJoCo
https://github.com/openai/mujoco-py#install-mujoco
Which can be downloaded from the website
https://www.roboti.us/index.html
Traceback (most recent call last):
File "/usr/local/Caskroom/miniconda/base/envs/offline_rl/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py", line 257, in <module>
main()
File "/usr/local/Caskroom/miniconda/base/envs/offline_rl/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py", line 240, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/usr/local/Caskroom/miniconda/base/envs/offline_rl/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py", line 182, in build_wheel
metadata_directory)
File "/private/var/folders/t4/2083q_815sl0312trk4k_4l00000gn/T/pip-build-env-_nw630od/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 213, in build_wheel
wheel_directory, config_settings)
File "/private/var/folders/t4/2083q_815sl0312trk4k_4l00000gn/T/pip-build-env-_nw630od/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 198, in _build_with_temp_dir
self.run_setup()
File "/private/var/folders/t4/2083q_815sl0312trk4k_4l00000gn/T/pip-build-env-_nw630od/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 250, in run_setup
self).run_setup(setup_script=setup_script)
File "/private/var/folders/t4/2083q_815sl0312trk4k_4l00000gn/T/pip-build-env-_nw630od/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 143, in run_setup
exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 51, in <module>
'Programming Language :: Python :: 3 :: Only',
File "/private/var/folders/t4/2083q_815sl0312trk4k_4l00000gn/T/pip-build-env-_nw630od/overlay/lib/python3.6/site-packages/setuptools/__init__.py", line 144, in setup
return distutils.core.setup(**attrs)
File "/usr/local/Caskroom/miniconda/base/envs/offline_rl/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/local/Caskroom/miniconda/base/envs/offline_rl/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/local/Caskroom/miniconda/base/envs/offline_rl/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/private/var/folders/t4/2083q_815sl0312trk4k_4l00000gn/T/pip-build-env-_nw630od/normal/lib/python3.6/site-packages/wheel/bdist_wheel.py", line 223, in run
self.run_command('build')
File "/usr/local/Caskroom/miniconda/base/envs/offline_rl/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/Caskroom/miniconda/base/envs/offline_rl/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "setup.py", line 29, in run
import mujoco_py # noqa: force build
File "/private/var/folders/t4/2083q_815sl0312trk4k_4l00000gn/T/pip-install-718sfz13/mujoco-py/mujoco_py/__init__.py", line 3, in <module>
from mujoco_py.builder import cymj, ignore_mujoco_warnings, functions, MujocoException
File "/private/var/folders/t4/2083q_815sl0312trk4k_4l00000gn/T/pip-install-718sfz13/mujoco-py/mujoco_py/builder.py", line 509, in <module>
mujoco_path, key_path = discover_mujoco()
File "/private/var/folders/t4/2083q_815sl0312trk4k_4l00000gn/T/pip-install-718sfz13/mujoco-py/mujoco_py/utils.py", line 93, in discover_mujoco
raise Exception(message)
Exception:
You appear to be missing MuJoCo. We expected to find the file here: /Users/alpha/.mujoco/mujoco200
This package only provides python bindings, the library must be installed separately.
Please follow the instructions on the README to install MuJoCo
https://github.com/openai/mujoco-py#install-mujoco
Which can be downloaded from the website
https://www.roboti.us/index.html
----------------------------------------
ERROR: Failed building wheel for mujoco-py
Building wheel for mjrl (setup.py) ... done
Created wheel for mjrl: filename=mjrl-1.0.0-py3-none-any.whl size=53719 sha256=b900484aee5a924770e99e0b244716d68dff2bf350b32ad903110af39aebb280
Stored in directory: /private/var/folders/t4/2083q_815sl0312trk4k_4l00000gn/T/pip-ephem-wheel-cache-zykbok5i/wheels/12/ab/6b/8bf2aeb28732954b2b712465bed617ca07213ce1070053cb34
Successfully built offline-rl mjrl
Failed to build mujoco-py
ERROR: Could not build wheels for mujoco-py which use PEP 517 and cannot be installed directly
(offline_rl) ➜ Developer
(offline_rl) ➜ Developer ls ~/.mujoco
mjkey.txt mujoco200_macos
(offline_rl) ➜ Developer cp ~/.mujoco/mujoco200_macos ~/.mujoco/mujoco200
cp: /Users/alpha/.mujoco/mujoco200_macos is a directory (not copied).
(offline_rl) ➜ Developer pip install git+https://github.com/rail-berkeley/offline_rl@master#egg=offline-rl
Collecting offline-rl
Cloning https://github.com/rail-berkeley/offline_rl (to revision master) to /private/var/folders/t4/2083q_815sl0312trk4k_4l00000gn/T/pip-install-_n8vei1l/offline-rl
Running command git clone -q https://github.com/rail-berkeley/offline_rl /private/var/folders/t4/2083q_815sl0312trk4k_4l00000gn/T/pip-install-_n8vei1l/offline-rl
Processing /Users/alpha/Library/Caches/pip/wheels/83/05/c5/c585041ad642c75ce98ecee9a930e34dab7eb64fd5305972be/gym-0.17.1-py3-none-any.whl
Collecting numpy
Using cached numpy-1.18.2-cp36-cp36m-macosx_10_9_x86_64.whl (15.2 MB)
Collecting mujoco_py
Using cached mujoco-py-2.0.2.9.tar.gz (777 kB)
Installing build dependencies ... done
WARNING: Missing build requirements in pyproject.toml for mujoco_py from https://files.pythonhosted.org/packages/a2/30/21abd0cf2734bf5f34a7a8967789b12dee55f1e51e9c1c60af1cba549123/mujoco-py-2.0.2.9.tar.gz#sha256=6ae20ca9509203758f5e30a7a4019cb2d581b6d40dc2c2669dbe3229cfdf05e8 (from offline-rl).
WARNING: The project does not specify a build backend, and pip cannot fall back to setuptools without 'wheel'.
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing wheel metadata ... done
Collecting h5py
Using cached h5py-2.10.0-cp36-cp36m-macosx_10_6_intel.whl (3.0 MB)
Collecting mjrl@ git+git://github.com/aravindr93/mjrl@master#egg=mjrl
Cloning git://github.com/aravindr93/mjrl (to revision master) to /private/var/folders/t4/2083q_815sl0312trk4k_4l00000gn/T/pip-install-_n8vei1l/mjrl
Running command git clone -q git://github.com/aravindr93/mjrl /private/var/folders/t4/2083q_815sl0312trk4k_4l00000gn/T/pip-install-_n8vei1l/mjrl
Collecting pyglet<=1.5.0,>=1.4.0
Using cached pyglet-1.5.0-py2.py3-none-any.whl (1.0 MB)
Collecting six
Using cached six-1.14.0-py2.py3-none-any.whl (10 kB)
Collecting cloudpickle<1.4.0,>=1.2.0
Using cached cloudpickle-1.3.0-py2.py3-none-any.whl (26 kB)
Collecting scipy
Using cached scipy-1.4.1-cp36-cp36m-macosx_10_6_intel.whl (28.5 MB)
Collecting cffi>=1.10
Using cached cffi-1.14.0-cp36-cp36m-macosx_10_9_x86_64.whl (174 kB)
Collecting fasteners~=0.15
Using cached fasteners-0.15-py2.py3-none-any.whl (23 kB)
Collecting Cython>=0.27.2
Using cached Cython-0.29.16-cp36-cp36m-macosx_10_9_x86_64.whl (2.0 MB)
Collecting imageio>=2.1.2
Using cached imageio-2.8.0-py3-none-any.whl (3.3 MB)
Collecting glfw>=1.4.0
Using cached glfw-1.11.0-py2.py27.py3.py30.py31.py32.py33.py34.py35.py36.py37.py38-none-macosx_10_6_intel.whl (100 kB)
Processing /Users/alpha/Library/Caches/pip/wheels/6e/9c/ed/4499c9865ac1002697793e0ae05ba6be33553d098f3347fb94/future-0.18.2-py3-none-any.whl
Collecting pycparser
Using cached pycparser-2.20-py2.py3-none-any.whl (112 kB)
Collecting monotonic>=0.1
Using cached monotonic-1.5-py2.py3-none-any.whl (5.3 kB)
Collecting pillow
Using cached Pillow-7.1.1-cp36-cp36m-macosx_10_10_x86_64.whl (2.2 MB)
Building wheels for collected packages: offline-rl, mujoco-py, mjrl
Building wheel for offline-rl (setup.py) ... done
Created wheel for offline-rl: filename=offline_rl-1.0-py3-none-any.whl size=70315 sha256=96100150f0abebcd45a63382bd7948c9ac8d19ddde468f91008f227e9e1c8ff8
Stored in directory: /private/var/folders/t4/2083q_815sl0312trk4k_4l00000gn/T/pip-ephem-wheel-cache-wv7hgl2i/wheels/75/a8/3e/ed95ca3abac0062f8d6cfc73e017e6b87c83926a15f4a7678a
Building wheel for mujoco-py (PEP 517) ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/Caskroom/miniconda/base/envs/offline_rl/bin/python /usr/local/Caskroom/miniconda/base/envs/offline_rl/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /var/folders/t4/2083q_815sl0312trk4k_4l00000gn/T/tmpq9x05kh0
cwd: /private/var/folders/t4/2083q_815sl0312trk4k_4l00000gn/T/pip-install-_n8vei1l/mujoco-py
Complete output (67 lines):
running bdist_wheel
running build
You appear to be missing MuJoCo. We expected to find the file here: /Users/alpha/.mujoco/mujoco200
This package only provides python bindings, the library must be installed separately.
Please follow the instructions on the README to install MuJoCo
https://github.com/openai/mujoco-py#install-mujoco
Which can be downloaded from the website
https://www.roboti.us/index.html
Traceback (most recent call last):
File "/usr/local/Caskroom/miniconda/base/envs/offline_rl/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py", line 257, in <module>
main()
File "/usr/local/Caskroom/miniconda/base/envs/offline_rl/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py", line 240, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/usr/local/Caskroom/miniconda/base/envs/offline_rl/lib/python3.6/site-packages/pip/_vendor/pep517/_in_process.py", line 182, in build_wheel
metadata_directory)
File "/private/var/folders/t4/2083q_815sl0312trk4k_4l00000gn/T/pip-build-env-03tr64q6/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 213, in build_wheel
wheel_directory, config_settings)
File "/private/var/folders/t4/2083q_815sl0312trk4k_4l00000gn/T/pip-build-env-03tr64q6/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 198, in _build_with_temp_dir
self.run_setup()
File "/private/var/folders/t4/2083q_815sl0312trk4k_4l00000gn/T/pip-build-env-03tr64q6/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 250, in run_setup
self).run_setup(setup_script=setup_script)
File "/private/var/folders/t4/2083q_815sl0312trk4k_4l00000gn/T/pip-build-env-03tr64q6/overlay/lib/python3.6/site-packages/setuptools/build_meta.py", line 143, in run_setup
exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 51, in <module>
'Programming Language :: Python :: 3 :: Only',
File "/private/var/folders/t4/2083q_815sl0312trk4k_4l00000gn/T/pip-build-env-03tr64q6/overlay/lib/python3.6/site-packages/setuptools/__init__.py", line 144, in setup
return distutils.core.setup(**attrs)
File "/usr/local/Caskroom/miniconda/base/envs/offline_rl/lib/python3.6/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/local/Caskroom/miniconda/base/envs/offline_rl/lib/python3.6/distutils/dist.py", line 955, in run_commands
self.run_command(cmd)
File "/usr/local/Caskroom/miniconda/base/envs/offline_rl/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "/private/var/folders/t4/2083q_815sl0312trk4k_4l00000gn/T/pip-build-env-03tr64q6/normal/lib/python3.6/site-packages/wheel/bdist_wheel.py", line 223, in run
self.run_command('build')
File "/usr/local/Caskroom/miniconda/base/envs/offline_rl/lib/python3.6/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/local/Caskroom/miniconda/base/envs/offline_rl/lib/python3.6/distutils/dist.py", line 974, in run_command
cmd_obj.run()
File "setup.py", line 29, in run
import mujoco_py # noqa: force build
File "/private/var/folders/t4/2083q_815sl0312trk4k_4l00000gn/T/pip-install-_n8vei1l/mujoco-py/mujoco_py/__init__.py", line 3, in <module>
from mujoco_py.builder import cymj, ignore_mujoco_warnings, functions, MujocoException
File "/private/var/folders/t4/2083q_815sl0312trk4k_4l00000gn/T/pip-install-_n8vei1l/mujoco-py/mujoco_py/builder.py", line 509, in <module>
mujoco_path, key_path = discover_mujoco()
File "/private/var/folders/t4/2083q_815sl0312trk4k_4l00000gn/T/pip-install-_n8vei1l/mujoco-py/mujoco_py/utils.py", line 93, in discover_mujoco
raise Exception(message)
Exception:
You appear to be missing MuJoCo. We expected to find the file here: /Users/alpha/.mujoco/mujoco200
This package only provides python bindings, the library must be installed separately.
Please follow the instructions on the README to install MuJoCo
https://github.com/openai/mujoco-py#install-mujoco
Which can be downloaded from the website
https://www.roboti.us/index.html
----------------------------------------
ERROR: Failed building wheel for mujoco-py
Building wheel for mjrl (setup.py) ... done
Created wheel for mjrl: filename=mjrl-1.0.0-py3-none-any.whl size=53719 sha256=1ac9f0f9dadd8206e0fd2aac9408051cca10ef373f34e763683b03501f42668e
Stored in directory: /private/var/folders/t4/2083q_815sl0312trk4k_4l00000gn/T/pip-ephem-wheel-cache-wv7hgl2i/wheels/12/ab/6b/8bf2aeb28732954b2b712465bed617ca07213ce1070053cb34
Successfully built offline-rl mjrl
Failed to build mujoco-py
ERROR: Could not build wheels for mujoco-py which use PEP 517 and cannot be installed directly
(offline_rl) ➜ Developer λσ /Users/alpha/.mujoco/mujoco200
zsh: command not found: λσ
(offline_rl) ➜ Developer ls /Users/alpha/.mujoco/mujoco200
ls: /Users/alpha/.mujoco/mujoco200: No such file or directory
(offline_rl) ➜ Developer ls /Users/alpha/.mujoco/
mjkey.txt mujoco200_macos
(offline_rl) ➜ Developer cp ~/.m
(offline_rl) ➜ Developer ls
dotfiles keygen robotrader tex-uapd uncertainty-aware-policy-distillation yagw
dreamer pfduu spinningup tom website
(offline_rl) ➜ Developer cp -r ~/.mujoco/mujoco200_macos ~/.mujoco/mujoco200
(offline_rl) ➜ Developer ls ~/.mujoco
mjkey.txt mujoco200 mujoco200_macos
(offline_rl) ➜ Developer pip install git+https://github.com/rail-berkeley/offline_rl@master#egg=offline-rl
Collecting offline-rl
Cloning https://github.com/rail-berkeley/offline_rl (to revision master) to /private/var/folders/t4/2083q_815sl0312trk4k_4l00000gn/T/pip-install-3hep6jfx/offline-rl
Running command git clone -q https://github.com/rail-berkeley/offline_rl /private/var/folders/t4/2083q_815sl0312trk4k_4l00000gn/T/pip-install-3hep6jfx/offline-rl
Processing /Users/alpha/Library/Caches/pip/wheels/83/05/c5/c585041ad642c75ce98ecee9a930e34dab7eb64fd5305972be/gym-0.17.1-py3-none-any.whl
Collecting numpy
Using cached numpy-1.18.2-cp36-cp36m-macosx_10_9_x86_64.whl (15.2 MB)
Collecting mujoco_py
Using cached mujoco-py-2.0.2.9.tar.gz (777 kB)
Installing build dependencies ... done
WARNING: Missing build requirements in pyproject.toml for mujoco_py from https://files.pythonhosted.org/packages/a2/30/21abd0cf2734bf5f34a7a8967789b12dee55f1e51e9c1c60af1cba549123/mujoco-py-2.0.2.9.tar.gz#sha256=6ae20ca9509203758f5e30a7a4019cb2d581b6d40dc2c2669dbe3229cfdf05e8 (from offline-rl).
WARNING: The project does not specify a build backend, and pip cannot fall back to setuptools without 'wheel'.
Getting requirements to build wheel ... done
Installing backend dependencies ... done
Preparing wheel metadata ... done
Collecting h5py
Using cached h5py-2.10.0-cp36-cp36m-macosx_10_6_intel.whl (3.0 MB)
Collecting mjrl@ git+git://github.com/aravindr93/mjrl@master#egg=mjrl
Cloning git://github.com/aravindr93/mjrl (to revision master) to /private/var/folders/t4/2083q_815sl0312trk4k_4l00000gn/T/pip-install-3hep6jfx/mjrl
Running command git clone -q git://github.com/aravindr93/mjrl /private/var/folders/t4/2083q_815sl0312trk4k_4l00000gn/T/pip-install-3hep6jfx/mjrl
Collecting scipy
Using cached scipy-1.4.1-cp36-cp36m-macosx_10_6_intel.whl (28.5 MB)
Collecting six
Using cached six-1.14.0-py2.py3-none-any.whl (10 kB)
Collecting cloudpickle<1.4.0,>=1.2.0
Using cached cloudpickle-1.3.0-py2.py3-none-any.whl (26 kB)
Collecting pyglet<=1.5.0,>=1.4.0
Using cached pyglet-1.5.0-py2.py3-none-any.whl (1.0 MB)
Collecting fasteners~=0.15
Using cached fasteners-0.15-py2.py3-none-any.whl (23 kB)
Collecting glfw>=1.4.0
Using cached glfw-1.11.0-py2.py27.py3.py30.py31.py32.py33.py34.py35.py36.py37.py38-none-macosx_10_6_intel.whl (100 kB)
Collecting cffi>=1.10
Using cached cffi-1.14.0-cp36-cp36m-macosx_10_9_x86_64.whl (174 kB)
Collecting Cython>=0.27.2
Using cached Cython-0.29.16-cp36-cp36m-macosx_10_9_x86_64.whl (2.0 MB)
Collecting imageio>=2.1.2
Using cached imageio-2.8.0-py3-none-any.whl (3.3 MB)
Processing /Users/alpha/Library/Caches/pip/wheels/6e/9c/ed/4499c9865ac1002697793e0ae05ba6be33553d098f3347fb94/future-0.18.2-py3-none-any.whl
Collecting monotonic>=0.1
Using cached monotonic-1.5-py2.py3-none-any.whl (5.3 kB)
Collecting pycparser
Using cached pycparser-2.20-py2.py3-none-any.whl (112 kB)
Collecting pillow
Using cached Pillow-7.1.1-cp36-cp36m-macosx_10_10_x86_64.whl (2.2 MB)
Building wheels for collected packages: offline-rl, mujoco-py, mjrl
Building wheel for offline-rl (setup.py) ... done
Created wheel for offline-rl: filename=offline_rl-1.0-py3-none-any.whl size=70315 sha256=3673fc821caf94748e07b095ec7a1f87a14e0f37a68058e3e88f96a30b71920c
Stored in directory: /private/var/folders/t4/2083q_815sl0312trk4k_4l00000gn/T/pip-ephem-wheel-cache-dp_kivxz/wheels/75/a8/3e/ed95ca3abac0062f8d6cfc73e017e6b87c83926a15f4a7678a
Building wheel for mujoco-py (PEP 517) ... done
Created wheel for mujoco-py: filename=mujoco_py-2.0.2.9-py3-none-any.whl size=1689115 sha256=c6e49fa4a6ef64965936e6d7e9ad4baa796d3cf577666ced63639cd3017d1426
Stored in directory: /Users/alpha/Library/Caches/pip/wheels/04/48/e0/82745eebaf57a4a96ff15db7fd4336aba0ac5a49c6e414d59f
Building wheel for mjrl (setup.py) ... done
Created wheel for mjrl: filename=mjrl-1.0.0-py3-none-any.whl size=53719 sha256=9a372215bd4965c701d78de53e757a775e28feeb7a0a93a3d6eacac73f8c3896
Stored in directory: /private/var/folders/t4/2083q_815sl0312trk4k_4l00000gn/T/pip-ephem-wheel-cache-dp_kivxz/wheels/12/ab/6b/8bf2aeb28732954b2b712465bed617ca07213ce1070053cb34
Successfully built offline-rl mujoco-py mjrl
Installing collected packages: numpy, scipy, six, cloudpickle, future, pyglet, gym, monotonic, fasteners, glfw, pycparser, cffi, Cython, pillow, imageio, mujoco-py, h5py, mjrl, offline-rl
Successfully installed Cython-0.29.16 cffi-1.14.0 cloudpickle-1.3.0 fasteners-0.15 future-0.18.2 glfw-1.11.0 gym-0.17.1 h5py-2.10.0 imageio-2.8.0 mjrl-1.0.0 monotonic-1.5 mujoco-py-2.0.2.9 numpy-1.18.2 offline-rl-1.0 pillow-7.1.1 pycparser-2.20 pyglet-1.5.0 scipy-1.4.1 six-1.14.0
(offline_rl) ➜ Developer pip install ipython
Collecting ipython
Using cached ipython-7.13.0-py3-none-any.whl (780 kB)
Processing /Users/alpha/Library/Caches/pip/wheels/b4/cb/f1/d142b3bb45d488612cf3943d8a1db090eb95e6687045ba61d1/backcall-0.1.0-py3-none-any.whl
Collecting pickleshare
Using cached pickleshare-0.7.5-py2.py3-none-any.whl (6.9 kB)
Collecting jedi>=0.10
Downloading jedi-0.17.0-py2.py3-none-any.whl (1.1 MB)
|████████████████████████████████| 1.1 MB 559 kB/s
Collecting pexpect; sys_platform != "win32"
Using cached pexpect-4.8.0-py2.py3-none-any.whl (59 kB)
Collecting traitlets>=4.2
Using cached traitlets-4.3.3-py2.py3-none-any.whl (75 kB)
Requirement already satisfied: setuptools>=18.5 in /usr/local/Caskroom/miniconda/base/envs/offline_rl/lib/python3.6/site-packages (from ipython) (46.1.3.post20200330)
Collecting prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0
Using cached prompt_toolkit-3.0.5-py3-none-any.whl (351 kB)
Collecting pygments
Using cached Pygments-2.6.1-py3-none-any.whl (914 kB)
Collecting appnope; sys_platform == "darwin"
Using cached appnope-0.1.0-py2.py3-none-any.whl (4.0 kB)
Collecting decorator
Using cached decorator-4.4.2-py2.py3-none-any.whl (9.2 kB)
Collecting parso>=0.7.0
Downloading parso-0.7.0-py2.py3-none-any.whl (100 kB)
|████████████████████████████████| 100 kB 2.3 MB/s
Collecting ptyprocess>=0.5
Using cached ptyprocess-0.6.0-py2.py3-none-any.whl (39 kB)
Requirement already satisfied: six in /usr/local/Caskroom/miniconda/base/envs/offline_rl/lib/python3.6/site-packages (from traitlets>=4.2->ipython) (1.14.0)
Collecting ipython-genutils
Using cached ipython_genutils-0.2.0-py2.py3-none-any.whl (26 kB)
Collecting wcwidth
Using cached wcwidth-0.1.9-py2.py3-none-any.whl (19 kB)
Installing collected packages: backcall, pickleshare, parso, jedi, ptyprocess, pexpect, ipython-genutils, decorator, traitlets, wcwidth, prompt-toolkit, pygments, appnope, ipython
ipythonSuccessfully installed appnope-0.1.0 backcall-0.1.0 decorator-4.4.2 ipython-7.13.0 ipython-genutils-0.2.0 jedi-0.17.0 parso-0.7.0 pexpect-4.8.0 pickleshare-0.7.5 prompt-toolkit-3.0.5 ptyprocess-0.6.0 pygments-2.6.1 traitlets-4.3.3 wcwidth-0.1.9
(offline_rl) ➜ Developer ipython
import gyPython 3.6.9 |Anaconda, Inc.| (default, Jul 30 2019, 13:42:17)
Type 'copyright', 'credits' or 'license' for more information
IPython 7.13.0 -- An enhanced Interactive Python. Type '?' for help.
In [1]: import gym
In [2]: import offline_rl
objc[13133]: Class GLFWApplicationDelegate is implemented in both /Users/alpha/.mujoco/mujoco200/bin/libglfw.3.dylib (0x10a9d6778) and /usr/local/Caskroom/miniconda/base/envs/offline_rl/lib/python3.6/site-packages/glfw/libglfw.3.dylib (0x10ab166e8). One of the two will be used. Which one is undefined.
objc[13133]: Class GLFWWindowDelegate is implemented in both /Users/alpha/.mujoco/mujoco200/bin/libglfw.3.dylib (0x10a9d6700) and /usr/local/Caskroom/miniconda/base/envs/offline_rl/lib/python3.6/site-packages/glfw/libglfw.3.dylib (0x10ab16710). One of the two will be used. Which one is undefined.
objc[13133]: Class GLFWContentView is implemented in both /Users/alpha/.mujoco/mujoco200/bin/libglfw.3.dylib (0x10a9d67a0) and /usr/local/Caskroom/miniconda/base/envs/offline_rl/lib/python3.6/site-packages/glfw/libglfw.3.dylib (0x10ab16760). One of the two will be used. Which one is undefined.
objc[13133]: Class GLFWWindow is implemented in both /Users/alpha/.mujoco/mujoco200/bin/libglfw.3.dylib (0x10a9d6818) and /usr/local/Caskroom/miniconda/base/envs/offline_rl/lib/python3.6/site-packages/glfw/libglfw.3.dylib (0x10ab167d8). One of the two will be used. Which one is undefined.
---------------------------------------------------------------------------
ModuleNotFoundError Traceback (most recent call last)
<ipython-input-3-ac190704bf6b> in <module>
----> 1 import offline_rl
/usr/local/Caskroom/miniconda/base/envs/offline_rl/lib/python3.6/site-packages/offline_rl/__init__.py in <module>
1 import offline_rl.locomotion
----> 2 import offline_rl.hand_manipulation_suite
3 import offline_rl.pointmaze
4 import offline_rl.gym_minigrid
5 import offline_rl.gym_mujoco
/usr/local/Caskroom/miniconda/base/envs/offline_rl/lib/python3.6/site-packages/offline_rl/hand_manipulation_suite/__init__.py in <module>
2 from mjrl.envs.mujoco_env import MujocoEnv
3 from offline_rl.hand_manipulation_suite.door_v0 import DoorEnvV0
----> 4 from offline_rl.hand_manipulation_suite.hammer_v0 import HammerEnvV0
5 from offline_rl.hand_manipulation_suite.pen_v0 import PenEnvV0
6 from offline_rl.hand_manipulation_suite.relocate_v0 import RelocateEnvV0
/usr/local/Caskroom/miniconda/base/envs/offline_rl/lib/python3.6/site-packages/offline_rl/hand_manipulation_suite/hammer_v0.py in <module>
4 from mjrl.envs import mujoco_env
5 from mujoco_py import MjViewer
----> 6 from ..utils.quatmath import quat2euler
7 from .. import offline_env
8 import os
ModuleNotFoundError: No module named 'offline_rl.utils'
This problem goes away when the repo is cloned locally and installed via pip install -e.
I suggest you replace the relative imports with absolute ones and this will be resolved!
Due to the relative imports (example) when the package is not cloned and pip install locally, the package cannot be imported:
This problem goes away when the repo is cloned locally and installed via
pip install -e
.I suggest you replace the relative imports with absolute ones and this will be resolved!