Bug report #16238

Updated by Alexander Bruy about 6 years ago

Loading a plugin that adds to the processing plugin leads to a keyerror:

<pre>

Traceback (most recent call last):

File "/home/ajolma/usr/share/qgis/python/plugins/processing/gui/ProcessingToolbox.py", line 320, in addProvider

providerItem = TreeProviderItem(provider_id, self.algorithmTree, self)

File "/home/ajolma/usr/share/qgis/python/plugins/processing/gui/ProcessingToolbox.py", line 383, in __init__

self.populate()

File "/home/ajolma/usr/share/qgis/python/plugins/processing/gui/ProcessingToolbox.py", line 395, in populate

provider = algList.algs[self.provider_id]

KeyError: 'perl'

</pre>

This is probably due to a bug in core/alglist.py, where the provider is added to processing registry before adding it to the algs hash, leading to a chicken-and-egg type of problem.



The bug is not fatal since the plugin gets loaded and once it is activated in the processing options (a deactivate - activate cycle is needed), it is ok.



In addition, I did not get the _loadAlgorithms method of the provider to execute via any other way than through an unload-load-deactivate-activate cycle.

Back