Bug report #8105

Ftools-Basic statistics does not work

Added by vinayan Parameswaran over 11 years ago. Updated over 7 years ago.

Status:Closed
Priority:Severe/Regression
Assignee:-
Category:Processing/QGIS
Affected QGIS version:master Regression?:
Operating System: Easy fix?:
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:16940

Description

press ok with default values..here is the log..

Traceback (most recent call last):
  File "/home/vinayan/gitQgisBuild/output/python/plugins/fTools/tools/doVisual.py", line 226, in run
    ( lst, cnt ) = self.basic_statistics( self.vlayer, self.myField )
  File "/home/vinayan/gitQgisBuild/output/python/plugins/fTools/tools/doVisual.py", line 365, in basic_statistics
    value = float( atMap[ index ] )
TypeError: float() argument must be a string or a number

Python version:
2.7.3 (default, Aug  1 2012, 05:25:23) 
[GCC 4.6.3]

QGIS version:
1.9.0-Master Master, da0e4f3

Associated revisions

Revision 5e4a9dff
Added by Matthias Kuhn over 11 years ago

[ftools] Several fixes
Fix #8107 Mean coordinates
Fix #8105 Basic statistics
Fix #8104 Unique values

Revision 419d8ee5
Added by Matthias Kuhn over 11 years ago

[ftools] Fix basic statistics (Fix #8105)

History

#1 Updated by Matthias Kuhn over 11 years ago

  • Status changed from Open to Closed

#2 Updated by vinayan Parameswaran over 11 years ago

  • Status changed from Closed to Reopened

I get a different error now..

An error has occured while executing Python code:

Traceback (most recent call last):
File "E:\\GISApps\\dev\\qgisbuild\\output\\python\\plugins\\fTools\\tools\\doVisual.py", line 226, in run
( lst, cnt ) = self.basic_statistics( self.vlayer, self.myField )
File "E:\\GISApps\\dev\\qgisbuild\\output\\python\\plugins\\fTools\\tools\\doVisual.py", line 365, in basic_statistics
value = float( atMap[ index ] )
TypeError: float() argument must be a string or a number

Python version:
2.7.4 (default, Apr 6 2013, 19:54:46) [MSC v.1500 32 bit (Intel)]

QGIS version:
1.9.0-Master Master, d91f36d

#3 Updated by Matthias Kuhn over 11 years ago

  • Status changed from Reopened to Closed

#4 Updated by Giovanni Manghi over 7 years ago

The "ftools" category is being removed from the tracker, changing the category of this ticket to "Processing/QGIS" to not leave the category orphaned.

Also available in: Atom PDF