-
Notifications
You must be signed in to change notification settings - Fork 108
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
module 'pyglet.gl' has no attribute 'xlib' #13
Comments
Hi, I've met the same problem as yours. I follow the instruction in #8, and the problem is fixed. Hope it can help you, too. |
Thank you. That seems to have solved the xlib error. But I am now running into an OpenGL error: 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_'" Is this something you have seen? |
Hi, if you are using a remote computer via SSH or some tools rely on Xserver, the OpenGL in the remote computer may not be able to run correctly. I fixed the issue by using a local pc. An alternative solution is to use some remote tools that support OpenGL such as VirtualGL mentioned in the error message. |
@hearables-pkinsella Can you try to add this in your main python script before you
Please let me know if this fixes the problem. Are you working on a computer without a screen (via ssh)? Does your computer have a GPU? |
I was using ssh with X-11 forwarding and DISPLAY. I tried to run example/voxelize_chair.py got the same error with @hearables-pkinsella . (mesh_to_sdf) xieyunwei@ubuntu:~/workdir/occupancy_networks/external/mesh_to_sdf$ python example/voxelize_chair.py It seems like that I cannot use(initialize) EGL on my server... Are there any additional steps needed to be done? |
Hummmmmmm. When you install pyrender by Here is the hint by pyrender's doc to solve the problem. |
Can you post the python version and version for the dependencies you use?
I am getting a pyglet xlib error running on Mac in python 3.6/3.7
The text was updated successfully, but these errors were encountered: