Could not import backend "EGL": EGL library not found
can you help me!! i can't produce video
Could not import backend "EGL": EGL library not found
@calvinsunx Please provide details about your system. Do you use Windows, Linux or MacOS? Please provide the full console output.
ubuntu : RuntimeError: Could not import backend "EGL": Could not initialize
Please provide the output from the terminal.
Please type this into the terminal: sudo apt-get install libgles2-mesa-dev libegl1-mesa-dev. Does this solve the issue?
*** Error completing request *** Arguments: ('/home/ubuntu/storage/stable-diffusion-webui/outputs/extras-images/depthmap-0000.obj', '300', '30', 1, '-0.015, 0.0, -0.05', '0.03, 0.03, 0.05, 0.03', False, 'mp4', '3') {} Traceback (most recent call last): File "/home/ubuntu/storage/stable-diffusion-webui/modules/call_queue.py", line 55, in f res = list(func(*args, **kwargs)) File "/home/ubuntu/storage/stable-diffusion-webui/modules/call_queue.py", line 35, in f res = func(*args, **kwargs) File "/home/ubuntu/storage/stable-diffusion-webui/extensions/stable-diffusion-webui-depthmap-script/src/core.py", line 620, in run_makevideo fn_saved = run_3dphoto_videos(fn_mesh, basename, outpath, num_frames, num_fps, crop_border, vid_traj, x_shift_range, File "/home/ubuntu/storage/stable-diffusion-webui/extensions/stable-diffusion-webui-depthmap-script/src/core.py", line 496, in run_3dphoto_videos vispy.use(app='egl') File "/home/ubuntu/storage/stable-diffusion-webui/venv/lib/python3.10/site-packages/vispy/util/wrappers.py", line 93, in use use_app(app) File "/home/ubuntu/storage/stable-diffusion-webui/venv/lib/python3.10/site-packages/vispy/app/_default_app.py", line 47, in use_app default_app = Application(backend_name) File "/home/ubuntu/storage/stable-diffusion-webui/venv/lib/python3.10/site-packages/vispy/app/application.py", line 47, in init self._use(backend_name) File "/home/ubuntu/storage/stable-diffusion-webui/venv/lib/python3.10/site-packages/vispy/app/application.py", line 240, in _use raise RuntimeError(msg) RuntimeError: Could not import backend "EGL": Could not initialize
2023년 7월 20일 (목) 오후 7:23, Semjon Kravtšenko @.***>님이 작성:
Please type this into the terminal: sudo apt-get install libgles2-mesa-dev libegl1-mesa-dev. Does this solve the issue?
— Reply to this email directly, view it on GitHub https://github.com/thygate/stable-diffusion-webui-depthmap-script/issues/288#issuecomment-1643665409, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOV2BGPCVXVAYV54URGQTWLXREBKZANCNFSM6AAAAAA2ONMQEQ . You are receiving this because you commented.Message ID: <thygate/stable-diffusion-webui-depthmap-script/issues/288/1643665409@ github.com>
Thank you. Does this also occur after you installed the needed packages? sudo apt-get install libgles2-mesa-dev libegl1-mesa-dev
Yes, it does!
2023년 7월 20일 (목) 오후 8:57, Semjon Kravtšenko @.***>님이 작성:
Thank you. Does this also occur after you installed the needed packages? sudo apt-get install libgles2-mesa-dev libegl1-mesa-dev
— Reply to this email directly, view it on GitHub https://github.com/thygate/stable-diffusion-webui-depthmap-script/issues/288#issuecomment-1643791519, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOV2BGMI4RHTU7UPML2N7ETXREMJ7ANCNFSM6AAAAAA2ONMQEQ . You are receiving this because you commented.Message ID: <thygate/stable-diffusion-webui-depthmap-script/issues/288/1643791519@ github.com>
I'm getting a similar issue when running this on kaggle using this notebook https://www.kaggle.com/code/qq2575044704/stable-diffusion-webui
Loading mesh ..
*** Error completing request
*** Arguments: ('/kaggle/working/stable-diffusion-webui/outputs/extras-images/depthmap-0002.obj', '300', '30', 2, '-0.015, 0.0, -0.05', '0.03, 0.03, 0.05, 0.03', False, 'mp4', '3') {}
Traceback (most recent call last):
File "/kaggle/working/stable-diffusion-webui/modules/call_queue.py", line 55, in f
res = list(func(*args, **kwargs))
File "/kaggle/working/stable-diffusion-webui/modules/call_queue.py", line 35, in f
res = func(*args, **kwargs)
File "/kaggle/working/stable-diffusion-webui/extensions/stable-diffusion-webui-depthmap-script/src/core.py", line 631, in run_makevideo
fn_saved = run_3dphoto_videos(fn_mesh, basename, outpath, num_frames, num_fps, crop_border, vid_traj, x_shift_range,
File "/kaggle/working/stable-diffusion-webui/extensions/stable-diffusion-webui-depthmap-script/src/core.py", line 507, in run_3dphoto_videos
vispy.use(app='egl')
File "/opt/conda/envs/venv/lib/python3.10/site-packages/vispy/util/wrappers.py", line 93, in use
use_app(app)
File "/opt/conda/envs/venv/lib/python3.10/site-packages/vispy/app/_default_app.py", line 47, in use_app
default_app = Application(backend_name)
File "/opt/conda/envs/venv/lib/python3.10/site-packages/vispy/app/application.py", line 47, in __init__
self._use(backend_name)
File "/opt/conda/envs/venv/lib/python3.10/site-packages/vispy/app/application.py", line 240, in _use
raise RuntimeError(msg)
RuntimeError: Could not import backend "EGL":
Could not create display
Thank you. Does this also occur after you installed the needed packages?
sudo apt-get install libgles2-mesa-dev libegl1-mesa-dev
ubuntu This error is still reported after installation. 😞
Any solutions for this ?
apt-get install libgles2-mesa-dev libegl1-mesa-dev
is this resolved?
*** Arguments: ('/root/autodl-tmp/webui_outputs/extras-images/depthmap-0004.obj', '120', '24', 1, '-0.015, 0.0, -0.05', '0.03, 0.03, 0.05, 0.03', False, 'mp4', '3') {} Traceback (most recent call last): File "/root/stable-diffusion-webui/modules/call_queue.py", line 57, in f res = list(func(*args, **kwargs)) File "/root/stable-diffusion-webui/modules/call_queue.py", line 36, in f res = func(*args, **kwargs) File "/root/stable-diffusion-webui/extensions/stable-diffusion-webui-depthmap-script/src/core.py", line 634, in run_makevideo fn_saved = run_3dphoto_videos(fn_mesh, basename, outpath, num_frames, num_fps, crop_border, vid_traj, x_shift_range, File "/root/stable-diffusion-webui/extensions/stable-diffusion-webui-depthmap-script/src/core.py", line 510, in run_3dphoto_videos vispy.use(app='egl') File "/root/stable-diffusion-webui/venv/lib/python3.10/site-packages/vispy/util/wrappers.py", line 93, in use use_app(app) File "/root/stable-diffusion-webui/venv/lib/python3.10/site-packages/vispy/app/_default_app.py", line 47, in use_app default_app = Application(backend_name) File "/root/stable-diffusion-webui/venv/lib/python3.10/site-packages/vispy/app/application.py", line 47, in init self._use(backend_name) File "/root/stable-diffusion-webui/venv/lib/python3.10/site-packages/vispy/app/application.py", line 240, in _use raise RuntimeError(msg) RuntimeError: Could not import backend "EGL": EGL library not found
I'm having a similar problem, has anyone solved it yet? How was it solved?
I get the error even with the debs installed (I'm in docker):
Loading mesh ..
*** Error completing request
*** Arguments: ('/output/extras/depthmap-0002.obj', '300', '40', 1, '-0.015, 0.0, -0.05', '0.03, 0.03, 0.05, 0.03', False, 'mp4', '3') {}
Traceback (most recent call last):
File "/stable-diffusion-webui/modules/call_queue.py", line 57, in f
res = list(func(*args, **kwargs))
File "/stable-diffusion-webui/modules/call_queue.py", line 36, in f
res = func(*args, **kwargs)
File "/stable-diffusion-webui/extensions/stable-diffusion-webui-depthmap-script/src/core.py", line 634, in run_makevideo
fn_saved = run_3dphoto_videos(fn_mesh, basename, outpath, num_frames, num_fps, crop_border, vid_traj, x_shift_range,
File "/stable-diffusion-webui/extensions/stable-diffusion-webui-depthmap-script/src/core.py", line 510, in run_3dphoto_videos
vispy.use(app='egl')
File "/usr/local/lib/python3.10/site-packages/vispy/util/wrappers.py", line 93, in use
use_app(app)
File "/usr/local/lib/python3.10/site-packages/vispy/app/_default_app.py", line 47, in use_app
default_app = Application(backend_name)
File "/usr/local/lib/python3.10/site-packages/vispy/app/application.py", line 47, in __init__
self._use(backend_name)
File "/usr/local/lib/python3.10/site-packages/vispy/app/application.py", line 240, in _use
raise RuntimeError(msg)
RuntimeError: Could not import backend "EGL":
Could not initialize
Okay, I modified the thing to default to pyqt6 if it detects linux. Now the EGL error doesn't show in the ui (it's just sitting there counting up the time though), and the console's showing other errors. I've not resolved it yet.
WARNING: From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
2023-10-23 05:59:06 WARNING [vispy] From 6.5.0, xcb-cursor0 or libxcb-cursor0 is needed to load the Qt xcb platform plugin.
WARNING: Could not load the Qt platform plugin "xcb" in "" even though it was found.
2023-10-23 05:59:06 WARNING [vispy] Could not load the Qt platform plugin "xcb" in "" even though it was found.
WARNING: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, offscreen, vkkhrdisplay, wayland, vnc, xcb, minimal, linuxfb, wayland-egl, minimalegl.
2023-10-23 05:59:06 WARNING [vispy] This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, offscreen, vkkhrdisplay, wayland, vnc, xcb, minimal, linuxfb, wayland-egl, minimalegl.
ubuntu
I'm on ubuntu as well, did you finally fix it?
Same problen on Runpod. EGL library not found Is there any solution?