Headless rendering on ubuntu machine
See original GitHub issueI’m trying to get visual observations from a headless Ubuntu machine with MUJOCO_GL=egl
, and got the following error report:
AttributeError: 'GLXPlatform' object has no attribute 'EGL'
The same code can run on a desktop ubuntu with monitor without error report. It seems like this is related with the pyopengl package but I’m not sure how to solve this.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7
Top Results From Across the Web
Headless rendering — Open3D 0.12.0 documentation
This tutorial explains how to render and save images from a terminal without any display device. This feature is experimental; it was only...
Read more >Ignition Gazebo: Headless Rendering
This example will guide you through the process of launching and configuring an AWS GPU instance with Gazebo running headless. A GPU instance...
Read more >Headless on Ubuntu 18 Server - ModernGL - Read the Docs
Headless rendering can be achieved with EGL or X11. We'll cover both cases. Starting with fresh ubuntu 18 server install we need to...
Read more >Headless rendering on remote Ubuntu server results in blank ...
If I try and render this .blend on my Windows machine, using this command, I get the correct output: .\blender.exe -b testrender.blend -f...
Read more >Headless Rendering
Even for headless OpenGL, I realized I had to run an X server – I just didn't need a desktop. Here's how I...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Solved. Solution: install PyOpenGL 3.1.4 and PyOpenGL_accelerate 3.1.4 and export MUJOCO_GL=osmesa and export PYOPENGL_PLATFORM=osmesa
You shouldn’t need to set
PYOPENGL_PLATFORM
explicitly - this environment variable gets set automatically when either of the OSMesa or EGL rendering backends is imported (e.g. see here).