Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Processing: models from repository are not usable in new version #19713

Closed
qgib opened this issue Oct 18, 2014 · 4 comments
Closed

Processing: models from repository are not usable in new version #19713

qgib opened this issue Oct 18, 2014 · 4 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms

Comments

@qgib
Copy link
Contributor

qgib commented Oct 18, 2014

Author Name: Paolo Cavallini (@pcav)
Original Redmine Issue: 11437
Affected QGIS version: master
Redmine category:processing/modeller
Assignee: Victor Olaya


They are shown as empty, with blank name

@qgib
Copy link
Contributor Author

qgib commented Oct 18, 2014

Author Name: Giovanni Manghi (@gioman)


by the way in 2.4 importing models from repository does not seems to add them in the processing toolbox, but files are copied to the proper directory inside .qgis2.

If trying to add those models using "add model from file" causes

An error has occured while executing Python code:

Traceback (most recent call last):
File "C:/OSGEO41/apps/qgis/./python/plugins\processing\gui\ProcessingToolbox.py", line 208, in executeAlgorithm
action.execute()
File "C:/OSGEO4
1/apps/qgis/./python/plugins\processing\modeler\AddModelFromFileAction.py", line 56, in execute
shutil.copyfile(filename,destFilename)
File "C:\OSGEO4~1\apps\Python27\lib\shutil.py", line 69, in copyfile
raise Error("%s and %s are the same file" % (src, dst))
Error: C:/Users/giovanni/.qgis2/processing/models/modelwithin.model and C:\\Users\\giovanni\\.qgis2\\processing\\models\\modelwithin.model are the same file


  • version was changed from 2.4.0 to master

@qgib
Copy link
Contributor Author

qgib commented Oct 18, 2014

Author Name: Victor Olaya (@volaya)


models in the repo have the syntax of the new modeler (so they do not work in 2.4), but with the syntax previous to the parametres API refactoring (so they fail to load in current master)

I have to update the models and it will be fine

@qgib
Copy link
Contributor Author

qgib commented Nov 19, 2014

Author Name: Alexander Bruy (@alexbruy)


Should be fixed now


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Nov 21, 2014

Author Name: Paolo Cavallini (@pcav)


Thanks


  • resolution was changed from to fixed/implemented
  • status_id was changed from Feedback to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms labels May 25, 2019
@qgib qgib closed this as completed May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Processing Relating to QGIS Processing framework or individual Processing algorithms
Projects
None yet
Development

No branches or pull requests

1 participant