[Qgis-developer] "Spline" plugin bug on QGis 2.0.1 64 bit Windows

Radim Blazek radim.blazek at gmail.com
Sat Feb 8 09:26:57 PST 2014


On Fri, Feb 7, 2014 at 5:11 PM, Geo DrinX <geodrinx at gmail.com> wrote:
> Hello all,
>
>
> as in object, something other had my same error, closing a spline path ?
>
>
> Traceback (most recent call last):
>   File "C:\Users\rrr/.qgis2/python/plugins\spline\spline.py", line 97, in
> canvasPressEvent
>     self.createFeature()
>   File "C:\Users\rrr/.qgis2/python/plugins\spline\spline.py", line 145, in
> createFeature
>     if dlg.exec_():
> AttributeError: 'NoneType' object has no attribute 'exec_'

It means that iface.getFeatureForm(layer, f) returned None, that
should not usually happen.

Can you try to select a vector layer and run from python shell:

layer = iface.mapCanvas().currentLayer()
f = QgsFeature(layer.pendingFields())
dlg = iface.getFeatureForm(layer, f)
dlg.exec_()

Radim


> Versione Python:
> 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]
>
>
> Thank you for any info about it
>
> Roberto
>
>
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer


More information about the Qgis-developer mailing list