[QGIS-Developer] QGIS unstable on debian testing

Jorge Gustavo Rocha jgr at di.uminho.pt
Tue Apr 14 05:25:54 PDT 2020


Hi uclaros,

No crash here, running your PyQGIS code, on Ubuntu. Even if you compile
Proj 6.3.1 + GDAL 3.x + QGIS properly, we can have problems with Python.

For example, I recently changed to Python 3.7 and I had to:
sudo pip3 install pyproj --no-binary pyproj
sudo pip3 install owslib
and recompile PROJ+GDAL+QGIS to have it working again.

Don't forget that after compiling GDAL, you have to:
cd swig/python
python3 setup.py build
sudo python3 setup.py install

After compiling QGIS, you also have to take care of your Python path
environment.

The problem with the code you mentioned, might be related to the Python
environment and not with QGIS itself, but this is just a wild guess. Are
you running the code in the Python console?

Have you run QgsApplication.showSettings() and checked the output?

Regards,

Jorge Gustavo

On 14/04/20 12:04, uclaros wrote:
> Part of my problems seem to be caused by the fact that intersections between
> a polygon or linestring and a point cause QGIS to crash...
> eg. the following python code:
> 
> QgsGeometry.fromWkt('Polygon ((0 0, 1 1, 1 0, 0
> 0))').intersection(QgsGeometry.fromWkt('Point (42 0)'))
> 
> 
> 
> 
> 
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/QGIS-Developer-f4099106.html
> _______________________________________________
> 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
> 

J. Gustavo
-- 
Jorge Gustavo Rocha
Departamento de Informática
Universidade do Minho
4710-057 Braga
Gabinete 3.29 (Piso 3)
Tel: +351 253604480
Fax: +351 253604471
Móvel: +351 910333888
skype: nabocudnosor


More information about the QGIS-Developer mailing list