dm_control icon indicating copy to clipboard operation
dm_control copied to clipboard

CentOS7 Cannot initialize a headless EGL display.

Open 945716994 opened this issue 2 years ago • 7 comments

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 avatar May 20 '22 09:05 945716994

I got it!

945716994 avatar May 20 '22 09:05 945716994

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

945716994 avatar May 20 '22 15:05 945716994

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

saran-t avatar May 20 '22 15:05 saran-t

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

NVIDIA A100

945716994 avatar May 20 '22 16:05 945716994

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?

claudiofantacci avatar May 20 '22 17:05 claudiofantacci

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.

945716994 avatar May 21 '22 01:05 945716994

Hi, @945716994 I also encountered this problem in ubuntu, how did you solve it later, can you tell me, thank you for your early reply.

Kallin199 avatar Jul 20 '22 08:07 Kallin199

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.

baixianger avatar May 28 '23 09:05 baixianger