Bug report #18898
Updated by Jürgen Fischer over 6 years ago
Hi,
I'm trying to dissolve district polygons to state level using pyqgis. The code worked well in a previous version of qgis 3 (I think 3.0.0) but know the following errors appears: NameError: name 'QgsProcessingFeedback' is not defined
Here is the code and error:
<pre>
processing.runAndLoadResults("native:dissolve", {'INPUT':layer_district,
'FIELD':['STATENAME'],
'OUTPUT':'memory:'})
Traceback (most recent call last):
File "C:\OSGEO4~1\apps\Python36\lib\code.py", line 91, in runcode
exec(code, self.locals)
File "<input>", line 3, in <module>
File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\tools\general.py", line 109, in runAndLoadResults
return Processing.runAlgorithm(alg, parameters=parameters, onFinish=handleAlgorithmResults, feedback=feedback, context=context)
File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\core\Processing.py", line 119, in runAlgorithm
feedback = QgsProcessingFeedback()
NameError: name 'QgsProcessingFeedback' is not defined
</pre>
I'm trying to dissolve district polygons to state level using pyqgis. The code worked well in a previous version of qgis 3 (I think 3.0.0) but know the following errors appears: NameError: name 'QgsProcessingFeedback' is not defined
Here is the code and error:
<pre>
processing.runAndLoadResults("native:dissolve", {'INPUT':layer_district,
'FIELD':['STATENAME'],
'OUTPUT':'memory:'})
Traceback (most recent call last):
File "C:\OSGEO4~1\apps\Python36\lib\code.py", line 91, in runcode
exec(code, self.locals)
File "<input>", line 3, in <module>
File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\tools\general.py", line 109, in runAndLoadResults
return Processing.runAlgorithm(alg, parameters=parameters, onFinish=handleAlgorithmResults, feedback=feedback, context=context)
File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\core\Processing.py", line 119, in runAlgorithm
feedback = QgsProcessingFeedback()
NameError: name 'QgsProcessingFeedback' is not defined
</pre>