Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not open qgz #27169

Closed
qgib opened this issue Jul 5, 2018 · 2 comments
Closed

Can not open qgz #27169

qgib opened this issue Jul 5, 2018 · 2 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!

Comments

@qgib
Copy link
Contributor

qgib commented Jul 5, 2018

Author Name: Andrew Shanin (Andrew Shanin)
Original Redmine Issue: 19341
Affected QGIS version: 3.2
Redmine category:unknown


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 

Workplace is empty after open.

@qgib
Copy link
Contributor Author

qgib commented Jul 5, 2018

Author Name: Jürgen Fischer (@jef-n)


Looks like a problem in the lrs plugin to me. I don't see any relation to @qpz@ at least. Please file a ticket there.


  • resolution was changed from to invalid
  • status_id was changed from Open to Closed
  • category_id was changed from Processing/Core to Plugin Manager
  • description was changed from TypeError: unable to convert a QVariant of type 10 to a QMetaType of type 2
    Traceback (most recent call last):
    File "C:/PROGRA1/QGIS31.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, bc43194

Workplace is empty after open.
to


TypeError: unable to convert a QVariant of type 10 to a QMetaType of type 2
Traceback (most recent call last):
File "C:/PROGRA1/QGIS31.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

Workplace is empty after open.

@qgib qgib closed this as completed Jul 5, 2018
@qgib
Copy link
Contributor Author

qgib commented Jul 5, 2018

Author Name: Jürgen Fischer (@jef-n)


  • category_id was changed from Plugin Manager to Unknown

@qgib qgib added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!
Projects
None yet
Development

No branches or pull requests

1 participant