google-deepmind / dm_control

Google DeepMind's software stack for physics-based simulation and Reinforcement Learning environments, using MuJoCo.
Apache License 2.0
3.8k stars 668 forks source link

CentOS7 Cannot initialize a headless EGL display. #304

Open 945716994 opened 2 years ago

945716994 commented 2 years ago

File "src/train.py", line 14, in from env import make_env File "/home/wjg/code/src/env.py", line 5, in from dm_control import suite File "/home/wjg/anaconda3/envs/tdmpc/lib/python3.8/site-packages/dm_control/suite/init.py", line 24, in from dm_control.suite import acrobot File "/home/wjg/anaconda3/envs/tdmpc/lib/python3.8/site-packages/dm_control/suite/acrobot.py", line 20, in from dm_control import mujoco File "/home/wjg/anaconda3/envs/tdmpc/lib/python3.8/site-packages/dm_control/mujoco/init.py", line 18, in from dm_control.mujoco.engine import action_spec File "/home/wjg/anaconda3/envs/tdmpc/lib/python3.8/site-packages/dm_control/mujoco/engine.py", line 41, in from dm_control import _render File "/home/wjg/anaconda3/envs/tdmpc/lib/python3.8/site-packages/dm_control/_render/init.py", line 67, in Renderer = import_func() # pylint: disable=invalid-name File "/home/wjg/anaconda3/envs/tdmpc/lib/python3.8/site-packages/dm_control/_render/init.py", line 36, in _import_egl from dm_control._render.pyopengl.egl_renderer import EGLContext File "/home/wjg/anaconda3/envs/tdmpc/lib/python3.8/site-packages/dm_control/_render/pyopengl/egl_renderer.py", line 75, in raise ImportError('Cannot initialize a headless EGL display.') ImportError: Cannot initialize a headless EGL display.

Is this due to the system?

945716994 commented 2 years ago

I got it!

945716994 commented 2 years ago

I can set the os.environ['MUJOCO_GL'] = 'glfw' ,but it's so slowly. Did there have other method to acclerate ?

saran-t commented 2 years ago

Can you tell us what GPU is present on your system?

945716994 commented 2 years ago

Can you tell us what GPU is present on your system?

NVIDIA A100

claudiofantacci commented 2 years ago

Hi @945716994, thanks for reaching out!

NVIDIA A100

Is it a server or workstation grade A100? Also, is it in Multi-Instance GPU (MIG) mode?

945716994 commented 2 years ago

Hi @945716994, thanks for reaching out!

NVIDIA A100

Is it a server or workstation grade A100? Also, is it in Multi-Instance GPU (MIG) mode?

Hi @claudiofantacci ,is a server and not in MIG,we have four A100 on server.

baixianger commented 1 year ago

I have the same problem, I was using my school's service featured with A100. And I found I cannot install the package egl and osmesa needed below.

sudo apt-get install libnvidia-gl-440-server

Because it's an LFS system, I cannot install any packages outside the module loading system.

Do you know how I can tackle this problem? I really appreciate any help you can provide.