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
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
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
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
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
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,
** 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:
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.
--
** 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
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
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
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
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
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
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
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
** 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
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
18 matches
Mail list logo