Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in Basic statistics for numeric fields #23664

Closed
qgib opened this issue Oct 22, 2016 · 15 comments
Closed

Error in Basic statistics for numeric fields #23664

qgib opened this issue Oct 22, 2016 · 15 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms

Comments

@qgib
Copy link
Contributor

qgib commented Oct 22, 2016

Author Name: Paolo Cavallini (@pcav)
Original Redmine Issue: 15742
Affected QGIS version: 2.18.0
Redmine category:processing/qgis
Assignee: Victor Olaya


running the alg from Processing I get:

Uncaught error while executing algorithm
			Traceback (most recent call last):
			  File
"/usr/share/qgis/python/plugins/processing/core/GeoAlgorithm.py", line
203, in execute
			    self.processAlgorithm(progress)
			  File
"/usr/share/qgis/python/plugins/processing/algs/qgis/BasicStatisticsNumbers.py",
line 175, in processAlgorithm
			    data.append(self.tr('Interquartile Range (IQR): {}').format(iqr))
			ValueError: Single '{' encountered in format string

@qgib
Copy link
Contributor Author

qgib commented Oct 24, 2016

Author Name: Paolo Cavallini (@pcav)


Still true for 2.18


  • version was changed from 2.16.3 to 2.18.0

@qgib
Copy link
Contributor Author

qgib commented Oct 25, 2016

Author Name: Alexander Bruy (@alexbruy)


Can't reproduce using Processing and QGIS test data. Can you share dataset which causes this?

@qgib
Copy link
Contributor Author

qgib commented Oct 25, 2016

Author Name: Paolo Cavallini (@pcav)


It happens with any data here, just tested.

@qgib
Copy link
Contributor Author

qgib commented Oct 25, 2016

Author Name: Alexander Bruy (@alexbruy)


Strange. Can't reproduce locally, and as I can see Travis also does not report any failure for this alg

@qgib
Copy link
Contributor Author

qgib commented Oct 25, 2016

Author Name: Paolo Cavallini (@pcav)


Very strange indeed. Could it be due to a different version of a lib? I just tested again, and confirm the issue.


  • os_version was changed from to Sid
  • operating_system was changed from to Debian

@qgib
Copy link
Contributor Author

qgib commented Oct 25, 2016

Author Name: Giovanni Manghi (@gioman)


Work fine here on 2.18 on both Windows (standalone) and Ubuntu 16.04, with any data.


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Oct 25, 2016

Author Name: Giovanni Manghi (@gioman)


Paolo Cavallini wrote:

Very strange indeed. Could it be due to a different version of a lib? I just tested again, and confirm the issue.

can you test on another machine (with a different os/os version)? thanks.

@qgib
Copy link
Contributor Author

qgib commented Oct 25, 2016

Author Name: Paolo Cavallini (@pcav)


Sure, already planned, next days during a course, with several machines.
Thanks for checking.

@qgib
Copy link
Contributor Author

qgib commented Oct 25, 2016

Author Name: Paolo Cavallini (@pcav)


Verified on 10 Windows boxes, it works on only 2 of them, same error confirmed for the other 8.

@qgib
Copy link
Contributor Author

qgib commented Oct 26, 2016

Author Name: Giovanni Manghi (@gioman)


Paolo Cavallini wrote:

Verified on 10 Windows boxes, it works on only 2 of them, same error confirmed for the other 8.

where it fails, are all clean installations? have you tried purge the .qgis2 folder and see if anything changes?
On clean installations it does not fail.

@qgib
Copy link
Contributor Author

qgib commented Oct 26, 2016

Author Name: Paolo Cavallini (@pcav)


This happens in 9 machines, with a variety of settings. Some of them have uninstalled 2.16 before installing 2.18, some starts from a clean .qgis2.
It works in machines with a long history of installations.
I can do further testing after the course.

@qgib
Copy link
Contributor Author

qgib commented Dec 29, 2016

Author Name: Alexander Bruy (@alexbruy)


Still can not reproduce on Windows and Linux, also tests for this alg passed on Travis. Looks like local issue.

@qgib
Copy link
Contributor Author

qgib commented Jan 3, 2017

Author Name: Giovanni Manghi (@gioman)


I can do further testing after the course.

further testing to find the likely local issue are needed. Please reopen if you find a real evidence of a core qgis problem.


  • resolution was changed from to not reproducable
  • status_id was changed from Feedback to Closed

@qgib
Copy link
Contributor Author

qgib commented Oct 20, 2017

Author Name: Joao Paulouro (Joao Paulouro)


I can confirm the bug on a QGIS 2.18.13 installation via homebrew on mac. The issue seems to only affect values with decimals (numeric, real, etc) and can only reproduce on Postgis layers. Same layer exported as a shapefile works.

@qgib
Copy link
Contributor Author

qgib commented Oct 20, 2017

Author Name: Giovanni Manghi (@gioman)


Joao Paulouro wrote:

I can confirm the bug on a QGIS 2.18.13 installation via homebrew on mac. The issue seems to only affect values with decimals (numeric, real, etc) and can only reproduce on Postgis layers. Same layer exported as a shapefile works.

chekc if you have a "processing" folder in ~/.qgis2/python/plugins/

if yes delete it, restart qgis and try again.


  • description was changed from running the alg from Processing I get:
Uncaught error while executing algorithm
			Traceback (most recent call last):
			  File
"/usr/share/qgis/python/plugins/processing/core/GeoAlgorithm.py", line
203, in execute
			    self.processAlgorithm(progress)
			  File
"/usr/share/qgis/python/plugins/processing/algs/qgis/BasicStatisticsNumbers.py",
line 175, in processAlgorithm
			    data.append(self.tr('Interquartile Range (IQR): {}').format(iqr))
			ValueError: Single '{' encountered in format string
to running the alg from Processing I get:
Uncaught error while executing algorithm
			Traceback (most recent call last):
			  File
"/usr/share/qgis/python/plugins/processing/core/GeoAlgorithm.py", line
203, in execute
			    self.processAlgorithm(progress)
			  File
"/usr/share/qgis/python/plugins/processing/algs/qgis/BasicStatisticsNumbers.py",
line 175, in processAlgorithm
			    data.append(self.tr('Interquartile Range (IQR): {}').format(iqr))
			ValueError: Single '{' encountered in format string

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms labels May 25, 2019
@qgib qgib closed this as completed May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms
Projects
None yet
Development

No branches or pull requests

1 participant