PyQt5 + QtOpenGL: QXcbIntegration error
<p>I'm using Debian 8 and python 2.7, anaconda environment.</p>

<p>This is my code:</p>

<pre><code>from PyQt5 import QtCore, QtWidgets, QtOpenGL
import sys


class Ui_MainWindow(QtWidgets.QMainWindow):
    def __init__(self, parent=None):
        super(Ui_MainWindow, self).__init__(parent, flags=QtCore.Qt.FramelessWindowHint)
        self.setAttribute(QtCore.Qt.WA_DeleteOnClose)
        self.setupUi(self)

    def setupUi(self, MainWindow):
        MainWindow.setWindowModality(QtCore.Qt.ApplicationModal)
        MainWindow.setFixedSize(800, 600)
        self.map = Map(self)


class Map(QtOpenGL.QGLWidget):
    def __init__(self, parent=None):
        super(Map, self).__init__(parent)
        self.move(11, 148)
        self.setFixedSize(545, 416)

app = QtWidgets.QApplication(sys.argv)
form = Ui_MainWindow()
form.show()
sys.exit(app.exec_())
</code></pre>

<p>I'm getting this error:</p>

<pre><code>QXcbIntegration: Cannot create platform OpenGL context, neither GLX nor EGL are enabled
</code></pre>

<p>Am I doing something wrong? </p>

<p>Thanks in advance.</p>

<p>EDIT:</p>

<p>This is the <a href="http://pastebin.com/y5sfigF7" rel="nofollow noreferrer">./configure</a> from my Qt.</p>

<p>And this is my <a href="http://pastebin.com/tgQVrpFj" rel="nofollow noreferrer">glxinfo</a></p>

<p>But still not working.</p>