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.

No OpenGL rendering backend

See original GitHub issue

I am having the following trouble even though the requirement for installing dm_control is met.

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/ais/gobi5/movie4d/conda_install/anaconda2/lib/python2.7/site-packages/dm_control/suite/__init__.py", line 110, in load
    visualize_reward)
  File "/ais/gobi5/movie4d/conda_install/anaconda2/lib/python2.7/site-packages/dm_control/suite/__init__.py", line 140, in build_environment
    env = domain.SUITE[task_name](**task_kwargs)
  File "/ais/gobi5/movie4d/conda_install/anaconda2/lib/python2.7/site-packages/dm_control/suite/cartpole.py", line 66, in swingup
    physics = Physics.from_xml_string(*get_model_and_assets())
  File "/ais/gobi5/movie4d/conda_install/anaconda2/lib/python2.7/site-packages/dm_control/mujoco/engine.py", line 344, in from_xml_string
    return cls.from_model(model)
  File "/ais/gobi5/movie4d/conda_install/anaconda2/lib/python2.7/site-packages/dm_control/mujoco/engine.py", line 327, in from_model
    return cls(data)
  File "/ais/gobi5/movie4d/conda_install/anaconda2/lib/python2.7/site-packages/dm_control/mujoco/engine.py", line 120, in __init__
    self._reload_from_data(data)
  File "/ais/gobi5/movie4d/conda_install/anaconda2/lib/python2.7/site-packages/dm_control/mujoco/engine.py", line 306, in _reload_from_data
    render_context = render.Renderer(_MAX_WIDTH, _MAX_HEIGHT)
  File "/ais/gobi5/movie4d/conda_install/anaconda2/lib/python2.7/site-packages/dm_control/render/__init__.py", line 51, in Renderer
    raise ImportError('No OpenGL rendering backend could be imported.')
ImportError: No OpenGL rendering backend could be imported.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:15

github_iconTop GitHub Comments

1reaction
alimuldalcommented, Jan 23, 2018

That error suggests that you’re running on a machine without an X display. GLFW requires X11, so it can’t be used on headless servers. We’re working on adding support for other OpenGL backends that support headless rendering.

0reactions
GoingMyWaycommented, May 13, 2019

@ruifengma

On macos, maybe you should brew install glfw3.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Backend Rendering Options is not available In KDE Manjaro ...
In my Compositor settings i am unable to find backend renderer option. I want to use openGL to make windows blur by using...
Read more >
[SOLVED] Option to change OpenGL version is missing in ...
[SOLVED] Option to change OpenGL version is missing in KDE settings ... How can I check and change the rendering backend? OpenGL version...
Read more >
Which rendering backend do you guys recommend? : r/kde
In Settings -> Display and Monitor -> Compositor, there is a drop down menu for "rendering backend." You have 3 options to choose...
Read more >
Failed to construct OpenGL rendering backend
Failed to construct OpenGL rendering backend. Ive , already tried installing DirectX9.0c ... Mar 22 19:22:20.839: vmx| Host: SRAT tables not found in...
Read more >
Rendering backend for GTK - Platform - GNOME Discourse
It seems very odd that Cairo is no longer the preferred primitive renderer. Even more odd if GTK is now using OpenGL and...
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