I2L-MeshNet_RELEASE icon indicating copy to clipboard operation
I2L-MeshNet_RELEASE copied to clipboard

ImportError: ('Unable to load EGL library', 22, 'The specified module could not be found', None, 126, None, 'EGL', None)

Open its-charan-here opened this issue 2 years ago • 2 comments

I am facing this error while running the code. Can someone help me to resolve this issue? I have installed all the libraries according to the requirements file.

ImportError: ('Unable to load EGL library', 22, 'The specified module could not be found', None, 126, None, 'EGL', None)

Terminal :


Traceback (most recent call last):
  File "C:\Users\Vignesh\anaconda3\envs\mesh\lib\site-packages\OpenGL\platform\egl.py", line 70, in EGL
    mode=ctypes.RTLD_GLOBAL
  File "C:\Users\Vignesh\anaconda3\envs\mesh\lib\site-packages\OpenGL\platform\ctypesloader.py", line 45, in loadLibrary
    return dllType( name, mode )
  File "C:\Users\Vignesh\anaconda3\envs\mesh\lib\ctypes\__init__.py", line 364, in __init__
    self._handle = _dlopen(self._name, mode)
OSError: [WinError 126] The specified module could not be found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File ".\detect_3d_vid.py", line 30, in <module>
    from i2l_mesh.demo.demo_yolo_video import mesh_3d
  File "E:\i2l_mesh\demo\demo_yolo_video.py", line 19, in <module>
    from i2l_mesh.common.utils.vis import vis_mesh, save_obj, render_mesh
  File "E:\i2l_mesh\common\utils\vis.py", line 8, in <module>
    import pyrender
  File "C:\Users\Vignesh\anaconda3\envs\mesh\lib\site-packages\pyrender\__init__.py", line 3, in <module>
    from .light import Light, PointLight, DirectionalLight, SpotLight
  File "C:\Users\Vignesh\anaconda3\envs\mesh\lib\site-packages\pyrender\light.py", line 10, in <module>
    from OpenGL.GL import *
  File "C:\Users\Vignesh\anaconda3\envs\mesh\lib\site-packages\OpenGL\GL\__init__.py", line 3, in <module>
    from OpenGL import error as _error
  File "C:\Users\Vignesh\anaconda3\envs\mesh\lib\site-packages\OpenGL\error.py", line 12, in <module>
    from OpenGL import platform, _configflags
  File "C:\Users\Vignesh\anaconda3\envs\mesh\lib\site-packages\OpenGL\platform\__init__.py", line 35, in <module>
    _load()
  File "C:\Users\Vignesh\anaconda3\envs\mesh\lib\site-packages\OpenGL\platform\__init__.py", line 32, in _load
    plugin.install(globals())
  File "C:\Users\Vignesh\anaconda3\envs\mesh\lib\site-packages\OpenGL\platform\baseplatform.py", line 92, in install
    namespace[ name ] = getattr(self,name,None)
  File "C:\Users\Vignesh\anaconda3\envs\mesh\lib\site-packages\OpenGL\platform\baseplatform.py", line 14, in __get__
    value = self.fget( obj )
  File "C:\Users\Vignesh\anaconda3\envs\mesh\lib\site-packages\OpenGL\platform\egl.py", line 93, in GetCurrentContext
    return self.EGL.eglGetCurrentContext
  File "C:\Users\Vignesh\anaconda3\envs\mesh\lib\site-packages\OpenGL\platform\baseplatform.py", line 14, in __get__
    value = self.fget( obj )
  File "C:\Users\Vignesh\anaconda3\envs\mesh\lib\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', 22, 'The specified module could not be found', None, 126, None, 'EGL', None)

its-charan-here avatar Nov 10 '21 13:11 its-charan-here

@its-charan-here did you solve it? If yes, please share the answer because I am facing the same problem

MhmdAliChamass99 avatar Feb 02 '22 12:02 MhmdAliChamass99