DragGAN
DragGAN copied to clipboard
glfw error
/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)
这个错误我也遇到过,用webshell 去启动 gui会报这个错,如果用ssh工具连接在启动gui就能正常启动。有没有可能是你用的ssh工具不支持窗口?
这个错误我也遇到过,用webshell 去启动 gui会报这个错,如果用ssh工具连接在启动gui就能正常启动。有没有可能是你用的ssh工具不支持窗口?
谢谢 我换了个ssh工具 用ubuntu系统自带的终端成功启动了
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
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 havelibjpeg
orlibpng
installed before buildingtorchvision
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
@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)' 失败。 中止(核心转储)
/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