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

Processing preconfigured algorithms python error #23042

Closed
qgib opened this issue Jun 21, 2016 · 2 comments
Closed

Processing preconfigured algorithms python error #23042

qgib opened this issue Jun 21, 2016 · 2 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
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Jun 21, 2016

Author Name: Giovanni Manghi (@gioman)
Original Redmine Issue: 15100
Affected QGIS version: master
Redmine category:processing/core
Assignee: Victor Olaya


  • create a preconfigured algorithm, and save it
  • try open it
  • see messages below

tagging as severe as is a new feature not working as expected.

super-class __init__() of type QgsVectorLayer was never called See log for more details
2016-06-22T07:41:21	2	Uncaught error while executing algorithm
			Traceback (most recent call last):
			  File "/usr/share/qgis/python/plugins/processing/core/GeoAlgorithm.py", line 199, in execute
			    self.resolveTemporaryOutputs()
			  File "/usr/share/qgis/python/plugins/processing/core/GeoAlgorithm.py", line 368, in resolveTemporaryOutputs
			    setTempOutput(out, self)
			  File "/usr/share/qgis/python/plugins/processing/tools/system.py", line 78, in setTempOutput
			    ext = out.getDefaultFileExtension(alg)
			  File "/usr/share/qgis/python/plugins/processing/core/outputs.py", line 277, in getDefaultFileExtension
			    if self.hasGeometry():
			  File "/usr/share/qgis/python/plugins/processing/core/outputs.py", line 261, in hasGeometry
			    return dataobjects.canUseVectorLayer(self.base_layer, [-1])
			  File "/usr/share/qgis/python/plugins/processing/tools/dataobjects.py", line 95, in canUseVectorLayer
			    if layer.type() == QgsMapLayer.VectorLayer and layer.dataProvider().name() != "grass":
			RuntimeError: super-class __init__() of type QgsVectorLayer was never called

@qgib
Copy link
Contributor Author

qgib commented Jul 5, 2016

Author Name: Martin Dobias (@wonder-sk)


It seems like this is the case only after adding the first preconf algorithm, it also breaks the original geoalgorithm. After restart of QGIS things seem to work fine again...

@qgib
Copy link
Contributor Author

qgib commented Jul 5, 2016

Author Name: Martin Dobias (@wonder-sk)


Fixed in changeset "47eae5865abf4cb835071308220b90600212c78d".


  • status_id was changed from Open to Closed

@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 added this to the Version 2.16 milestone 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