Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

glfw error #54

Open
wuyanzhang opened this issue Jun 26, 2023 · 6 comments
Open

glfw error #54

wuyanzhang opened this issue Jun 26, 2023 · 6 comments

Comments

@wuyanzhang
Copy link

/home/dell/anaconda3/envs/DragGAN/lib/python3.8/site-packages/glfw/init.py:834: GLFWError: (65544) b'X11: Failed to open display '
warnings.warn(message, GLFWError)
/home/dell/anaconda3/envs/DragGAN/lib/python3.8/site-packages/glfw/init.py:834: GLFWError: (65537) b'The GLFW library is not initialized'
warnings.warn(message, GLFWError)
python: /builds/florianrhiem/pyGLFW/glfw-3.3.4/src/input.c:832: glfwSetKeyCallback: Assertion `window != ((void *)0)' failed.
Aborted (core dumped)

@quanjunjie531
Copy link

这个错误我也遇到过,用webshell 去启动 gui会报这个错,如果用ssh工具连接在启动gui就能正常启动。有没有可能是你用的ssh工具不支持窗口?

@wuyanzhang
Copy link
Author

这个错误我也遇到过,用webshell 去启动 gui会报这个错,如果用ssh工具连接在启动gui就能正常启动。有没有可能是你用的ssh工具不支持窗口?

谢谢 我换了个ssh工具 用ubuntu系统自带的终端成功启动了

@darthzulder
Copy link

I have the same problem, I have installed the cuda env in WSL in Windows 11, help please

/home/administrador/anaconda3/envs/stylegan3/lib/python3.9/site-packages/torchvision/io/image.py:13: UserWarning: Failed to load image Python extension: 'libc10_cuda.so: cannot open shared object file: No such file or directory'If you don't plan on using image functionality from torchvision.io, you can ignore this warning. Otherwise, there might be something wrong with your environment. Did you have libjpeg or libpng installed before building torchvision from source?
warn(
/home/administrador/anaconda3/envs/stylegan3/lib/python3.9/site-packages/glfw/init.py:916: GLFWError: (65544) b'X11: The DISPLAY environment variable is missing'
warnings.warn(message, GLFWError)
/home/administrador/anaconda3/envs/stylegan3/lib/python3.9/site-packages/glfw/init.py:916: GLFWError: (65537) b'The GLFW library is not initialized'
warnings.warn(message, GLFWError)
python: /builds/florianrhiem/pyGLFW/glfw-3.3.8/src/input.c:855: glfwSetKeyCallback: Assertion `window != ((void *)0)' failed.
Aborted

@darthzulder
Copy link

I have the same problem, I have installed the cuda env in WSL in Windows 11, help please

/home/administrador/anaconda3/envs/stylegan3/lib/python3.9/site-packages/torchvision/io/image.py:13: UserWarning: Failed to load image Python extension: 'libc10_cuda.so: cannot open shared object file: No such file or directory'If you don't plan on using image functionality from torchvision.io, you can ignore this warning. Otherwise, there might be something wrong with your environment. Did you have libjpeg or libpng installed before building torchvision from source? warn( /home/administrador/anaconda3/envs/stylegan3/lib/python3.9/site-packages/glfw/init.py:916: GLFWError: (65544) b'X11: The DISPLAY environment variable is missing' warnings.warn(message, GLFWError) /home/administrador/anaconda3/envs/stylegan3/lib/python3.9/site-packages/glfw/init.py:916: GLFWError: (65537) b'The GLFW library is not initialized' warnings.warn(message, GLFWError) python: /builds/florianrhiem/pyGLFW/glfw-3.3.8/src/input.c:855: glfwSetKeyCallback: Assertion `window != ((void *)0)' failed. Aborted

my solution was install cuda manually in WSL2 with the first part of the tutorial:
https://www.youtube.com/watch?v=1HzYU2_t3yc

@xuboot
Copy link

xuboot commented Jul 3, 2023

@wuyanzhang 我在linux服务器里跑也遇到这个问题,具体怎么解决啊,/home/dell/anaconda3/envs/DragGAN/lib/python3.8/site-packages/glfw/ init .py:834: GLFWError: (65544) b'X11: 无法打开显示 '
warnings.warn(message, GLFWError )
/home/dell/anaconda3/envs/DragGAN/lib/python3.8/site-packages/glfw/ init .py:834: GLFWError: (65537) b'GLFW 库未初始化'
warnings.warn(message, GLFWError)
python: /builds/florianrhiem/pyGLFW/glfw-3.3.4/src/input.c:832: glfwSetKeyCallback: 断言 `window != ((void *)0)' 失败。
中止(核心转储)

@lalitbhagat7
Copy link

/home/dell/anaconda3/envs/DragGAN/lib/python3.8/site-packages/glfw/init.py:834: GLFWError: (65544) b'X11: Failed to open display ' warnings.warn(message, GLFWError) /home/dell/anaconda3/envs/DragGAN/lib/python3.8/site-packages/glfw/init.py:834: GLFWError: (65537) b'The GLFW library is not initialized' warnings.warn(message, GLFWError) python: /builds/florianrhiem/pyGLFW/glfw-3.3.4/src/input.c:832: glfwSetKeyCallback: Assertion `window != ((void *)0)' failed. Aborted (core dumped)

I also encountered this problem when running in a linux server, how to solve it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants