-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
Shader errors and blank window on Ubuntu Gnome 16.10 #11
Comments
Thanks for the report. From my research with you on IRC, this seems to be a bug with the proprietary nvidia driver: https://bugs.launchpad.net/ubuntu/+source/python-qt4/+bug/941826. Possible workaround seem to be: |
Should be fixed in 41d5b33 |
Still have this error on Debian, shader program is not linked, black window. |
Just to confirm, you do have python3-opengl installed? |
Yup, saw that in the referenced commit and installed it. |
But in fact, pext still warns me that it is not installed :/ |
Alright, fixed it with |
All of this seems really odd to me, but hey, if it works that's great. So far you're the first person I run into for who installing python3-opengl doesn't work, but I'll make sure to update troubleshooting if I hear more such cases, thanks! |
$ pip3 install --user pext
$ pext
python3-opengl is not installed. If Pext fails to render, please try installing it. See https://github.com/Pext/Pext/issues/11.
...
$ sudo apt install python3-opengl
...
$ pext
Traceback (most recent call last):
File "/home/john/.local/bin/pext", line 7, in <module>
from pext.__main__ import main
File "/home/john/.local/lib/python3.5/site-packages/pext/__main__.py", line 75, in <module>
from OpenGL import GL # NOQA
File "/usr/lib/python3/dist-packages/OpenGL/GL/__init__.py", line 3, in <module>
from OpenGL.GL.VERSION.GL_1_1 import *
File "/usr/lib/python3/dist-packages/OpenGL/GL/VERSION/GL_1_1.py", line 10, in <module>
from OpenGL import platform, constants, constant, arrays
File "/usr/lib/python3/dist-packages/OpenGL/arrays/__init__.py", line 22, in <module>
formathandler.FormatHandler.loadAll()
File "/usr/lib/python3/dist-packages/OpenGL/arrays/formathandler.py", line 28, in loadAll
cls.loadPlugin( entrypoint )
File "/usr/lib/python3/dist-packages/OpenGL/arrays/formathandler.py", line 35, in loadPlugin
plugin_class = entrypoint.load()
File "/usr/lib/python3/dist-packages/OpenGL/plugins.py", line 14, in load
return importByName( self.import_path )
File "/usr/lib/python3/dist-packages/OpenGL/plugins.py", line 28, in importByName
module = __import__( ".".join(moduleName), {}, {}, moduleName)
File "/usr/lib/python3/dist-packages/OpenGL/arrays/vbo.py", line 430, in <module>
def mapVBO( vbo, access=GL.GL_READ_WRITE ):
AttributeError: module 'OpenGL.GL' has no attribute 'GL_READ_WRITE' Pext 0.20 Running without opengl does actually work, but it doesn't look as pretty as the screenshot. |
How odd. I'll reopen this as apparently it's not properly fixed then. I assume this means the AppImage won't work for you either, as it ships with pyopengl? I wonder if we can deal with this edge case safely with a try/except around the import. Thanks for your note! |
I'm on Mint Linux, so I dunno about the AppImage 😬 |
Well, the AppImage actually runs on any Linux platform. It's a standalone executable. Anyway, could you check for me if the latest commit I made causes it to work in both cases? With regards to "but it doesn't look as pretty as the screenshot", a screenshot would be great to be able to tell what seems off :) |
With the latest commit, the exception is still logged, but So maybe something like this would help:
Not making a PR as install doesn't strictly require PyOpenGL .. |
It was starting up with a full-width window across my 21" monitor. |
I understand the concern, but at the same time, the import itself is a workaround. If it doesn't go well, I'd rather Pext just continues launching because it likely will work fine, only certain configs need it
That was fixed in the development version yes :) |
On Wed, 31 Oct 2018, 18:18 Sylvia van Os, ***@***.***> wrote:
except Exception as e: is pretty uncool, though.
I understand the concern, but
Yeah in this case it's a matter of aesthetics .. or principle :-]
… |
All the dependencies have been installed correctly.
Installed using
pip3 install . --upgrade
.Opens a blank window and throws the same errors multiple times in the terminal.
QOpenGLShaderProgram: could not create shader program
QOpenGLShader: could not create shader
QOpenGLShader: could not create shader
shader compilation failed:
""
QOpenGLShaderProgram::uniformLocation( matrix ): shader program is not linked
QOpenGLShaderProgram::uniformLocation( opacity ): shader program is not linked
The text was updated successfully, but these errors were encountered: