Couldn't load plugin 'Discovery' due to an error when calling its initGui() method
Closed this issue · 0 comments
I'm testing the new version of the plugin 2.1.1 in QGIS Master and couldn't get it to work with database connections without a saved password or with connections saved in the qgis-auth.db. I deleted all my postgresql database connections and recreated them and now I get the following error:
Couldn't load plugin 'Discovery' due to an error when calling its initGui() method
AttributeError: type object 'QgsMessageBar' has no attribute 'CRITICAL'
Traceback (most recent call last): File "C:/OSGEO4~1/apps/qgis-dev/./python\qgis\utils.py", line 345, in startPlugin plugins[packageName].initGui() File "C:/Users/someuser/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Discovery\discoveryplugin.py", line 214, in initGui self.read_config(config_list[0] if config_list else "") File "C:/Users/someuser/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\Discovery\discoveryplugin.py", line 406, in read_config level=QgsMessageBar.CRITICAL)
AttributeError: type object 'QgsMessageBar' has no attribute 'CRITICAL'
Python version: 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.1900 64 bit (AMD64)]
QGIS version: 3.1.0-Master Master, d7fd14b340
Python Path: C:/OSGEO4~1/apps/qgis-dev/./python C:/Users/someuser/AppData/Roaming/QGIS/QGIS3\profiles\default/python C:/Users/someuser/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins C:/OSGEO4~1/apps/qgis-dev/./python/plugins C:\OSGeo4W64\bin\python36.zip C:\OSGEO4~1\apps\Python36\DLLs C:\OSGEO4~1\apps\Python36\lib C:\OSGeo4W64\bin C:\OSGEO4~1\apps\Python36 C:\OSGEO4~1\apps\Python36\lib\site-packages C:/Users/someuser/AppData/Roaming/QGIS/QGIS3\profiles\default/python C:\Users\someuser\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins C:\Users\someuser\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins
I'm on Windows 7 64bit. Running QGIS Master installed via OSGeo4W.