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

ValueError: Failed to initialize Pyglet window with an OpenGL >= 3+ context. #15

Open
asurada404 opened this issue Aug 12, 2020 · 3 comments

Comments

@asurada404
Copy link

I tried to run the sample points demo.

points, sdf = sample_sdf_near_surface(mesh, number_of_points=250000)

I got some errors:

...
~/anaconda3/lib/python3.6/site-packages/pyrender/platforms/pyglet_platform.py in init_context(self)
     36                 'context. If you\'re logged in via SSH, ensure that you\'re '
     37                 'running your script with vglrun (i.e. VirtualGL). The '
---> 38                 'internal error message was "{}"'.format(e)
     39             )
     40 

ValueError: Failed to initialize Pyglet window with an OpenGL >= 3+ context. If you're logged in via SSH, ensure that you're running your script with vglrun (i.e. VirtualGL). The internal error message was "'NoneType' object has no attribute 'setView_'"

Can anyone give me some help?

@lincolt
Copy link

lincolt commented Sep 3, 2020

Same issue here. It occurs when using surface_point_method='scan' method. 'Sample' works fine.

@pculbertson
Copy link

I get this error when running on an Ubuntu machine without a server -- error is resolved if you run
import os; os.environ['PYOPENGL_PLATFORM'] = 'egl' as described in the README.

@GTO2013
Copy link

GTO2013 commented Jan 30, 2021

This also randomly happens on Windows for me

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

4 participants