I was conducting Mean Coodinates process functions with weighted fields when I began faces ZeroDivision errors in some processes.
The Shapefile Data has been joined together with imported Spreadsheet data.
I have to run this simulation multiple times and about 70% of the times it has worked without errors while it is giving the following error with the combination of particular shapefiles with certain weighted means.
the error is:
Uncaught error while executing algorithm
Traceback (most recent call last):
Traceback (most recent call last):
File "C:/PROGRA~1/QGISCH~1/apps/qgis/./python/plugins\processing\core\GeoAlgorithm.py", line 217, in execute self.processAlgorithm(progress)
File "C:/PROGRA~1/QGISCH~1/apps/qgis/./python/plugins\processing\algs\qgis\ftools\MeanCoords.py", line 119, in processAlgorithm
cx = values[0] / values[2]
ZeroDivisionError: float division by zero
What is the issue and how can it be solved?
print (values[2]) ; assert values[2] != 0
at line 118. As some point, this assertion will probably fail.