On Wayland-based platforms (i.e. very new Linux systems), setting SDL_VIDEODRIVER=x11 may be needed for the SDL example; the equivalent for the GLUT example is PYOPENGL_PLATFORM=glx.