I have this error when I run some of my python scripts. It does not always occur. It always happens at the END of the script, (all script actions finish!!)
I mainly need to fix it because it is annoying and it prevents me from stringing separate scripts together.
The traceback I get is:
Traceback (most recent call last): File "C:/QGIS/apps/qgis/./python/plugins\processing\core\GeoAlgorithm.py", line 203, in execute self.processAlgorithm(progress) File "C:/QGIS/apps/qgis/./python/plugins\processing\script\ScriptAlgorithm.py", line 378, in processAlgorithm exec((script), ns) File "<string>", line 146, in <module> RuntimeError: wrapped C/C++ object of type QProgressBar has been deleted
However the line it refers to does not seem to make any sense:
error2 = QgsVectorFileWriter.writeAsVectorFormat(bufflayer, buffdef, "CP1250", None, "ESRI Shapefile")
Note that this and all of the python after this command always run just fine. Any thoughts?