Open ghost opened 5 years ago
Have you checked your OpenGL version? It seems like the pyopengl only supports OpenGL version v1.1 to 4.4 (refer to here), although based on your Cuda version, that should not be the problem
Have you checked your OpenGL version? It seems like the pyopengl only supports OpenGL version v1.1 to 4.4 (refer to here), although based on your Cuda version, that should not be the problem
Thanks for your answer! Just checked, and it seems my OpenGL is too recent? OpenGL version string: 4.6.0 NVIDIA 390.116
Should I downgrade my OpenGL?
Have you checked your OpenGL version? It seems like the pyopengl only supports OpenGL version v1.1 to 4.4 (refer to here), although based on your Cuda version, that should not be the problem
Thanks for your answer! Just checked, and it seems my OpenGL is too recent? OpenGL version string: 4.6.0 NVIDIA 390.116
Should I downgrade my OpenGL?
Thank you for the version string. I thought the Nvidia driver version and OpenGL version are connected. That is only a guess based on what I have searched. I haven't tried that yet because I was worrying about reinstalling not only OpenGL, but also Nvidia driver and Cuda. Now, it seems like it is only needed to downgrade the OpenGL version.
BTW: Have you encountered with other programs which use OpenGL under current settings?
Have you checked your OpenGL version? It seems like the pyopengl only supports OpenGL version v1.1 to 4.4 (refer to here), although based on your Cuda version, that should not be the problem
Thanks for your answer! Just checked, and it seems my OpenGL is too recent? OpenGL version string: 4.6.0 NVIDIA 390.116 Should I downgrade my OpenGL?
Thank you for the version string. I thought the Nvidia driver version and OpenGL version are connected. That is only a guess based on what I have searched. I haven't tried that yet because I was worrying about reinstalling not only OpenGL, but also Nvidia driver and Cuda. Now, it seems like it is only needed to downgrade the OpenGL version.
BTW: Have you encountered with other programs which use OpenGL under current settings?
thanks again for the time :) No i've never seen OpenGL give any problem. This is still weird that when I'm using gym (that uses mujoco) I don't have any problem (see above pic), and this only happens when using the MjSim from mujoco_py.
By the way, I did not have the pyopengl package but it didn't seem to be a problem before, it doesn't look like mujoco_py was depending on it.
If I can dowgrade the OpenGL version without changing the drivers that would be perfect, i'll try that and keep you updated on that.
@PierreAlexSW any update on this?
Describe the bug When I try mujoco_py's MjSim and try to render the simulator, I get the classic "ERROR: GLEW initalization error: Missing GL version" error which has been raised by many people, however I failed to find a solution that worked out for me. This is even stranger considering that my gym environments using mujoco work completely fine (see following picture).
EDIT (comment on nvidia drivers) As you can see on my .bashrc config, I don't have any path to nvidia drivers. I don't see any nvidia drivers being installed in my /usr/lib folder (however, I have a /usr/src/nvidia-390.116 folder with the different patches from the installation?). It doesn't seem to be a problem because I can still run gym's robotic envs and run all my experiment on my GPU.
Here is the easiest code to reproduce the error I get. To Reproduce import mujoco_py import os mjpath, = mujoco_py.utils.discover_mujoco() print(mj_path) xml_path = os.path.join(mj_path, 'model', 'humanoid.xml') model = mujoco_py.load_model_from_path(xml_path) sim = mujoco_py.MjSim(model) print(sim.data.qpos) sim.step() print(sim.data.qpos) sim.render()
Error Messages /home/usernmame/.mujoco/mujoco200 [0. 0. 1.4 1. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0. 0.
Desktop (please complete the following information):
export PATH=$PATH:/usr/local/cuda-9.0/bin export LD_LIBRARY_PATH=/home/username/.mujoco/mujoco200/bin export LD_LIBRARY_PATH=/usr/local/cuda-9.0/lib64:$LD_LIBRARY_PATH export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libGLEW.so:/usr/lib/x86_64-linux-gnu/libGL.so export MUJOCO_LICENSE_PATH=$HOME/.mujoco/mjkey.txt
Additional context I also tried using the 150 version of Mujoco paired with 1.50 version of mujoco_py but this lead to exactly the same problem. Thanks for your help!! Let me know if I missed anything worth mentioning to debug this.