Opened 16 years ago

Closed 16 years ago

Last modified 15 years ago

#1270 closed bug (invalid)

Python plugins refuse to load "due an error when calling its initGui() method"

Reported by: msieczka Owned by: nobody
Priority: critical: causes crash or data corruption Milestone:
Component: Python plugins and bindings Version: Trunk
Keywords: Cc:
Must Fix for Release: Yes Platform: Debian
Platform Version: Awaiting user input: no

Description

In r9245 all Python plugins refuse to load with an error:

Nie można wczytać wtyczkifTools due an error when calling its initGui() method

In r9243 it was all ok.

Full error output:

Nie można wczytać wtyczkigeoprocessing due an error when calling its initGui() method

Traceback (most recent call last):
  File "", line 1, in 
  File "/home/shoofi/.qgis//python/plugins/geoprocessing/geoprocessing.py", line 83, in initGui
    self.actionGeoprocessing = QAction(QIcon(":/plugins/geoprocessing/icon_buffer.xpm"), QCoreApplication.translate("Geoprocessing","Geoprocessing Tool"), self.iface.getMainWindow())
AttributeError: getMainWindow

Python version:
2.5.2 (r252:60911, Aug  6 2008, 09:48:46) 
[GCC 4.3.1]

Python path:
['/usr/local/qgis/share/qgis/python', '/home/shoofi/.qgis//python/plugins', '/usr/local/qgis/share/qgis/python/plugins', '/usr/lib/python2.5', '/usr/lib/python2.5/plat-linux2', '/usr/lib/python2.5/lib-tk', '/usr/lib/python2.5/lib-dynload', '/usr/local/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages', '/usr/lib/python2.5/site-packages/Numeric', '/usr/lib/python2.5/site-packages/PIL', '/usr/lib/python2.5/site-packages/gst-0.10', '/var/lib/python-support/python2.5', '/var/lib/python-support/python2.5/gtk-2.0', '/usr/lib/python2.5/site-packages/wx-2.8-gtk2-unicode', '/home/shoofi/.qgis/python/plugins/fTools/tools']

Cosmetic issue - there should be a space between words "wtyczki" and the plugin name ("fTools" in this case).

Change History (2)

comment:1 by jef, 16 years ago

Resolution: invalid
Status: newclosed

the plugins need to be updated for the new API. what used to be named getMainWindow() is now called mainWindow().

See http://lists.osgeo.org/pipermail/qgis-developer/2008-August/004721.html

comment:2 by (none), 15 years ago

Milestone: Version 1.0.0

Milestone Version 1.0.0 deleted

Note: See TracTickets for help on using tickets.