-
Notifications
You must be signed in to change notification settings - Fork 814
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
import mujoco throw me an error #495
Comments
Any updates? I have the same issue too |
I also have this issue, has anyone found a solution? |
I think this isn't the best solution, but this worked for me:
This will remove GLFW from mujoco directoy and thus make us to skip the error message. |
I finally noticed this is an unique problem in MacOS. |
@aktivhoon Could you provide more info on your solution? I am facing same the problem. |
What if I use Anaconda and don't want to change my default python to homebrew version? @aktivhoon |
@aktivhoon Besides, your |
Anyway, this is just a warning, not an error. My code can run normally. |
Hi everyone. Unfortunately I don't think there is an easy actual fix for this, since both mujoco and pip will end up with the library. However, you should be able to change mujoco's folder's lib to point to the env you want to use. For example with a symlink to the env's:
Result:
This should be a good workaround, since now both mujoco and python env use the same library. PS: Please note this only allows one symlink to one python environment, so some versioning issues may arise if you use multiple python environments with different glfw pip packages. Thank you. |
I am with macOS Monterey. I have also encountered the issue: I fixed this problem by running: |
Can you describe the operation process in detail?
Can you describe the operation process in detail? |
Describe the bug
To Reproduce
$ pip3 install -U 'mujoco-py<2.1,>=2.0'
$ python3
import mujoco_py
Expected behavior
work
Error Messages
Desktop (please complete the following information):
Additional context
pip3 search GLFW
glfw-toolbox (1.0.1) - GLFW toolbox
glfw-cffi (0.2.0) - Foreign Function Interface wrapper for GLFW v3.x
glfw (1.8.7) - A ctypes-based wrapper for GLFW3.
INSTALLED: 1.8.7 (latest)
pyglfw (0.2.2) - Python bindings for the GLFW library
cyglfw3 (3.1.0.2) - Python bindings for GLFW 3+ using Cython
piety (0.1.0) - A modern curses compatible terminal built using Vulcan and GLFW
The text was updated successfully, but these errors were encountered: