Skip to content

Raspberry pi 5: cannot create a glfw window (GLXBadFBConfig) => use OpenGL 3.1 instead of OpenGL 3.3 #355

@Emilio1485

Description

@Emilio1485

Hello everyone, I'm trying to use Imgui_bundle with glfw in a raspberry pi 5 with Python that has OpenGL ES 3.1
So I used this code:

from imgui_bundle import hello_imgui, imgui, glfw_utils
import glfw


def gui():
    imgui.text("Hello")
    if imgui.button("maximize window"):
        win = glfw_utils.glfw_window_hello_imgui()  # get the main glfw window used by HelloImGui
        glfw.maximize_window(win)


glfw.init()  # needed by glfw_utils.glfw_window_hello_imgui
hello_imgui.run(gui)

But I had this error:

Glfw Error 65543: GLX: Failed to create context: GLXBadFBConfig
Traceback (most recent call last):
  File "/home/maul7456/Documents/prueba.py", line 18, in <module>
    hello_imgui.run(gui)
  File "/home/maul7456/.local/lib/python3.11/site-packages/imgui_bundle/_patch_runners_add_save_screenshot_param.py", line 38, in patched_run
    run_backup(*args, **kwargs)
RuntimeError: IM_ASSERT( false && "Failed to create temporary window." )   ---   opengl_setup_glfw.cpp:26

Metadata

Metadata

Assignees

No one assigned

    Labels

    faqA frequent issue, remaining opened to facilitate discoverability

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions