[QGIS-Developer] PyQt db_manager(?) compile error

matteo matteo.ghetta at gmail.com
Mon Jan 30 04:04:42 PST 2023


Hi Richard,

same here. On Debian with a new folder and a fresh compilation. Did you 
solved?

make[2]: *** 
[python/plugins/db_manager/CMakeFiles/zzz-db_manager-15-depend.dir/build.make:90: 
python/plugins/db_manager/ui_DlgCancelTaskQuery.py] Error 1
make[2]: *** Deleting file 
'python/plugins/db_manager/ui_DlgCancelTaskQuery.py'
make[2]: *** 
[python/plugins/db_manager/CMakeFiles/zzz-db_manager-15-depend.dir/build.make:98: 
python/plugins/db_manager/ui_DlgCreateIndex.py] Error 1
make[2]: *** Deleting file 'python/plugins/db_manager/ui_DlgCreateIndex.py'
make[2]: *** 
[python/plugins/db_manager/CMakeFiles/zzz-db_manager-15-depend.dir/build.make:102: 
python/plugins/db_manager/ui_DlgCreateTable.py] Error 1
make[2]: *** Deleting file 'python/plugins/db_manager/ui_DlgCreateTable.py'
An unexpected error occurred.
Check that you are using the latest version of PyQt5 and send an error 
report to
support at riverbankcomputing.com, including the following information:

   * your version of PyQt (5.15.8)
   * the UI file that caused this error
   * the debug output of pyuic5 (use the -d flag when calling pyuic5)
make[2]: *** 
[python/plugins/db_manager/CMakeFiles/zzz-db_manager-15-depend.dir/build.make:94: 
python/plugins/db_manager/ui_DlgCreateConstraint.py] Error 1
make[2]: *** Deleting file 
'python/plugins/db_manager/ui_DlgCreateConstraint.py'
make[1]: *** [CMakeFiles/Makefile2:6344: 
python/plugins/db_manager/CMakeFiles/zzz-db_manager-15-depend.dir/all] 
Error 2

Cheers

Matteo


On 1/27/23 13:23, Richard Duivenvoorde via QGIS-Developer wrote:
> Hi,
> 
> Compiling master on Debian Testing today, I first was presented with a 
> new dependency Qt5Multimedia (hopefully we can soon use QGIS as a 
> Spotify client ;-) ), which was installable.
> 
> But then my (fresh) build stalls at:
> 
> [9773/9812] Generating ui_DlgAddGeometryColumn.py
> FAILED: python/plugins/db_manager/ui_DlgAddGeometryColumn.py 
> /home/richard/git/qgis/build/python/plugins/db_manager/ui_DlgAddGeometryColumn.py
> cd /home/richard/git/qgis/build/python/plugins/db_manager && 
> /home/richard/git/qgis/scripts/pyuic_wrapper.sh /usr/bin/pyuic5 
> /home/richard/git/qgis/build/output/lib 
> /home/richard/git/qgis/build/output/python /usr/bin/python3 
> /home/richard/git/qgis/python/plugins/db_manager/ui/DlgAddGeometryColumn.ui -o /home/richard/git/qgis/build/python/plugins/db_manager/ui_DlgAddGeometryColumn.py
> An unexpected error occurred.
> Check that you are using the latest version of PyQt5 and send an error 
> report to
> support at riverbankcomputing.com, including the following information:
> 
>    * your version of PyQt (5.15.7)
>    * the UI file that caused this error
>    * the debug output of pyuic5 (use the -d flag when calling pyuic5)
> 
> Others have that issue?
> 
> Running pyuic -d on one of the errors seems fine (see below).
> 
> Regards,
> 
> Richard Duivenvoorde
> 
> 
> /usr/bin/pyuic5 -d 
> /home/richard/git/qgis/python/plugins/db_manager/ui/DlgExportVector.ui
> 
> 
> PyQt5.uic.uiparser: uiname is DbManagerDlgExportVector
> PyQt5.uic.uiparser: toplevel widget is QDialog
> PyQt5.uic.properties: setting property geometry
> PyQt5.uic.properties: setting property windowTitle
> PyQt5.uic.uiparser: push QDialog DbManagerDlgExportVector
> PyQt5.uic.uiparser: push QGridLayout gridLayout_2
> PyQt5.uic.properties: setting property text
> PyQt5.uic.uiparser: push QLineEdit editOutputFile
> PyQt5.uic.uiparser: pop widget QLineEdit editOutputFile
> PyQt5.uic.uiparser: new topwidget DbManagerDlgExportVector
> PyQt5.uic.properties: setting property orientation
> PyQt5.uic.properties: setting property standardButtons
> PyQt5.uic.uiparser: push QDialogButtonBox buttonBox
> PyQt5.uic.uiparser: pop widget QDialogButtonBox buttonBox
> PyQt5.uic.uiparser: new topwidget DbManagerDlgExportVector
> PyQt5.uic.uiparser: push QComboBox cboFileFormat
> PyQt5.uic.uiparser: pop widget QComboBox cboFileFormat
> PyQt5.uic.uiparser: new topwidget DbManagerDlgExportVector
> PyQt5.uic.properties: setting property sizePolicy
> PyQt5.uic.properties: setting property text
> PyQt5.uic.uiparser: push QLabel label_5
> PyQt5.uic.uiparser: pop widget QLabel label_5
> PyQt5.uic.uiparser: new topwidget DbManagerDlgExportVector
> PyQt5.uic.properties: setting property title
> PyQt5.uic.uiparser: push QGroupBox groupBox_2
> PyQt5.uic.uiparser: push QGridLayout gridLayout
> PyQt5.uic.properties: setting property text
> PyQt5.uic.uiparser: push QCheckBox chkDropTable
> PyQt5.uic.uiparser: pop widget QCheckBox chkDropTable
> PyQt5.uic.uiparser: new topwidget self.groupBox_2
> PyQt5.uic.uiparser: push QHBoxLayout horizontalLayout
> PyQt5.uic.properties: setting property text
> PyQt5.uic.uiparser: push QCheckBox chkSourceSrid
> PyQt5.uic.uiparser: pop widget QCheckBox chkSourceSrid
> PyQt5.uic.uiparser: new topwidget self.groupBox_2
> PyQt5.uic.properties: setting property enabled
> PyQt5.uic.properties: setting property text
> PyQt5.uic.uiparser: push QLineEdit editSourceSrid
> PyQt5.uic.uiparser: pop widget QLineEdit editSourceSrid
> PyQt5.uic.uiparser: new topwidget self.groupBox_2
> PyQt5.uic.properties: setting property text
> PyQt5.uic.uiparser: push QCheckBox chkTargetSrid
> PyQt5.uic.uiparser: pop widget QCheckBox chkTargetSrid
> PyQt5.uic.uiparser: new topwidget self.groupBox_2
> PyQt5.uic.properties: setting property enabled
> PyQt5.uic.properties: setting property text
> PyQt5.uic.uiparser: push QLineEdit editTargetSrid
> PyQt5.uic.uiparser: pop widget QLineEdit editTargetSrid
> PyQt5.uic.uiparser: new topwidget self.groupBox_2
> PyQt5.uic.uiparser: pop layout QHBoxLayout horizontalLayout
> PyQt5.uic.properties: setting property toolTip
> PyQt5.uic.properties: setting property text
> PyQt5.uic.uiparser: push QCheckBox chkEncoding
> PyQt5.uic.uiparser: pop widget QCheckBox chkEncoding
> PyQt5.uic.uiparser: new topwidget self.groupBox_2
> PyQt5.uic.properties: setting property enabled
> PyQt5.uic.properties: setting property sizePolicy
> PyQt5.uic.properties: setting property editable
> PyQt5.uic.properties: setting property insertPolicy
> PyQt5.uic.uiparser: push QComboBox cboEncoding
> PyQt5.uic.uiparser: pop widget QComboBox cboEncoding
> PyQt5.uic.uiparser: new topwidget self.groupBox_2
> PyQt5.uic.uiparser: pop layout QGridLayout gridLayout
> PyQt5.uic.uiparser: pop widget QGroupBox groupBox_2
> PyQt5.uic.uiparser: new topwidget DbManagerDlgExportVector
> PyQt5.uic.properties: setting property text
> PyQt5.uic.uiparser: push QToolButton btnChooseOutputFile
> PyQt5.uic.uiparser: pop widget QToolButton btnChooseOutputFile
> PyQt5.uic.uiparser: new topwidget DbManagerDlgExportVector
> PyQt5.uic.properties: setting property text
> PyQt5.uic.uiparser: push QLabel label
> PyQt5.uic.uiparser: pop widget QLabel label
> PyQt5.uic.uiparser: new topwidget DbManagerDlgExportVector
> PyQt5.uic.uiparser: pop layout QGridLayout gridLayout_2
> PyQt5.uic.uiparser: pop widget QDialog DbManagerDlgExportVector
> PyQt5.uic.uiparser: new topwidget None
> # -*- coding: utf-8 -*-
> 
> # Form implementation generated from reading ui file 
> '/home/richard/git/qgis/python/plugins/db_manager/ui/DlgExportVector.ui'
> #
> # Created by: PyQt5 UI code generator 5.15.7
> #
> # WARNING: Any manual changes made to this file will be lost when pyuic5 is
> # run again.  Do not edit this file unless you know what you are doing.
> 
> 
> from PyQt5 import QtCore, QtGui, QtWidgets
> 
> 
> class Ui_DbManagerDlgExportVector(object):
>      def setupUi(self, DbManagerDlgExportVector):
>          DbManagerDlgExportVector.setObjectName("DbManagerDlgExportVector")
>          DbManagerDlgExportVector.resize(514, 253)
>          self.gridLayout_2 = 
> QtWidgets.QGridLayout(DbManagerDlgExportVector)
>          self.gridLayout_2.setObjectName("gridLayout_2")
>          self.editOutputFile = 
> QtWidgets.QLineEdit(DbManagerDlgExportVector)
>          self.editOutputFile.setText("")
>          self.editOutputFile.setObjectName("editOutputFile")
>          self.gridLayout_2.addWidget(self.editOutputFile, 1, 1, 1, 1)
>          self.buttonBox = 
> QtWidgets.QDialogButtonBox(DbManagerDlgExportVector)
>          self.buttonBox.setOrientation(QtCore.Qt.Horizontal)
>          
> self.buttonBox.setStandardButtons(QtWidgets.QDialogButtonBox.Cancel|QtWidgets.QDialogButtonBox.Ok)
>          self.buttonBox.setObjectName("buttonBox")
>          self.gridLayout_2.addWidget(self.buttonBox, 3, 0, 1, 3)
>          self.cboFileFormat = QtWidgets.QComboBox(DbManagerDlgExportVector)
>          self.cboFileFormat.setObjectName("cboFileFormat")
>          self.gridLayout_2.addWidget(self.cboFileFormat, 0, 1, 1, 2)
>          self.label_5 = QtWidgets.QLabel(DbManagerDlgExportVector)
>          sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, 
> QtWidgets.QSizePolicy.Preferred)
>          sizePolicy.setHorizontalStretch(0)
>          sizePolicy.setVerticalStretch(0)
>          
> sizePolicy.setHeightForWidth(self.label_5.sizePolicy().hasHeightForWidth())
>          self.label_5.setSizePolicy(sizePolicy)
>          self.label_5.setObjectName("label_5")
>          self.gridLayout_2.addWidget(self.label_5, 1, 0, 1, 1)
>          self.groupBox_2 = QtWidgets.QGroupBox(DbManagerDlgExportVector)
>          self.groupBox_2.setObjectName("groupBox_2")
>          self.gridLayout = QtWidgets.QGridLayout(self.groupBox_2)
>          self.gridLayout.setObjectName("gridLayout")
>          self.chkDropTable = QtWidgets.QCheckBox(self.groupBox_2)
>          self.chkDropTable.setObjectName("chkDropTable")
>          self.gridLayout.addWidget(self.chkDropTable, 2, 0, 1, 2)
>          self.horizontalLayout = QtWidgets.QHBoxLayout()
>          self.horizontalLayout.setObjectName("horizontalLayout")
>          self.chkSourceSrid = QtWidgets.QCheckBox(self.groupBox_2)
>          self.chkSourceSrid.setObjectName("chkSourceSrid")
>          self.horizontalLayout.addWidget(self.chkSourceSrid)
>          self.editSourceSrid = QtWidgets.QLineEdit(self.groupBox_2)
>          self.editSourceSrid.setEnabled(False)
>          self.editSourceSrid.setText("")
>          self.editSourceSrid.setObjectName("editSourceSrid")
>          self.horizontalLayout.addWidget(self.editSourceSrid)
>          spacerItem = QtWidgets.QSpacerItem(40, 20, 
> QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Minimum)
>          self.horizontalLayout.addItem(spacerItem)
>          self.chkTargetSrid = QtWidgets.QCheckBox(self.groupBox_2)
>          self.chkTargetSrid.setObjectName("chkTargetSrid")
>          self.horizontalLayout.addWidget(self.chkTargetSrid)
>          self.editTargetSrid = QtWidgets.QLineEdit(self.groupBox_2)
>          self.editTargetSrid.setEnabled(False)
>          self.editTargetSrid.setText("")
>          self.editTargetSrid.setObjectName("editTargetSrid")
>          self.horizontalLayout.addWidget(self.editTargetSrid)
>          self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 2)
>          self.chkEncoding = QtWidgets.QCheckBox(self.groupBox_2)
>          self.chkEncoding.setObjectName("chkEncoding")
>          self.gridLayout.addWidget(self.chkEncoding, 1, 0, 1, 1)
>          self.cboEncoding = QtWidgets.QComboBox(self.groupBox_2)
>          self.cboEncoding.setEnabled(False)
>          sizePolicy = 
> QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, 
> QtWidgets.QSizePolicy.Fixed)
>          sizePolicy.setHorizontalStretch(0)
>          sizePolicy.setVerticalStretch(0)
>          
> sizePolicy.setHeightForWidth(self.cboEncoding.sizePolicy().hasHeightForWidth())
>          self.cboEncoding.setSizePolicy(sizePolicy)
>          self.cboEncoding.setEditable(False)
>          self.cboEncoding.setInsertPolicy(QtWidgets.QComboBox.NoInsert)
>          self.cboEncoding.setObjectName("cboEncoding")
>          self.gridLayout.addWidget(self.cboEncoding, 1, 1, 1, 1)
>          self.gridLayout_2.addWidget(self.groupBox_2, 2, 0, 1, 3)
>          self.btnChooseOutputFile = 
> QtWidgets.QToolButton(DbManagerDlgExportVector)
>          self.btnChooseOutputFile.setObjectName("btnChooseOutputFile")
>          self.gridLayout_2.addWidget(self.btnChooseOutputFile, 1, 2, 1, 1)
>          self.label = QtWidgets.QLabel(DbManagerDlgExportVector)
>          self.label.setObjectName("label")
>          self.gridLayout_2.addWidget(self.label, 0, 0, 1, 1)
> 
>          self.retranslateUi(DbManagerDlgExportVector)
>          
> self.buttonBox.rejected.connect(DbManagerDlgExportVector.reject) # type: 
> ignore
>          
> self.chkSourceSrid.toggled['bool'].connect(self.editSourceSrid.setEnabled) # type: ignore
>          
> self.chkTargetSrid.toggled['bool'].connect(self.editTargetSrid.setEnabled) # type: ignore
>          
> self.chkEncoding.toggled['bool'].connect(self.cboEncoding.setEnabled) # 
> type: ignore
>          
> self.buttonBox.accepted.connect(DbManagerDlgExportVector.accept) # type: 
> ignore
>          QtCore.QMetaObject.connectSlotsByName(DbManagerDlgExportVector)
>          DbManagerDlgExportVector.setTabOrder(self.chkSourceSrid, 
> self.editSourceSrid)
>          DbManagerDlgExportVector.setTabOrder(self.editSourceSrid, 
> self.chkEncoding)
>          DbManagerDlgExportVector.setTabOrder(self.chkEncoding, 
> self.cboEncoding)
>          DbManagerDlgExportVector.setTabOrder(self.cboEncoding, 
> self.buttonBox)
> 
>      def retranslateUi(self, DbManagerDlgExportVector):
>          _translate = QtCore.QCoreApplication.translate
>          
> DbManagerDlgExportVector.setWindowTitle(_translate("DbManagerDlgExportVector", "Export to vector file"))
>          self.label_5.setText(_translate("DbManagerDlgExportVector", 
> "Save as"))
>          self.groupBox_2.setTitle(_translate("DbManagerDlgExportVector", 
> "Options"))
>          
> self.chkDropTable.setText(_translate("DbManagerDlgExportVector", 
> "Replace destination file (if exists)"))
>          
> self.chkSourceSrid.setText(_translate("DbManagerDlgExportVector", 
> "Source SRID"))
>          
> self.chkTargetSrid.setText(_translate("DbManagerDlgExportVector", 
> "Target SRID"))
>          
> self.chkEncoding.setToolTip(_translate("DbManagerDlgExportVector", 
> "Output file encoding"))
>          self.chkEncoding.setText(_translate("DbManagerDlgExportVector", 
> "Encoding"))
>          
> self.btnChooseOutputFile.setText(_translate("DbManagerDlgExportVector", 
> "…"))
>          self.label.setText(_translate("DbManagerDlgExportVector", 
> "Format"))
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer


More information about the QGIS-Developer mailing list