Skip to content
This repository was archived by the owner on May 29, 2026. It is now read-only.

FatalError: OpenGL version 1.5 or higher required #814

Open

Description

@kikato2022

import mujoco
model = mujoco.MjModel.from_xml_string("")
renderer = mujoco.Renderer(model, width=640, height=480)
renderer.render()


FatalError Traceback (most recent call last)
Cell In[16], line 3
1 import mujoco
2 model = mujoco.MjModel.from_xml_string("")
----> 3 renderer = mujoco.Renderer(model, width=640, height=480)
4 renderer.render() # 若无报错则成功

File ~/miniconda3/envs/myenv/lib/python3.12/site-packages/mujoco/renderer.py:87, in Renderer.init(self, model, height, width, max_geom)
85 if self._gl_context:
86 self._gl_context.make_current()
---> 87 self._mjr_context = _render.MjrContext(
88 model, _enums.mjtFontScale.mjFONTSCALE_150.value
89 )
90 _render.mjr_setBuffer(
91 _enums.mjtFramebuffer.mjFB_OFFSCREEN.value, self._mjr_context
92 )
93 self._mjr_context.readDepthMap = _enums.mjtDepthMap.mjDEPTH_ZEROFAR

FatalError: OpenGL version 1.5 or higher required

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions