Skip to main content
Tweeted twitter.com/StackGIS/status/1029654077234405376
edited title
Link
swiss_knight
  • 10.9k
  • 9
  • 50
  • 132

Unable to compile QGIS 3.2x (master) on Ubuntu 16.04: PyQt5.pyqtconfig module does not exist

review title
Link
swiss_knight
  • 10.9k
  • 9
  • 50
  • 132

PyQt5 related bug when compiling Unable to compile QGIS 3.2 (master) on Ubuntu 16.04: pyqtconfigPyQt5.pyqtconfig module does not exist

added 31 characters in body
Source Link
swiss_knight
  • 10.9k
  • 9
  • 50
  • 132

From: http://pyqt.sourceforge.net/Docs/PyQt5/pyqt4_differences.html there seems to be no more pyqtconfig module in PyQt5:

pyqtconfig Module

PyQt4’s pyqtconfig module is not supported. The section The PyQt5 Extension API describes the support that PyQt5 provides to third-party packages (e.g. QScintilla) that want to build on top of PyQt5.

So it's not possible to compile QGIS 3.2 from sources on Ubuntu (16.04) because it's used by the file FindPyQt5.py in the cmake folder:

https://github.com/qgis/QGIS/blob/master/cmake/FindPyQt5.py

cd /opt/QGIS/build3_2/
cat ../cmake/FindPyQt5.py | grep -in pyqtconfig
    34:    import PyQt5.pyqtconfig
    35:    pyqtcfg = PyQt5.pyqtconfig.Configuration()

The compilation process ends on:

Traceback (most recent call last):
  File "/opt/QGIS/cmake/FindPyQt5.py", line 34, in <module>
    import PyQt5.pyqtconfig
ImportError: No module named 'PyQt5.pyqtconfig'

My PyQt5 version is 5.11.2.

Is there any solution or workaround?

From: http://pyqt.sourceforge.net/Docs/PyQt5/pyqt4_differences.html there seems to be no more pyqtconfig module in PyQt5:

pyqtconfig Module

PyQt4’s pyqtconfig module is not supported. The section The PyQt5 Extension API describes the support that PyQt5 provides to third-party packages (e.g. QScintilla) that want to build on top of PyQt5.

So it's not possible to compile QGIS 3.2 from sources on Ubuntu (16.04) because it's used by the file FindPyQt5.py in the cmake folder:

https://github.com/qgis/QGIS/blob/master/cmake/FindPyQt5.py

cd /opt/QGIS/build3_2/
cat ../cmake/FindPyQt5.py | grep -in pyqtconfig
    34:    import PyQt5.pyqtconfig
    35:    pyqtcfg = PyQt5.pyqtconfig.Configuration()

The compilation process ends on:

Traceback (most recent call last):
  File "/opt/QGIS/cmake/FindPyQt5.py", line 34, in <module>
    import PyQt5.pyqtconfig
ImportError: No module named 'PyQt5.pyqtconfig'

Is there any solution or workaround?

From: http://pyqt.sourceforge.net/Docs/PyQt5/pyqt4_differences.html there seems to be no more pyqtconfig module in PyQt5:

pyqtconfig Module

PyQt4’s pyqtconfig module is not supported. The section The PyQt5 Extension API describes the support that PyQt5 provides to third-party packages (e.g. QScintilla) that want to build on top of PyQt5.

So it's not possible to compile QGIS 3.2 from sources on Ubuntu (16.04) because it's used by the file FindPyQt5.py in the cmake folder:

https://github.com/qgis/QGIS/blob/master/cmake/FindPyQt5.py

cd /opt/QGIS/build3_2/
cat ../cmake/FindPyQt5.py | grep -in pyqtconfig
    34:    import PyQt5.pyqtconfig
    35:    pyqtcfg = PyQt5.pyqtconfig.Configuration()

The compilation process ends on:

Traceback (most recent call last):
  File "/opt/QGIS/cmake/FindPyQt5.py", line 34, in <module>
    import PyQt5.pyqtconfig
ImportError: No module named 'PyQt5.pyqtconfig'

My PyQt5 version is 5.11.2.

Is there any solution or workaround?

Source Link
swiss_knight
  • 10.9k
  • 9
  • 50
  • 132
Loading