[Bug 941826] Re: PyQt cannot compile shaders with Ubuntu's Nvidia drivers

2014-08-12 Thread Peter Würtz
Please also have a look at my example and workaround in #10. As described in #5, the problem seems to be an error when python dynamically loads the required opengl libraries. Unfortunately we still don't know what exactly goes wrong and why it only affects python qt bindings loading the

[Bug 941826] Re: PyQt cannot compile shaders with Ubuntu's Nvidia drivers

2014-08-12 Thread Peter Würtz
Ok, I think I found the problem. Apparently the PyQt application ends up loading the Mesa GL library (/usr/lib/x86_64-linux-gnu/mesa/libGL.so.1.2.0) instead of the NVidia driver (/usr/lib/nvidia-331/libGL.so.331.38) that is loaded when importing PyOpenGL first. The difference seems to be the

[Bug 941826] Re: PyQt cannot compile shaders with Ubuntu's Nvidia drivers

2014-08-12 Thread Peter Würtz
The first entry of libGL.so in ldconfig -p points to /usr/lib/x86_64-linux-gnu/libGL.so, which is a symlink to the mesa driver. After deleting that link pyqt works fine as expected. That symlink belongs to the libgl1-mesa-dev package and seems to overrule the libGL.so entries in ldconfig for the

[Bug 941826] Re: PyQt cannot compile shaders with Ubuntu's Nvidia drivers

2014-08-12 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: mesa (Ubuntu) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/941826 Title: PyQt

[Bug 941826] Re: PyQt cannot compile shaders with Ubuntu's Nvidia drivers

2014-08-12 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: pyqt5 (Ubuntu) Status: New = Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/941826 Title: PyQt

[Bug 941826] Re: PyQt cannot compile shaders with Ubuntu's Nvidia drivers

2014-08-12 Thread B Clausius
Thanks Peter Würtz! So it seems the workaround can be simplified to import ctypes ctypes.CDLL('libGL.so.1', ctypes.RTLD_GLOBAL) or import ctypes.util ctypes.CDLL(ctypes.util.find_library('GL'), ctypes.RTLD_GLOBAL) -- You received this bug notification because you are a member of Ubuntu Bugs,

[Bug 941826] Re: PyQt cannot compile shaders with Ubuntu's Nvidia drivers

2014-08-12 Thread Chris Halse Rogers
** Changed in: python-qt4 (Ubuntu) Status: Confirmed = Invalid ** Changed in: pyqt5 (Ubuntu) Status: Confirmed = Invalid -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/941826 Title:

[Bug 941826] Re: PyQt cannot compile shaders with Ubuntu's Nvidia drivers

2014-08-11 Thread Jörn Schönyan
I can confirm that bug in PyQt5/QML. I hope that it can be fixed, as I'm working on a project for future Lubuntu versions and want to get rid of additional dependencies (python3-opengl). Interesting: It doesn't seem to exist on hybrid notebooks a.k.a. Optimus in combination with bumblebee. --

[Bug 941826] Re: PyQt cannot compile shaders with Ubuntu's Nvidia drivers

2014-08-11 Thread Peter Würtz
** Also affects: pyqt5 (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/941826 Title: PyQt cannot compile shaders with Ubuntu's Nvidia drivers To

[Bug 941826] Re: PyQt cannot compile shaders with Ubuntu's Nvidia drivers

2014-08-11 Thread Scott Kitterman
Since this works fine on non-nvidia systems, why does anyone think this is anything other than a driver issue? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/941826 Title: PyQt cannot compile

[Bug 941826] Re: PyQt cannot compile shaders with Ubuntu's Nvidia drivers

2014-08-11 Thread B Clausius
Since this works fine with Qt, why does anyone think this is anything other than a PyQt issue? -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/941826 Title: PyQt cannot compile shaders with Ubuntu's

Re: [Bug 941826] Re: PyQt cannot compile shaders with Ubuntu's Nvidia drivers

2014-08-11 Thread Scott Kitterman
On Tuesday, August 12, 2014 05:13:54 you wrote: Since this works fine with Qt, why does anyone think this is anything other than a PyQt issue? OK, provide a working Qt test case to go with the PyQt test case already provided and I'll see what upstream has to say. -- You received this bug

Re: [Bug 941826] Re: PyQt cannot compile shaders with Ubuntu's Nvidia drivers

2014-01-16 Thread Dmitry Shachnev
Might be related to bug 1248642. -- You received this bug notification because you are a member of Kubuntu Bugs, which is subscribed to python-qt4 in Ubuntu. https://bugs.launchpad.net/bugs/941826 Title: PyQt cannot compile shaders with Ubuntu's Nvidia drivers To manage notifications about

[Bug 941826] Re: PyQt cannot compile shaders with Ubuntu's Nvidia drivers

2014-01-16 Thread Peter Würtz
Hm, this bug here existed already in 2012, whereas bug 1248642 is a regression from a change in binutils in 2013. Also, this missing libpthread.so.0 link problem shouldn't apply since the main application, python, is definitely linked to it: $ objdump -pR /usr/bin/python | grep libpthread

[Bug 941826] Re: PyQt cannot compile shaders with Ubuntu's Nvidia drivers

2014-01-16 Thread Peter Würtz
Here is another, more minimalistic script that demonstrates the shader compilation bug on NVIDIA and its workaround. ** Attachment added: PyQt4 shader compilation error demo workaround

[Bug 941826] Re: PyQt cannot compile shaders with Ubuntu's Nvidia drivers

2014-01-11 Thread Dmitry Shachnev
As discussed in bug 1241988, this is rather an issue with drivers themselves. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/941826 Title: PyQt cannot compile shaders with Ubuntu's Nvidia drivers

[Bug 941826] Re: PyQt cannot compile shaders with Ubuntu's Nvidia drivers

2014-01-11 Thread Dmitry Shachnev
** Package changed: pyqt5 (Ubuntu) = nvidia-graphics- drivers-331-updates (Ubuntu) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/941826 Title: PyQt cannot compile shaders with Ubuntu's Nvidia

[Bug 941826] Re: PyQt cannot compile shaders with Ubuntu's Nvidia drivers

2014-01-09 Thread Launchpad Bug Tracker
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: pyqt5 (Ubuntu) Status: New = Confirmed -- You received this bug notification because you are a member of Kubuntu Bugs, which is subscribed to python-qt4 in Ubuntu. https://bugs.launchpad.net/bugs/941826