[Qgis-developer] Fwd: free Hand Error

Pavol Kapusta pavol.kapusta at gmail.com
Fri Nov 26 07:19:26 EST 2010


Dn(a 26.11.2010 11:07, Paolo Cavallini  wrote / napísal(a):
> Another error, this time from FreeHand plugin.
> Sorry for flooding ;)
>
> Errore durante l'esecuzione di codice Python:
>
> Traceback (most recent call last):
>    File "C:/Documents and
> Settings/utent3/.qgis//python/plugins\freehandEditing\freehandediting.py", 
>
> line 152, in createFeature
>      s = g.simplify(tolerance)
> AttributeError: 'NoneType' object has no attribute 'simplify'
>
> Versione Python:
> 2.5.2 (r252:60911, Feb 21 2008, 13:11:45) [MSC v.1310 32 bit (Intel)]
>
>
> Versione di QGIS:
> 1.5.0-Tethys Tethys, 13923M
>
> Percorso Python: ['C:/PROGRA~1/QUANTU~1/apps/qgis/./python',
> 'C:\\Documents and Settings\\utent3/.qgis/python', 'C:\\Documents and
> Settings\\utent3/.qgis/python/plugins',
> 'C:/PROGRA~1/QUANTU~1/apps/qgis/./python/plugins',
> 'C:\\PROGRA~1\\QUANTU~1\\apps\\gdal-16\\pymod', 'C:\\ArcGIS\\bin',
> 'C:\\PROGRA~1\\QUANTU~1\\bin\\python25.zip',
> 'C:\\PROGRA~1\\QUANTU~1\\apps\\Python25\\DLLs',
> 'C:\\PROGRA~1\\QUANTU~1\\apps\\Python25\\lib',
> 'C:\\PROGRA~1\\QUANTU~1\\apps\\Python25\\lib\\plat-win',
> 'C:\\PROGRA~1\\QUANTU~1\\apps\\Python25\\lib\\lib-tk',
> 'C:\\PROGRA~1\\QUANTU~1\\apps\\qgis\\bin',
> 'C:\\PROGRA~1\\QUANTU~1\\apps\\Python25',
> 'C:\\PROGRA~1\\QUANTU~1\\apps\\Python25\\lib\\site-packages',
> 'C:\\PROGRA~1\\QUANTU~1\\apps\\Python25\\lib\\site-packages\\win32',
> 'C:\\PROGRA~1\\QUANTU~1\\apps\\Python25\\lib\\site-packages\\win32\\lib', 
> 'C:\\PROGRA~1\\QUANTU~1\\apps\\Python25\\lib\\site-packages\\Pythonwin',
> 'C:\\PROGRA~1\\QUANTU~1\\apps\\Python25\\lib\\site-packages\\wx-2.8-msw-unicode', 
>
> u'C:/Documents and Settings/utent3/.qgis//python/plugins',
> 'C:\\PROGRA~1\\QUANTU~1\\apps\\qgis\\python\\plugins\\fTools\\tools',
> 'C:/AAA_Dati_corso_QGIS']
> _______________________________________________
> Qgis-developer mailing list
> Qgis-developer at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/qgis-developer
Hello Paolo,

I tried to reproduce this issue on Windows machine, but there is 
currently only 1.6.0 and higher version of qgis in OSGEO4W installer, 
and I didn`t notice any buggy behavior.
Please upgrade to version 1.6.0, and let me know, if do you see any 
problem with this again.

I tried this also in 1.5.0 in Linux and saw another message:

Traceback (most recent call last):
   File 
"/home/pavol/.qgis/python/plugins/freehandEditing/freehandediting.py", 
line 158, in createFeature
     if not (s.validateGeometry()):
AttributeError: 'QgsGeometry' object has no attribute 'validateGeometry'

Verzia Pythonu:
2.7 (r27:82500, Oct 20 2010, 03:21:03)
[GCC 4.5.1]


QGIS version:
1.5.0-Tethys Tethys, exported

This is related with code adopted from Cédric Möri`s traceDigitize 
plugin (many thanks to him) and probably I have to change the flag for 
QGIS Minimal version for this plugin to 1.6.

Thanks for feedback.

Pavol


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/qgis-developer/attachments/20101126/35412d03/attachment-0001.html


More information about the Qgis-developer mailing list