Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#3491 closed bug (invalid)

Couldn't load plugin postgis_manager due an error when calling its initGui() method

Reported by: vvj Owned by: wonder
Priority: major: does not work as expected Milestone:
Component: Python plugins and bindings Version: 1.6.0
Keywords: postgis_manager, initGui() Cc:
Must Fix for Release: Yes Platform: Windows
Platform Version: Awaiting user input: no

Description

After updating Qgis to 1.6.0-3 from 1.6.0-2 using OSGeo4W advanced installer (and some new libs were offered), Postgis Manager plugin stopped working:

'''Couldn't load plugin postgis_manager due an error when calling its initGui() method'''

Traceback (most recent call last):
  File "C:/OSGeo4W/apps/qgis/./python\qgis\utils.py", line 147, in startPlugin
    plugins[packageName].initGui()
  File "D:/Users/user1/.qgis/python/plugins\postgis_manager\ManagerPlugin.py", line 24, in initGui
    self.iface.addPluginToDatabaseMenu("&PostGIS Manager", self.action)
TypeError: 'sip.methoddescriptor' object is not callable

Python version:
2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]


QGIS version:
1.6.0-Capiapo Capiapo, exported

Python path: ['C:/OSGeo4W/apps/qgis/./python', 'D:/Users/arctic/.qgis/python', 'D:/Users/user1/.qgis/python/plugins', 'C:/OSGeo4W/apps/qgis/./python/plugins', 'C:\\OSGeo4W\\bin\\python25.zip', 'C:\\OSGeo4W\\apps\\Python25\\DLLs', 'C:\\OSGeo4W\\apps\\Python25\\lib', 'C:\\OSGeo4W\\apps\\Python25\\lib\\plat-win', 'C:\\OSGeo4W\\apps\\Python25\\lib\\lib-tk', 'C:\\OSGeo4W\\apps\\qgis\\bin', 'C:\\OSGeo4W\\apps\\Python25', 'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages', 'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\win32', 'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\win32\\lib', 'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\Pythonwin', 'C:\\OSGeo4W\\apps\\Python25\\lib\\site-packages\\wx-2.8-msw-unicode', 'D:\\Users\\arctic\\.qgis\\python\\plugins\\cadtools\\tools']

I also get this error when trying to install this plugin after removing it. Just checked with 1.6.0-4 version - problem remains.

Change History (3)

comment:1 by jef, 13 years ago

Owner: changed from borysiasty to wonder

PostGIS manager tries to add an entry to the database menu available in trunk and if that fails add it database menu. Unfortunately it only catches AttributeError exceptions, but no TypeError exceptions to do that. The change of exceptions is probably due to the sip or PyQt4 update in OSGeo4W.

But plugins not in core are out of scope for this TRAC. The plugin needs to be updated by it's author Martin Dobias

comment:2 by jef, 13 years ago

Resolution: invalid
Status: newclosed

comment:3 by wonder, 13 years ago

This issue should be fixed in v0.5.14.

Martin

Note: See TracTickets for help on using tickets.