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

How do we solve this error on Apple Silicon? #93

Closed
matte-esse opened this issue Dec 16, 2021 · 5 comments
Closed

How do we solve this error on Apple Silicon? #93

matte-esse opened this issue Dec 16, 2021 · 5 comments
Labels
offtopic This issue isn't about MuJoCo

Comments

@matte-esse
Copy link

You appear to be missing MuJoCo.  We expected to find the file here: /Users/matteosacco/.mujoco/mujoco210

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

Essentially, How do we install on apple silicon?

@wookayin
Copy link

wookayin commented Dec 16, 2021

It needs a non-trivial update to support the new binary (specifically installation path, changed module name, etc.). Please refer to #2 (comment)

@saran-t saran-t added the offtopic This issue isn't about MuJoCo label Dec 16, 2021
@saran-t
Copy link
Member

saran-t commented Dec 16, 2021

This issue is about mujoco-py, which isn't a project that we own or maintain. Having said that, since MuJoCo 2.1.1 doesn't change any public API compared to 2.1.0 we expect existing bindings to continue to work modulo changes in file names and location.

For dm_control, we will very shortly be pushing a small change that fixes the load path for MuJoCo and provide updated installation instructions. For mujoco-py, if the maintainers would like to update their code we'd be more than happy to work with them on it. In the meantime, I suggest that you mount the DMG for 2.1.1 then try the following:

mkdir -p ~/.mujoco/mujoco210/bin
cp /Volumes/MuJoCo/MuJoCo.framework/Versions/Current/libmujoco.2.1.1.dylib ~/.mujoco/mujoco210/bin/libmujoco210.dylib
cp -r /Volumes/MuJoCo/MuJoCo.framework/Versions/Current/Headers ~/.mujoco/mujoco210/include

Let us know if you get anywhere with this!

@wookayin
Copy link

@saran-t I appreciate your efforts on the new MuJoCo release. I tried a similar workaround like yours, but it appears that a bit more steps are required in addition to that in order to make mujoco-py work. In short, glfw needs to be installed separately and the mujoco library needs to be put some lib directory that can be recognized (like /usr/local/lib).

@matte-esse Since this is about mujoco-py rather than mujoco itself, I wrote how I did in their repository rather than here. Here's the link: openai/mujoco-py#662 (comment)

@saran-t
Copy link
Member

saran-t commented Dec 16, 2021

This is our proposed installation scheme for dm_control: google-deepmind/dm_control@84fc2fa

Note that this is likely a somewhat temporary solution while we work out proper installation setup (we're considering msi for Windows, deb/rpm for Linux, and possibly pkg for macOS).

@saran-t
Copy link
Member

saran-t commented Dec 16, 2021

Let's close this issue and merge discussions into #2.

@saran-t saran-t closed this as completed Dec 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
offtopic This issue isn't about MuJoCo
Projects
None yet
Development

No branches or pull requests

3 participants