Bug report #19341
Updated by Jürgen Fischer over 6 years ago
<pre>
TypeError: unable to convert a QVariant of type 10 to a QMetaType of type 2
Traceback (most recent call last):
File "C:/PROGRA~1/QGIS3~1.2/apps/qgis/./python\qgis\utils.py", line 346, in startPlugin
plugins[packageName].initGui()
File "C:/Users/Андрей/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\lrs\lrsplugin.py", line 65, in initGui
self.dockWidget = LrsDockWidget(self.iface.mainWindow(), self.iface)
File "C:/Users/Андрей/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\lrs\ui\lrsdockwidget.py", line 278, in __init__
self.resetExportOptions()
File "C:/Users/Андрей/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\lrs\ui\lrsdockwidget.py", line 1064, in resetExportOptions
for connection in ExportPostgis.getPostgisConnections():
File "C:/Users/Андрей/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\lrs\lrs\postgis.py", line 136, in getPostgisConnections
connection = ExportPostgis.getPostgisConnection(connectionName)
File "C:/Users/Андрей/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\lrs\lrs\postgis.py", line 117, in getPostgisConnection
sslmode = settings.value("sslmode", QgsDataSourceUri.SslPrefer, type=int)
TypeError: unable to convert a QVariant of type 10 to a QMetaType of type 2
Версия Python: 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.1900 64 bit (AMD64)]
Версия: 3.2.0-Bonn Bonn, bc43194061
</pre>
Workplace is empty after open.
TypeError: unable to convert a QVariant of type 10 to a QMetaType of type 2
Traceback (most recent call last):
File "C:/PROGRA~1/QGIS3~1.2/apps/qgis/./python\qgis\utils.py", line 346, in startPlugin
plugins[packageName].initGui()
File "C:/Users/Андрей/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\lrs\lrsplugin.py", line 65, in initGui
self.dockWidget = LrsDockWidget(self.iface.mainWindow(), self.iface)
File "C:/Users/Андрей/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\lrs\ui\lrsdockwidget.py", line 278, in __init__
self.resetExportOptions()
File "C:/Users/Андрей/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\lrs\ui\lrsdockwidget.py", line 1064, in resetExportOptions
for connection in ExportPostgis.getPostgisConnections():
File "C:/Users/Андрей/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\lrs\lrs\postgis.py", line 136, in getPostgisConnections
connection = ExportPostgis.getPostgisConnection(connectionName)
File "C:/Users/Андрей/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\lrs\lrs\postgis.py", line 117, in getPostgisConnection
sslmode = settings.value("sslmode", QgsDataSourceUri.SslPrefer, type=int)
TypeError: unable to convert a QVariant of type 10 to a QMetaType of type 2
Версия Python: 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.1900 64 bit (AMD64)]
Версия: 3.2.0-Bonn Bonn, bc43194061
</pre>
Workplace is empty after open.