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

Convex Hull - QProgressBar.setRange(int, int): argument 2 has unexpected type 'long' #19764

Closed
qgib opened this issue Oct 24, 2014 · 4 comments
Closed
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 24, 2014

Author Name: Daniel B (Daniel B)
Original Redmine Issue: 11494
Affected QGIS version: master
Redmine category:processing/qgis


When trying to create convex hulls with settings Create convex hull based on input field, the following error pops up after a few seconds and polygon does not get created:

An error has occured while executing Python code:

Traceback (most recent call last):
File "C:\PROGRA1\QGISCH1\apps\qgis\python\plugins\fTools\tools\doGeoprocessing.py", line 273, in runRangeFromThread
self.progressBar.setRange( range_vals[ 0 ], range_vals[ 1 ] )
TypeError: QProgressBar.setRange(int, int): argument 2 has unexpected type 'long'

Python version:
2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]

QGIS version:
2.4.0-Chugiak Chugiak, 8fdd08a

I have confirmed that with the same dataset and choosing single minimum convex hull, the polygon is created successfully.

@qgib
Copy link
Contributor Author

qgib commented Oct 26, 2014

Author Name: Giovanni Manghi (@gioman)


I cannot confirm on QGIS master, can you test it? if you still get the same issue please attach sample data.

meanwhile I can confirm that the same tool in the processing toolbox works only if creating a single convex hull, if the option to create different CHs based on an attribute then the output is empty.


  • assigned_to_id was configured as Victor Olaya
  • version was changed from 2.4.0 to master
  • status_id was changed from Open to Feedback
  • category_id was configured as Processing/QGIS

@qgib
Copy link
Contributor Author

qgib commented Nov 17, 2014

Author Name: Alexander Bruy (@alexbruy)


From error message I see, that fTools used, not Processing.


  • category_id was changed from Processing/QGIS to 44
  • assigned_to_id removed Victor Olaya

@qgib
Copy link
Contributor Author

qgib commented May 20, 2015

Author Name: Alexander Bruy (@alexbruy)


Not reproducible with fTools and Processing


  • status_id was changed from Feedback to Closed
  • resolution was changed from to worksforme

@qgib
Copy link
Contributor Author

qgib commented Apr 30, 2017

Author Name: Giovanni Manghi (@gioman)


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

@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