Bug report #15335
[Processing] Python error when i try to open a model
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | Victor Olaya | ||
Category: | Processing/Modeller | ||
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 #: | 23267 |
Description
Hi, I receive a python error when i try to open a model that is not in the proper Processing model folder (C:\\Users\\11186cs\\.qgis2\\processing\\models)
If I first copy the model into the folder, then it is correctly opened.
Python Error:
Traceback (most recent call last):
File "C:/OSGeo4W/apps/qgis/./python/plugins\\processing\\gui\\ProcessingToolbox.py", line 276, in executeAlgorithm
action.execute()
File "C:/OSGeo4W/apps/qgis/./python/plugins\\processing\\modeler\\AddModelFromFileAction.py", line 74, in execute
destFilename = os.path.join(ModelerUtils.modelsFolder(), os.path.basename(filename))
AttributeError: class ModelerUtils has no attribute 'modelsFolder'
Qgis 2.16
win 8
Associated revisions
[processing] use default models folder when adding model from file (fix #15335)
[processing] use default models folder when adding model from file (fix #15335)
(cherry picked from commit b167c09e4412b1bf8559020a529b80e520b28b22)
[processing] use default models folder when adding model from file (fix #15335)
(cherry picked from commit b167c09e4412b1bf8559020a529b80e520b28b22)
Revert "[processing] use default models folder when adding model from file (fix #15335)"
This reverts commit ebd5b0bc3ada82feb65d2ac3932f29b7a7c615b2 cherry-picked by mistake
[processing] fixed add model from file
fixes #15335
History
#1 Updated by Paolo Cavallini over 8 years ago
Please remove your local processing install first.
#2 Updated by stefano campus over 8 years ago
it's a brand new installation via osgeo4w with qgis 2.16 and qgis dev only.
all keys in the registry were deleted before instaltion as the .qgis2 folder.
processing is not a plugin anymore, is it?
so which local installation do i have to dleete?
thank you
s.
#3 Updated by Alexander Bruy over 8 years ago
- Status changed from Open to Closed
Fixed in changeset b167c09e4412b1bf8559020a529b80e520b28b22.