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

when running the command: python demo.py --gpu 0 --stage param --test_epoch 8 I get the following error, can someone help me please to solve it #104

Open
MhmdOdoo opened this issue Feb 2, 2022 · 6 comments

Comments

@MhmdOdoo
Copy link

MhmdOdoo commented Feb 2, 2022

Traceback (most recent call last):
File "C:\Python39\lib\site-packages\OpenGL\platform\egl.py", line 67, in EGL
return ctypesloader.loadLibrary(
File "C:\Python39\lib\site-packages\OpenGL\platform\ctypesloader.py", line 45, in loadLibrary
return dllType( name, mode )
File "C:\Python39\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 "C:\Users\USER\OneDrive\Desktop\5th year- 1st semester\FYP\I2L-MeshNet_RELEASE-master\demo\demo.py", line 19, in
from utils.vis import vis_mesh, save_obj, render_mesh
File "C:\Users\USER\OneDrive\Desktop\5th year- 1st semester\FYP\I2L-MeshNet_RELEASE-master\main..\common\utils\vis.py", line 8, in
import pyrender
File "C:\Python39\lib\site-packages\pyrender_init_.py", line 3, in
from .light import Light, PointLight, DirectionalLight, SpotLight
File "C:\Python39\lib\site-packages\pyrender\light.py", line 10, in
from OpenGL.GL import *
File "C:\Python39\lib\site-packages\OpenGL\GL_init_.py", line 3, in
from OpenGL import error as _error
File "C:\Python39\lib\site-packages\OpenGL\error.py", line 12, in
from OpenGL import platform, configflags
File "C:\Python39\lib\site-packages\OpenGL\platform_init
.py", line 35, in
load()
File "C:\Python39\lib\site-packages\OpenGL\platform_init
.py", line 32, in _load
plugin.install(globals())
File "C:\Python39\lib\site-packages\OpenGL\platform\baseplatform.py", line 92, in install
namespace[ name ] = getattr(self,name,None)
File "C:\Python39\lib\site-packages\OpenGL\platform\baseplatform.py", line 14, in get
value = self.fget( obj )
File "C:\Python39\lib\site-packages\OpenGL\platform\egl.py", line 93, in GetCurrentContext
return self.EGL.eglGetCurrentContext
File "C:\Python39\lib\site-packages\OpenGL\platform\baseplatform.py", line 14, in get
value = self.fget( obj )
File "C:\Python39\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)

C:\Users\USER\OneDrive\Desktop\5th year- 1st semester\FYP\I2L-MeshNet_RELEASE-master\demo>python demo.py --gpu 0 --stage param --test_epoch 8
Traceback (most recent call last):
File "C:\Python39\lib\site-packages\OpenGL\platform\egl.py", line 67, in EGL
return ctypesloader.loadLibrary(
File "C:\Python39\lib\site-packages\OpenGL\platform\ctypesloader.py", line 45, in loadLibrary
return dllType( name, mode )
File "C:\Python39\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 "C:\Users\USER\OneDrive\Desktop\5th year- 1st semester\FYP\I2L-MeshNet_RELEASE-master\demo\demo.py", line 19, in
from utils.vis import vis_mesh, save_obj, render_mesh
File "C:\Users\USER\OneDrive\Desktop\5th year- 1st semester\FYP\I2L-MeshNet_RELEASE-master\main..\common\utils\vis.py", line 8, in
import pyrender
File "C:\Python39\lib\site-packages\pyrender_init_.py", line 3, in
from .light import Light, PointLight, DirectionalLight, SpotLight
File "C:\Python39\lib\site-packages\pyrender\light.py", line 10, in
from OpenGL.GL import *
File "C:\Python39\lib\site-packages\OpenGL\GL_init_.py", line 3, in
from OpenGL import error as _error
File "C:\Python39\lib\site-packages\OpenGL\error.py", line 12, in
from OpenGL import platform, configflags
File "C:\Python39\lib\site-packages\OpenGL\platform_init
.py", line 35, in
load()
File "C:\Python39\lib\site-packages\OpenGL\platform_init
.py", line 32, in _load
plugin.install(globals())
File "C:\Python39\lib\site-packages\OpenGL\platform\baseplatform.py", line 92, in install
namespace[ name ] = getattr(self,name,None)
File "C:\Python39\lib\site-packages\OpenGL\platform\baseplatform.py", line 14, in get
value = self.fget( obj )
File "C:\Python39\lib\site-packages\OpenGL\platform\egl.py", line 93, in GetCurrentContext
return self.EGL.eglGetCurrentContext
File "C:\Python39\lib\site-packages\OpenGL\platform\baseplatform.py", line 14, in get
value = self.fget( obj )
File "C:\Python39\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)

@mks0601
Copy link
Owner

mks0601 commented Feb 4, 2022

Try comment out this:

os.environ["PYOPENGL_PLATFORM"] = "egl"

@MhmdOdoo
Copy link
Author

MhmdOdoo commented Feb 4, 2022 via email

@mks0601
Copy link
Owner

mks0601 commented Feb 4, 2022

Please re-install Torch with CUDA.

@MhmdOdoo
Copy link
Author

MhmdOdoo commented Feb 4, 2022 via email

@mks0601
Copy link
Owner

mks0601 commented Feb 4, 2022

Sure, but please google the errors before asking me. Thanks!

@MhmdOdoo
Copy link
Author

MhmdOdoo commented Feb 4, 2022 via email

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

2 participants