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

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

Closed
qgib opened this issue Feb 14, 2011 · 3 comments
Closed
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Plugins

Comments

@qgib
Copy link
Contributor

qgib commented Feb 14, 2011

Author Name: vvj - (vvj -)
Original Redmine Issue: 3491

Redmine category:python_plugins
Assignee: Martin Dobias


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.

@qgib
Copy link
Contributor Author

qgib commented Feb 14, 2011

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


[[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 [[PyQt]]4 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

@qgib
Copy link
Contributor Author

qgib commented Feb 14, 2011

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


  • resolution was configured as invalid
  • status_id was changed from Open to Closed

@qgib
Copy link
Contributor Author

qgib commented Feb 14, 2011

Author Name: Martin Dobias (@wonder-sk)


This issue should be fixed in v0.5.14.

Martin

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Plugins labels May 24, 2019
@qgib qgib closed this as completed May 24, 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! Plugins
Projects
None yet
Development

No branches or pull requests

1 participant