Bug report #14306
Downloaded models not shown in Toolbox + python error
|Affected QGIS version:||master||Regression?:||No|
|Operating System:||Easy fix?:||No|
|Pull Request or Patch supplied:||No||Resolution:|
|Crashes QGIS or corrupts data:||No||Copied to github as #:||22297|
Downloading models from within Processing does not work: the models are
downloaded and saved locally, but not displayed on the alg tree,
presumably because they are not valid, and should be updated.
#1 Updated by Alexander Bruy over 5 years ago
- Subject changed from Download models does not work to Downloaded models does not shown in Toolbox
If models downloaded, than this functionality works fine.
IMHO in case of 3rd party models/scripts we shpuld have same policy as with plugins. It is models/scripts authors responsibility to keep it updated and functional, not ours.
#2 Updated by Paolo Cavallini over 5 years ago
This makes sense. Previous versions allowed to see the models, that returned an error.
Probably the long term solution to this issue is allowing min/max version for the models, just like QGIS plugins.
In this way, only suitable models will be shown and downloaded.
#4 Updated by Giovanni Manghi over 5 years ago
- Subject changed from Downloaded models not shown in Toolbox to Downloaded models not shown in Toolbox + python error
- Status changed from Open to Feedback
There is anyway something fishy in master:
the tool "get models from on line collection" allows right now to choose among 6 models. The last 4 are installed but do not show immediately, just after a restart. This is ok on 2.12
On the other hand the first two, contributed by JEANDENANS L., they install, do not show, but after a restart a python error comes up and Processing does not start.
The first problem seems a general one and should be fixed as a regression, the second one if caused by a not updated model then could be solved by removing the models from the repo.
Traceback (most recent call last):
File "C:/OSGeo4W/apps/qgis-dev/./python\\qgis\\utils.py", line 315, in startPlugin
File "C:/OSGeo4W/apps/qgis-dev/./python/plugins\\processing\\ProcessingPlugin.py", line 57, in initGui
File "C:/OSGeo4W/apps/qgis-dev/./python/plugins\\processing\\core\\Processing.py", line 148, in initialize
File "C:/OSGeo4W/apps/qgis-dev/./python/plugins\\processing\\core\\Processing.py", line 165, in loadFromProviders
File "C:/OSGeo4W/apps/qgis-dev/./python/plugins\\processing\\core\\Processing.py", line 216, in loadAlgorithms
File "C:/OSGeo4W/apps/qgis-dev/./python/plugins\\processing\\core\\AlgorithmProvider.py", line 54, in loadAlgorithms
File "C:/OSGeo4W/apps/qgis-dev/./python/plugins\\processing\\modeler\\ModelerAlgorithmProvider.py", line 77, in _loadAlgorithms
File "C:/OSGeo4W/apps/qgis-dev/./python/plugins\\processing\\modeler\\ModelerAlgorithmProvider.py", line 97, in loadFromFolder
self.tr('Could not load model %s\
%s', 'ModelerAlgorithmProvider') % (descriptionFile, e.msg))
TypeError: not all arguments converted during string formatting