Fail to render GUI when using mujoco-py

Discussion in 'Bug Reports' started by Kaichen, Jul 26, 2019.

  1. Hello,

    Thank you so much for reading this post!

    I am running mujoco200 on Ubuntu 18.04 and my python version is 3.7.3.

    I have already successfully opened the mujoco GUI using 'simulate' in the terminal. However, when I want to render an environment in a python file with mujoco-py, it will show there is no reply and keep loading all the time

    Does anyone know the reason for this problem? I would be very appreciated!
     
  2. Thanks to bjnortier's comment, I have successfully solved this question.

    My problem is when I render a environment using mujoco-py on Ubuntu, it will show GLEW initialization error: Missing GL version.

    And the solution provided by bjnortier is to add:
    export LD_PRELOAD=/usr/lib/x86_64-linux-gnu/libGLEW.so
    in the bashrc file.

    The detail could be found in https://github.com/openai/mujoco-py/issues/44