Bug #6123

ftool dissolve can not be executed from qgis python console

Added by richard burcher 10 months ago. Updated 10 months ago.

Status:Closed Start Date:07/30/2012
Priority:Normal Due date:
Assigned to:- % Done:

0%

Category:-
Target version:-
Patch supplied:No

Description

first bug report, please bear with me.

issue:
can not use ftools dissolve through qgis python console.

querying Sextante.alghelp("ftools:dissolve") returns TypeError: cannot concatenate 'str' and 'NoneType' objects.

system:
windows 7
sextante r319

======

Sextante.alghelp("ftools:dissolve")
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-43-8eba2529d7db> in <module>()
----> 1 Sextante.alghelp("ftools:dissolve")

C:\Users\richard\.qgis\python\plugins\sextante\core\Sextante.py in alghelp(name)
242 alg = Sextante.getAlgorithm(name)
243 if alg != None:
--> 244 print(str(alg))
245 else:
246 print "Algorithm not found"

C:\Users\richard\.qgis\python\plugins\sextante\core\GeoAlgorithm.py in str(self)
215 s = "ALGORITHM: " + self.name + "\n"
216 for param in self.parameters:
--> 217 s+=("\t" + str(param) + "\n")
218 for out in self.outputs:
219 if not out.hidden:

C:\Users\richard\.qgis\python\plugins\sextante\parameters\ParameterTableField.py in str(self)
32
33 def str(self):
---> 34 return self.name + " <" + self.__module__.split(".")[-1] +" from " + self.value + ">"

TypeError: cannot concatenate 'str' and 'NoneType' objects

History

Updated by Victor Olaya 10 months ago

  • Status changed from New to Resolved

fixed in r321

Updated by richard burcher 10 months ago

Apologies for late reply.

Can confirm it works.

Again, thanks so much!

Updated by Paolo Cavallini 10 months ago

Please close it, then. You should be enabled to do so by now.
Thanks!

Updated by stefano campus 10 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF