Monday 23 March 2015

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


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
import PyQt5.pyqtconfig
ImportError: No module named 'PyQt5.pyqtconfig'

My PyQt5 version is 5.11.2.


Is there any solution or workaround?




No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...