Image Cube Qt issues on Linux

Issue #299 resolved
Fabian Thiel created an issue

When trying to start the App I get this error

2019-10-02T15:01:09     WARNING    Traceback (most recent call last):
              File "/home/enmapbox/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/coreapps/imagecubeapp/__init__.py", line 52, in startGUI
              from imagecubeapp.imagecube import ImageCubeWidget
              File "/usr/lib/python3/dist-packages/qgis/utils.py", line 737, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File "/home/enmapbox/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/coreapps/imagecubeapp/imagecube.py", line 16, in 
              import enmapbox.externals.qps.externals.pyqtgraph.opengl as gl
              File "/usr/lib/python3/dist-packages/qgis/utils.py", line 737, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File "/home/enmapbox/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/externals/qps/externals/pyqtgraph/opengl/__init__.py", line 1, in 
              from .GLViewWidget import GLViewWidget
              File "/usr/lib/python3/dist-packages/qgis/utils.py", line 737, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File "/home/enmapbox/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/externals/qps/externals/pyqtgraph/opengl/GLViewWidget.py", line 12, in 
              class GLViewWidget(QtOpenGL.QGLWidget):
              File "/home/enmapbox/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/externals/qps/externals/pyqtgraph/Qt.py", line 55, in __getattr__
              raise self.err
              File "/home/enmapbox/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/coreapps/imagecubeapp/__init__.py", line 52, in startGUI
              from imagecubeapp.imagecube import ImageCubeWidget
              File "/usr/lib/python3/dist-packages/qgis/utils.py", line 737, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File "/home/enmapbox/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/coreapps/imagecubeapp/imagecube.py", line 16, in 
              import enmapbox.externals.qps.externals.pyqtgraph.opengl as gl
              File "/usr/lib/python3/dist-packages/qgis/utils.py", line 737, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File "/home/enmapbox/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/externals/qps/externals/pyqtgraph/opengl/__init__.py", line 1, in 
              from .GLViewWidget import GLViewWidget
              File "/usr/lib/python3/dist-packages/qgis/utils.py", line 737, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File "/home/enmapbox/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/externals/qps/externals/pyqtgraph/opengl/GLViewWidget.py", line 12, in 
              class GLViewWidget(QtOpenGL.QGLWidget):
              File "/home/enmapbox/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/externals/qps/externals/pyqtgraph/Qt.py", line 55, in __getattr__
              raise self.err
              File "/home/enmapbox/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/externals/pyqtgraph.py", line 4, in 
              from .qps.externals.pyqtgraph import opengl
              File "/usr/lib/python3/dist-packages/qgis/utils.py", line 737, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File "/home/enmapbox/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/externals/qps/externals/pyqtgraph/opengl/__init__.py", line 1, in 
              from .GLViewWidget import GLViewWidget
              File "/usr/lib/python3/dist-packages/qgis/utils.py", line 737, in _import
              mod = _builtin_import(name, globals, locals, fromlist, level)
              File "/home/enmapbox/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/externals/qps/externals/pyqtgraph/opengl/GLViewWidget.py", line 12, in 
              class GLViewWidget(QtOpenGL.QGLWidget):
              File "/home/enmapbox/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/externals/qps/externals/pyqtgraph/Qt.py", line 55, in __getattr__
              raise self.err
              File "/home/enmapbox/.local/share/QGIS/QGIS3/profiles/default/python/plugins/enmapboxplugin/enmapbox/externals/qps/externals/pyqtgraph/Qt.py", line 191, in 
              from PyQt5 import QtOpenGL
             ImportError: cannot import name 'QtOpenGL' from 'PyQt5' (/usr/lib/python3/dist-packages/PyQt5/__init__.py)

Comments (4)

  1. Fabian Thiel reporter

    Installing python bindings for Qt5 OpenGL fixed the problem

    sudo apt-get install python3-pyqt5.qtopengl
    

    I will probably add that to the installation guide as optional, or include this in the FAQ section

  2. Fabian Thiel reporter

    Installing python bindings for Qt5 OpenGL fixed the problem

    sudo apt-get install python3-pyqt5.qtopengl
    

  3. Log in to comment