stable-diffusion-webui-depthmap-script icon indicating copy to clipboard operation
stable-diffusion-webui-depthmap-script copied to clipboard

Could not import backend "EGL": EGL library not found

Open calvinsunx opened this issue 2 years ago • 17 comments

can you help me!! i can't produce video

calvinsunx avatar Jul 18 '23 13:07 calvinsunx

Could not import backend "EGL": EGL library not found

calvinsunx avatar Jul 18 '23 13:07 calvinsunx

@calvinsunx Please provide details about your system. Do you use Windows, Linux or MacOS? Please provide the full console output.

semjonsona avatar Jul 18 '23 18:07 semjonsona

ubuntu : RuntimeError: Could not import backend "EGL": Could not initialize

NewTurn2017 avatar Jul 20 '23 08:07 NewTurn2017

Please provide the output from the terminal.

semjonsona avatar Jul 20 '23 10:07 semjonsona

Please type this into the terminal: sudo apt-get install libgles2-mesa-dev libegl1-mesa-dev. Does this solve the issue?

semjonsona avatar Jul 20 '23 10:07 semjonsona

*** 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>

NewTurn2017 avatar Jul 20 '23 11:07 NewTurn2017

Thank you. Does this also occur after you installed the needed packages? sudo apt-get install libgles2-mesa-dev libegl1-mesa-dev

semjonsona avatar Jul 20 '23 11:07 semjonsona

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>

NewTurn2017 avatar Jul 20 '23 14:07 NewTurn2017

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

greatwolf avatar Aug 09 '23 11:08 greatwolf

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. 😞

old90 avatar Aug 26 '23 21:08 old90

Any solutions for this ?

MohamedAliRashad avatar Oct 05 '23 22:10 MohamedAliRashad

apt-get install libgles2-mesa-dev libegl1-mesa-dev

is this resolved?

andysingal avatar Oct 17 '23 04:10 andysingal

*** 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?

994020919 avatar Oct 18 '23 05:10 994020919

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

jaggzh avatar Oct 23 '23 05:10 jaggzh

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.

jaggzh avatar Oct 23 '23 06:10 jaggzh

ubuntu

I'm on ubuntu as well, did you finally fix it?

994020919 avatar Oct 24 '23 02:10 994020919

Same problen on Runpod. EGL library not found Is there any solution?

ItsCrea avatar Feb 13 '24 12:02 ItsCrea