Closed LvJC closed 1 year ago
Hello @LvJC, GLFW seems to want to use X11, but the DISPLAY environment variable is missing. That could have many causes, e.g. you might be using Wayland instead of X11, in that case see this note or you might be in a headless system, etc. Also, is there any relation between the issue subject and the issue content?
Just for reference, the error is raised here in case XOpenDisplay
fails and the DISPLAY
variable is not set.
If you are not sure whether you are using X11 or Wayland, please try using the Wayland version of GLFW (e.g. by setting the PYGLFW_LIBRARY_VARIANT
environment variable to wayland
).
Hello @LvJC, GLFW seems to want to use X11, but the DISPLAY environment variable is missing. That could have many causes, e.g. you might be using Wayland instead of X11, in that case see this note or you might be in a headless system, etc. Also, is there any relation between the issue subject and the issue content?
Sorry, my bad. I pasted it wrongly. I updated the description now.
That error is likely caused by this code in GLFW. I don't think this is related to this Python wrapper.
Try to run the example code. And got issue
Here's my
pyproject.toml
: