do you have these lines: from qgis.core import * from qgis.gui import * at beginning of the source code? Arpita Singh <singarpita at gmail.com> scritti il 13/03/2010 10.21.37 > snap = QgsMapCanvasSnapper() > error"QgsMapCanvasSnapper() not defined" > > -- > Regards > Arpita