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 #616

Open
FuNz-0 opened this issue Jan 9, 2025 · 3 comments
Open

ImportError #616

FuNz-0 opened this issue Jan 9, 2025 · 3 comments
Assignees

Comments

@FuNz-0
Copy link

FuNz-0 commented Jan 9, 2025

ImportError: Cannot initialize a EGL device display. This likely means that your EGL driver does not support the PLATFORM_DEVICE extension, which is required for creating a headless rendering context.

@kevin-thankyou-lin
Copy link
Contributor

Have you tried the solutions in #369 ?

Also, it'd be useful to have more context on your machine version etc

@kevin-thankyou-lin kevin-thankyou-lin self-assigned this Jan 9, 2025
@FuNz-0
Copy link
Author

FuNz-0 commented Jan 13, 2025

The reason is that my gpu does not support egl. Setting MUJOCO_GL=glx resolves this error. Would this affect the runing result?

@kevin-thankyou-lin
Copy link
Contributor

I see; glx should work for onscreen rendering, though mightn't work for offscreen rendering. I think osmesa should works for both on and off, though it's not GPU based so it's slower than using 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

2 participants