[Qgis-developer] error with new table manager plugin

Carlos Dávila cdavilam at jemila.jazztel.es
Sun Feb 1 12:54:51 EST 2009


Paolo Cavallini escribió:
> An error has occured while executing Python code:
>
> Traceback (most recent call last):
>   File
> "/home/paolo/.qgis//python/plugins/tablemanager/tableManager_plugin.py",
> line 63, in run
>     dialoga = tableManager_gui.TableManager(self.iface)
>   File
> "/home/paolo/.qgis//python/plugins/tablemanager/tableManager_gui.py",
> line 174, in __init__
>     self.drawFieldsTable()
>   File
> "/home/paolo/.qgis//python/plugins/tablemanager/tableManager_gui.py",
> line 184, in drawFieldsTable
>     item = QTableWidgetItem(fields[i].name())
> KeyError: 3
>
>   
I also get an error trying to add a new field:

Traceback (most recent call last):
  File
"/home/carlos/.qgis//python/plugins/tablemanager/tableManager_gui.py",
line 363, in doInsert
    dlg = DialogInsert(self.iface,self.fields,self.selection)
  File
"/home/carlos/.qgis//python/plugins/tablemanager/tableManager_gui.py",
line 113, in __init__
    self.setWindowTitle('Insert field: '+fields[selection].name())
KeyError: -1



More information about the Qgis-developer mailing list