Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: ('Unable to load EGL library', "Could not find module 'EGL' (or one of its dependencies). Try using the full path with constructor syntax.", 'EGL', None) #205

Open
pppkkk611 opened this issue Nov 14, 2023 · 1 comment

Comments

@pppkkk611
Copy link

When i run sh scripts/run_demo.sh,the problem will come. ON NVIDIA 3090 WINDOWS 11
--------------------------- Visualization ---------------------------
Front view directory: D:\pyh\noah-research\CLIFF\data\test_samples\lspet_samples\front_view_hr48
Side view directory: D:\pyh\noah-research\CLIFF\data\test_samples\lspet_samples\side_view_hr48
Bounding box directory: D:\pyh\noah-research\CLIFF\data\test_samples\lspet_samples\bbox
0%| | 0/17 [00:00<?, ?it/s]
Traceback (most recent call last):
File "C:\Users\user.conda\envs\cliff1\lib\site-packages\OpenGL\platform\egl.py", line 67, in EGL
return ctypesloader.loadLibrary(
File "C:\Users\user.conda\envs\cliff1\lib\site-packages\OpenGL\platform\ctypesloader.py", line 45, in loadLibrary
return dllType( name, mode )
File "C:\Users\user.conda\envs\cliff1\lib\ctypes_init_.py", line 374, in init
self._handle = _dlopen(self._name, mode)
FileNotFoundError: ("Could not find module 'EGL' (or one of its dependencies). Try using the full path with constructor syntax.", 'EGL', None)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\noah-research\cliff\demo.py", line 265, in
main(args)
File "D:\noah-research\cliff\demo.py", line 187, in main
renderer = Renderer(focal_length=focal_length, img_w=img_w, img_h=img_h,
File "D:\noah-research\cliff\common\renderer_pyrd.py", line 23, in init
self.renderer = pyrender.OffscreenRenderer(viewport_width=img_w,
File "C:\Users\user.conda\envs\cliff1\lib\site-packages\pyrender\offscreen.py", line 31, in init
self._create()
File "C:\Users\user.conda\envs\cliff1\lib\site-packages\pyrender\offscreen.py", line 135, in _create
from pyrender.platforms import egl
File "C:\Users\user.conda\envs\cliff1\lib\site-packages\pyrender\platforms\egl.py", line 25, in
_ensure_egl_loaded()
File "C:\Users\user.conda\envs\cliff1\lib\site-packages\pyrender\platforms\egl.py", line 22, in _ensure_egl_loaded
plugin.install(vars(OpenGL.platform))
File "C:\Users\user.conda\envs\cliff1\lib\site-packages\OpenGL\platform\baseplatform.py", line 92, in install
namespace[ name ] = getattr(self,name,None)
File "C:\Users\user.conda\envs\cliff1\lib\site-packages\OpenGL\platform\baseplatform.py", line 14, in get
value = self.fget( obj )
File "C:\Users\user.conda\envs\cliff1\lib\site-packages\OpenGL\platform\egl.py", line 93, in GetCurrentContext
return self.EGL.eglGetCurrentContext
File "C:\Users\user.conda\envs\cliff1\lib\site-packages\OpenGL\platform\baseplatform.py", line 14, in get
value = self.fget( obj )
File "C:\Users\user.conda\envs\cliff1\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', "Could not find module 'EGL' (or one of its dependencies). Try using the full path with constructor syntax.", 'EGL', None)

@pppkkk611
Copy link
Author

pppkkk611 commented Nov 15, 2023

Solved, check CLIFF/common/renderer_pyrd.py line 22

# os.environ['PYOPENGL_PLATFORM'] = 'egl'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant