[Qgis-user] QGIS 3 : Python scripts

Jean-Baptiste Desbas jb.desbas at gmail.com
Mon Mar 5 23:41:28 PST 2018


Thank you for your explanation,
So, do you know where i can find sample or doc about making python scripts
in QGIS 3 ?

2018-03-05 9:22 GMT+01:00 Etienne Trimaille <etienne.trimaille at gmail.com>:

> We should say somewhere that it's not a "script" with some simple commands
> anymore (such as print()), but it's now following OOP (Object Oriented
> Programming) and the user must define his class and methods following the
> QGIS algorithm.
>
> Can we provide a template in the editor? Is-there a working script
> somewhere?
>
> 2018-03-05 9:13 GMT+01:00 Alexander Bruy <alexander.bruy at gmail.com>:
>
>> "Create new script" was moved to the toolbar inside Processing toolbox.
>>
>> As Processing API was changed, scripts should be adopted to new API.
>>
>> 2018-03-05 10:10 GMT+02:00 Jean-Baptiste Desbas <jb.desbas at gmail.com>:
>>
>>> Hello,
>>>
>>> Since QGIS 3, I can't run python scripts :
>>> - In the toolbox, there is no "create new scripte" under the script
>>> block in the toolbox
>>> - In the script editeur, when i try to run a script i have an alert :
>>> "Seems ther is no valid script in the file"
>>>
>>> The issue occurs in QGIS 3.0 and 3.1.0-9.
>>> I am on Windows 10 - 64bits.
>>>
>>> Anyone with the same issue ?
>>>
>>> Regards,
>>>
>>>
>>>
>>>
>>>
>>>
>>> _______________________________________________
>>> Qgis-user mailing list
>>> Qgis-user at lists.osgeo.org
>>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>>
>>
>>
>>
>> --
>> Alexander Bruy
>>
>> _______________________________________________
>> Qgis-user mailing list
>> Qgis-user at lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20180306/f8c2725b/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 12988 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20180306/f8c2725b/attachment.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 5371 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20180306/f8c2725b/attachment-0001.png>


More information about the Qgis-user mailing list