VIBE icon indicating copy to clipboard operation
VIBE copied to clipboard

[BUG]ImportError: ('Unable to load EGL library', 'dlopen(EGL, 10): image not found', 'EGL', None)

Open jiandandian2 opened this issue 3 years ago • 5 comments

Dear doctor:

  1. my operating system and the version: OSX mojave
  2. python 3.7
  3. no gpu

After i install packeage needed, i run the expamle code: python demo.py --vid_file sample_video.mp4 --output_folder output/ --display Mistake as follow:

Traceback (most recent call last): File "/Users/wanghao/Desktop/VIBE-master/vibe-env/lib/python3.7/site-packages/OpenGL/platform/egl.py", line 70, in EGL mode=ctypes.RTLD_GLOBAL File "/Users/wanghao/Desktop/VIBE-master/vibe-env/lib/python3.7/site-packages/OpenGL/platform/ctypesloader.py", line 45, in loadLibrary return dllType( name, mode ) File "/usr/local/Cellar/python/3.7.5/Frameworks/Python.framework/Versions/3.7/lib/python3.7/ctypes/init.py", line 364, in init self._handle = _dlopen(self._name, mode) OSError: ('dlopen(EGL, 10): image not found', 'EGL', None)

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "demo.py", line 33, in from lib.utils.renderer import Renderer File "/Users/wanghao/Desktop/VIBE-master/lib/utils/renderer.py", line 19, in import pyrender File "/Users/wanghao/Desktop/VIBE-master/vibe-env/lib/python3.7/site-packages/pyrender/init.py", line 3, in from .light import Light, PointLight, DirectionalLight, SpotLight File "/Users/wanghao/Desktop/VIBE-master/vibe-env/lib/python3.7/site-packages/pyrender/light.py", line 11, in from .texture import Texture File "/Users/wanghao/Desktop/VIBE-master/vibe-env/lib/python3.7/site-packages/pyrender/texture.py", line 8, in from OpenGL.GL import * File "/Users/wanghao/Desktop/VIBE-master/vibe-env/lib/python3.7/site-packages/OpenGL/GL/init.py", line 3, in from OpenGL import error as _error File "/Users/wanghao/Desktop/VIBE-master/vibe-env/lib/python3.7/site-packages/OpenGL/error.py", line 12, in from OpenGL import platform, _configflags File "/Users/wanghao/Desktop/VIBE-master/vibe-env/lib/python3.7/site-packages/OpenGL/platform/init.py", line 35, in _load() File "/Users/wanghao/Desktop/VIBE-master/vibe-env/lib/python3.7/site-packages/OpenGL/platform/init.py", line 32, in _load plugin.install(globals()) File "/Users/wanghao/Desktop/VIBE-master/vibe-env/lib/python3.7/site-packages/OpenGL/platform/baseplatform.py", line 92, in install namespace[ name ] = getattr(self,name,None) File "/Users/wanghao/Desktop/VIBE-master/vibe-env/lib/python3.7/site-packages/OpenGL/platform/baseplatform.py", line 14, in get value = self.fget( obj ) File "/Users/wanghao/Desktop/VIBE-master/vibe-env/lib/python3.7/site-packages/OpenGL/platform/egl.py", line 93, in GetCurrentContext return self.EGL.eglGetCurrentContext File "/Users/wanghao/Desktop/VIBE-master/vibe-env/lib/python3.7/site-packages/OpenGL/platform/baseplatform.py", line 14, in get value = self.fget( obj ) File "/Users/wanghao/Desktop/VIBE-master/vibe-env/lib/python3.7/site-packages/OpenGL/platform/egl.py", line 73, in EGL raise ImportError("Unable to load EGL library", *err.args) ImportError: ('Unable to load EGL library', 'dlopen(EGL, 10): image not found', 'EGL', None)

jiandandian2 avatar Jul 09 '20 03:07 jiandandian2

Same problem

NuochengTian avatar Jul 29 '20 12:07 NuochengTian

Hi @jiandandian2,

We did not test our code on MacOS, so it is a bit difficult to figure out the problem. Windows users had a similar problem and a solution is proposed here: https://github.com/mkocabas/VIBE/issues/101#issuecomment-664180216. You may give it a try.

mkocabas avatar Jul 31 '20 09:07 mkocabas

Same problem Mistake as follow: File "src/errorchecker.pyx", line 58, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError

lauu-nu avatar Aug 05 '20 02:08 lauu-nu

@lauu-nu Did you solve it?

hiyyg avatar Dec 09 '20 05:12 hiyyg

I have the same problem with my MacOS. @mkocabas, which platform did you test your code on? Is there a virtual machine version that we can use? Thanks!

alca4 avatar Jul 23 '23 15:07 alca4