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', 22, 'The specified module could not be found', None, 126, None, 'EGL', None) #68

Open
madhumilan opened this issue Jan 31, 2022 · 2 comments

Comments

@madhumilan
Copy link

I am trying to use scripts/calc_gt_masks.py to generate GT masks for BOP dataset generation from here. I have tested this on Linux machine and it works fine, but now I have to use it on Windows and when I try to do it, I get the above error. I am not able to resolve it as the solutions provided were not w.r.t. bop_toolkit. I am using vispy for rendering as expected. Could you please tell me what I am missing?

Thanks.

@wangg12
Copy link
Contributor

wangg12 commented Feb 2, 2022

Hi @madhumilan, I'm not sure whether the vispy renderer can work properly on Windows. Maybe you can try to change the egl backend https://github.com/thodan/bop_toolkit/blob/master/bop_toolkit_lib/renderer_vispy.py#L8 to other backends. Or you might need to consult the vispy developers https://github.com/vispy/vispy for further help.

@pureYioYi
Copy link

pureYioYi commented Nov 24, 2022

Hello, @madhumilan, I meet the the same error on Winodws. And I changed the backend "egl" to "pyglet", as suggested by @wangg12, which works fine for me. I install pyglet == 1.5.15 with python 3.7, because pyglet 2.0.0 requires Python 3.8 or newer.

Here is my code in renderer_vispy.py:

os.environ["PYOPENGL_PLATFORM"] = "pyglet"
import numpy as np
import vispy
from vispy import app, gloo
import OpenGL.GL as gl

from bop_toolkit_lib import inout
from bop_toolkit_lib import misc
from bop_toolkit_lib import renderer

app_backend = "pyglet"
gl_backend = "gl2"  # "pyopengl2"  # speed: 'gl+' < 'gl2' < 'pyopengl2'

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

3 participants