Bug report #15283

Commander python error

Added by Nino Formica over 8 years ago. Updated about 7 years ago.

Status:Closed
Priority:Normal
Assignee:Victor Olaya
Category:Unknown
Affected QGIS version:2.16.0 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:23218

Description

When "commander" runs in new release 2.16.0, a Python error is generated :

AttributeError: 'str' object has no attribute 'name'
Traceback (most recent call last):
File "C:/OSGEO4~1/apps/qgis/./python/plugins\\processing\\ProcessingPlugin.py", line 149, in openCommander
self.iface.mapCanvas())
File "C:/OSGEO4~1/apps/qgis/./python/plugins\\processing\\gui\\CommanderWindow.py", line 51, in init
self.initGui()
File "C:/OSGEO4~1/apps/qgis/./python/plugins\\processing\\gui\\CommanderWindow.py", line 77, in initGui
self.fillCombo()
File "C:/OSGEO4~1/apps/qgis/./python/plugins\\processing\\gui\\CommanderWindow.py", line 105, in fillCombo
self.combo.addItem('Processing algorithm: ' + alg.name)
AttributeError: 'str' object has no attribute 'name'

Python version: 2.7.5 (default, May 15 2013, 22:44:16) [MSC v.1500 64 bit (AMD64)]
QGIS version: 2.16.0-Nødebo Nødebo, d0b3e39

Associated revisions

Revision d3882d55
Added by Jürgen Fischer about 8 years ago

processing: fix population of commander combobox (fixes #15283)

Revision 420311e7
Added by Jürgen Fischer about 8 years ago

processing: fix population of commander combobox (fixes #15283)

(cherry picked from commit d3882d5)

Revision 25886796
Added by Jürgen Fischer about 8 years ago

processing: fix population of commander combobox (fixes #15283)

(cherry picked from commit d3882d5)

History

#1 Updated by Ivan Katanović over 8 years ago

Can confirm this bug on Ubuntu installed from http://qgis.org/debian.

Python version: 2.7.12 (default, Jul 1 2016, 15:12:24) [GCC 5.4.0 20160609]
QGIS version: 2.16.0-Nødebo Nødebo, 2f9ed29

#2 Updated by Ivan Katanović over 8 years ago

  • Assignee set to Victor Olaya

After having looked at the code on github, I saw that Victor added last commit dealing with related code.

I assume that something went wrong during separation of alglist in its own module.

#3 Updated by Randal Hale over 8 years ago

Confirm on Xubuntu 16.04 and QGIS 2.16.1

#4 Updated by Yrieix Ruffier about 8 years ago

Confirm on Windows 10 and QGis 2.16.1 with python 2.7.12

#5 Updated by Jürgen Fischer about 8 years ago

  • Status changed from Open to Closed

#6 Updated by Jürgen Fischer about 7 years ago

  • Category set to Unknown

Also available in: Atom PDF