Open Ishihara-Masabumi opened 1 year ago
~Try not running the command from the root directory~ This is what worked for me
python3 -mvenv dm_control
cd dm_control && source bin/activate && pip install . && pip install pillow && python ./locomotion/soccer/explore.py
I have the same error as @Ishihara-Masabumi as well. Does anyone know how to overcome it? The solution proposed by @metric-space did not work for me.
I also have this problem and haven't found a solution yet
@raymondchua I did a fresh install just now and changed the bash command I put on here earlier (included pillow install and changed the proper url). This was on arch linux and I have it working. Please try with the edited commands
Something to remember is pip install .
activates setup.py
and does a lot more (and including) than just install dependencies via pip install -r requirements.txt
Thanks @metric-space. The error shows up when I try to run the following code:
from dm_control import suite
env = suite.load('cartpole', 'swingup')
pixels = env.physics.render()
Specifically, the import statement is causing the error:
from dm_control import suite
Ok, after some playing and digging around, @metric-space is right. After git clone the repo, we need to pip install .
If I am not wrong, if you make any changes in your local repo, you will need to pip install .
for those changes to be reflected. pip install .
is actually critical as it creates the following files in the mjbindings folder: constants.py, enums.py and sizes.py. With these steps, I am now able to run from dm_control import suite
without any error.
I tried to install this repository as follows:
But, after running the command, the following error occurred.
Please let me know how to avoid it.