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

OpenGL.error.Error: Attempt to retrieve context when no valid context #26

@hail-mary

Description

@hail-mary

Hi, thanks for sharing the amazing repository!
I installed from source on WSL2 Ubuntu 24.04. The installation completed without any problem. However, when I ran

 python examples/piano_with_shadow_hands_env.py

got this error.

OpenGL.error.Error: Attempt to retrieve context when no valid context

I found os.environ['PYOPENGL_PLATFORM'] = 'egl' could help, but in my case did not work.
Is there any other solution?

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