question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Headless rendering on ubuntu machine

See original GitHub issue

I’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:closed
  • Created 4 years ago
  • Comments:7

github_iconTop GitHub Comments

4reactions
xinleipancommented, Jan 11, 2020

Solved. Solution: install PyOpenGL 3.1.4 and PyOpenGL_accelerate 3.1.4 and export MUJOCO_GL=osmesa and export PYOPENGL_PLATFORM=osmesa

1reaction
alimuldalcommented, Jan 13, 2020

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).

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found