[QGIS-Developer] segmentation fault in standalone script using PyQGIS

Mélanie Dol Melanie.Dol at sat-ocean.com
Fri Oct 28 08:10:58 PDT 2022


Hi Jacky,

Yes of course. Please find attached my script.

Regards,

Mélanie

On 10/28/22 4:55 PM, Jacky Volpes via QGIS-Developer wrote:
> Hi Mélanie,
>
> Have you initialized your standalone script as shown in 
> https://docs.qgis.org/3.22/en/docs/pyqgis_developer_cookbook/intro.html#using-pyqgis-in-standalone-scripts 
> ?
>
> Best regards,
> Jacky
>
>
> Le 28/10/2022 à 16:40, Mélanie Dol via QGIS-Developer a écrit :
>> Hi Andrea,
>>
>> Thank you. I've updated with QGIS 3.26 Buenos Aires. The warning 
>> message have disappeared. Unfortunately, the script still generates a 
>> segmentation fault.
>>
>> Best regards,
>>
>> Mélanie Dol
>>
>> On 10/28/22 11:47 AM, Andrea Giudiceandrea via QGIS-Developer wrote:
>>> Il 27/10/2022 16:34, Mélanie Dol via QGIS-Developer ha scritto:
>>>> /usr/share/qgis/python/plugins/processing/algs/grass7/Grass7Utils.py:191: 
>>>> SyntaxWarning: "is" with a literal. Did you mean "=="?
>>>>   if path is '':
>>>
>>> Hi Mélanie,
>>> while I don't know why that script generates a segmentation fault, 
>>> It seems you are using QGIS 3.10 which is a three years old version. 
>>> The QGIS repository for Ubuntu 20.04 currently offers the latest 
>>> available QGIS LTR 3.22.12.
>>>
>>> Best regards.
>>>
>>> Andrea Giudiceandrea
>>>
>>> _______________________________________________
>>> QGIS-Developer mailing list
>>> QGIS-Developer at lists.osgeo.org
>>> List info:https://lists.osgeo.org/mailman/listinfo/qgis-developer
>>> Unsubscribe:https://lists.osgeo.org/mailman/listinfo/qgis-developer
>>
>>
>> _______________________________________________
>> QGIS-Developer mailing list
>> QGIS-Developer at lists.osgeo.org
>> List info:https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe:https://lists.osgeo.org/mailman/listinfo/qgis-developer
>
> -- 
> Jacky Volpes
>
> Ingénieur SIG - Oslandia
>
> _______________________________________________
> QGIS-Developer mailing list
> QGIS-Developer at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20221028/9091011c/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Create_Style_QGIS.py
Type: text/x-python
Size: 7043 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20221028/9091011c/attachment.py>


More information about the QGIS-Developer mailing list