I am programming with PyQQIS using QGIS DuFour(old version) and QGIS Las Palmas(latest version) and Python 2.7 on my system.

On QGIS DuFour I can export my model to Python script, on QGIS Las Palmas I can't.

I have synchronize my Python system with PyQgis and QGIS Las Palmas so I can create Python QGIS script standalone OK with that.

Now I want to export all my model from QGIS DuFour to Python scripts and run these scripts with PyQgis from QGIS Las Palmas.

How can I do that?

  • As per the Tour there should be only one question per question. – PolyGeo Nov 28 '16 at 21:36
  • i update my ask – Mar Nov 28 '16 at 22:18

The latest Processing plugin version has brought back the function to export models to scripts. This plugin has become a core plugin for QGIS lately and resides within the QGIS directory. The older versions of QGIS such Dufour uses the plugin externally and it resides in the .qgis2/python/plugins/ directory.

My guess is there is a conflict between the two plugin versions. I would probably suggest either deleting (or moving) the processing folder inside your .qgis2/python/plugins/ directory then load QGIS Las palmas.

You should also note that there have been significant changes made to the processing plugin, especially a number of algorithms in the toolbox (e.g. the parameters of various algorithms have been modified). So it may be likely that when you try to run a script originally from QGIS Dufour, you may experience errors.

  • you say latest Processing plugin version has brought back the function to export models to python scripts ? – Mar Nov 29 '16 at 13:23
  • @Mar - I am using QGIS 2.18.0 and the Processing version which came with it is 2.12.99. The option to export a model to a python script is available as you can see here. – Joseph Nov 30 '16 at 10:29
  • 1
    yes i see now is available thnx all problem solve – Mar Nov 30 '16 at 16:18
  • @Mar - Most welcome, glad it helped and good luck =) – Joseph Nov 30 '16 at 16:19

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.