6

Where has the export model to Python script option gone in QGIS 2.6.0?

  • If you right-click on the model from Processing Toolbox, there should be an option to Save as Python script. – Joseph Nov 10 '14 at 10:58
  • Yes, this did work in the previous QGIS package I used Version 2.0.1, but the option is missing from the right click menu in 2.6 – user20083 Nov 10 '14 at 12:11
  • Weird, I am also using 2.6 and the option is still available for me. Have you tried disabling the Processing plugin, restart QGIS and enable the plugin again? – Joseph Nov 10 '14 at 12:14
  • Tried that but no change. I will reinstall and see if that helps. I have also see the problem documented here:comments.gmane.org/gmane.comp.gis.qgis.devel/34664 – user20083 Nov 10 '14 at 12:34
  • What platform are you using (Windows, Linux)? Perhaps it could be a bug. – Joseph Nov 10 '14 at 13:10
7

The "export to Python" option in the modeler has been taken out in the latest version. The modeler has been rewritten and there was not enough time to implement this feature. We have released the new version without it, considering that the improvements that this new modeler have are really worth it. The "export to Python" version will be available again in future releases

If you are still seeing that option, it means that QGIS is not picking the latest version correctly and is loading an older version of Processing. Removing the [home]/.qgis2/python/plugins/Processing folder (in case it exists) might help, since it will remove any other version of Processing that was installed using the plugin manager.

  • 7
    Does anyone know when this will be added again? QGIS 2.8 doesn't seem to have it. Is this even planned for future releases? – baal Feb 26 '15 at 13:37
2

This functionality is available again in the 3.6 release. The release notes are documented here: https://qgis.org/en/site/forusers/visualchangelog36/index.html#feature-resurrected-model-to-python-script-functionality

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.