[Qgis-user] Metaedit error

Martin Dobias wonder.sk at gmail.com
Mon May 4 05:38:39 PDT 2009


On Mon, May 4, 2009 at 1:11 PM, Agustin Lobo <alobolistas at gmail.com> wrote:
> As soon as I select the Metadata Editor plugin, I get:
> An error has occured while executing Python code:
>
> Traceback (most recent call last):
>  File "/home/alobo/.qgis//python/plugins/metaedit/metaedit.py", line 68, in
> run
>    self.dlg = metaeditTool.Dialog(self.iface,True)
>  File "/home/alobo/.qgis//python/plugins/metaedit/metaeditTool.py", line 50,
> in __init__
>    self.setupUi(self)
>  File "/home/alobo/.qgis//python/plugins/metaedit/metaeditUi.py", line 90,
> in setupUi
>    self.plainTextEdit = QtGui.QPlainTextEdit(self.tab)
> AttributeError: 'module' object has no attribute 'QPlainTextEdit'
>
> Python version:
> 2.5.2 (r252:60911, Jul 31 2008, 17:44:49)
> [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)]
>
>
> Any idea on what's wrong? Should I fill a ticket?

QPlainTextEdit class has been added in Qt4.4 I think, so it probably
fails because you have older Qt or PyQt. So either you can upgrade
your installation or metaedit developers can use QTextEdit instead
which is present also in older versions.

Martin



More information about the Qgis-user mailing list