it could be that your field is a string, try copying it to another field as an Integer, using the field calculator.
Etienne On Tue, Jan 8, 2013 at 9:56 AM, G.T.C.vandenBerg <gtcvandenb...@gmail.com> wrote: > Hello, > > > I had planned to use the QGIS-plugin 'Contour' from the Official QGIS repo > to create a contourline-shapefile from a point-shapefile. My point-shapefile > has 1 column ('z') in which represents the altitude of the points. However, > when I click the plugin-button I get the following message: > > > "Failure while executing Pyton code: > > Traceback (most recent call last): > File "/home/guus/.qgis//python/plugins/contour/contour.py", line 266, in > uFieldNameUpdate > x, y, z = self.getData(self._layer, inputField) > File "/home/guus/.qgis//python/plugins/contour/contour.py", line 590, in > getData > z = map(float, z) #TODO : take care of NaNs, NULL, "",... > ValueError: could not convert string to float: > > Python version: > 2.7.3 (default, Aug 1 2012, 05:25:23) > [GCC 4.6.3] > > QGIS version: > 1.8.0-Lisboa Lisboa, exported" > > > And when I close this message, I get another one: > > > "Failure while executing Pyton code: > > Traceback (most recent call last): > File "/home/guus/.qgis//python/plugins/contour/contour.py", line 70, in run > dlg = ContourDialog(self._iface) > File "/home/guus/.qgis//python/plugins/contour/contour.py", line 145, in > __init__ > if self._isMPLOk() == False: > File "/home/guus/.qgis//python/plugins/contour/contour.py", line 177, in > _isMPLOk > version = [int(i) for i in mpl.__version__.split('.')] > ValueError: invalid literal for int() with base 10: '1rc' > > Python version: > 2.7.3 (default, Aug 1 2012, 05:25:23) > [GCC 4.6.3] > > QGIS version: > 1.8.0-Lisboa Lisboa, exported" > > Does anybody have an idea what goes wrong? It's clearly not my > point-shapefile, as the failure-message appears before I'm able to select > anything. > > Regards, > > Guus van den Berg > > > > -- > View this message in context: > http://osgeo-org.1560.n6.nabble.com/Contour-plugin-Official-QGIS-repository-failure-tp5026137.html > Sent from the Quantum GIS - Developer mailing list archive at Nabble.com. > _______________________________________________ > Qgis-developer mailing list > Qgis-developer@lists.osgeo.org > http://lists.osgeo.org/mailman/listinfo/qgis-developer _______________________________________________ Qgis-developer mailing list Qgis-developer@lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/qgis-developer