openai / mujoco-py

MuJoCo is a physics engine for detailed, efficient rigid body simulations with contacts. mujoco-py allows using MuJoCo from Python 3.
Other
2.81k stars 810 forks source link

Unable to load OpenGL library in MacOS for mjpro131 #726

Closed ShayekhBinIslam closed 2 years ago

ShayekhBinIslam commented 2 years ago

Describe the bug Unable to load OpenGL library in MacOS for mjpro131.

environments.mujoco.rand_param_envs.gym.error.DependencyNotInstalled: ('Unable to load OpenGL library', "dlopen(OpenGL, 0x000A): tried: '/opt/concourse/worker/volumes/live/b1ca6fea-a590-49e0-4b7e-accc1b16942a/volume/python_1614113036400/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/OpenGL' (no such file), '/opt/concourse/worker/volumes/live/b1ca6fea-a590-49e0-4b7e-accc1b16942a/volume/python_1614113036400/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/OpenGL' (no such file), '/Users/mobileapps1/opt/anaconda3/envs/corro/lib/python3.6/lib-dynload/../../OpenGL' (no such file), '/opt/concourse/worker/volumes/live/b1ca6fea-a590-49e0-4b7e-accc1b16942a/volume/python_1614113036400/_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehol/lib/OpenGL' (no such file), '/Users/mobileapps1/opt/anaconda3/envs/corro/bin/../lib/OpenGL' (no such file), 'OpenGL' (no such file), '/usr/local/lib/OpenGL' (not a file), '/usr/lib/OpenGL' (no such file), '/Users/mobileapps1/rlproj/OpenGL' (no such file)", 'OpenGL', None). (HINT: you need to install mujoco_py, and also perform the setup instructions here: https://github.com/openai/mujoco-py/.)

Expected behavior Clean run.

ShayekhBinIslam commented 2 years ago

https://stackoverflow.com/a/66520144/10782159