Hi forum

each time I try to write a code using the numpy library, qgis crashes and
quits, so I can't geyt any relevant information about my error.
This happen when I use qgis 2.18.16 in Lubuntu 16.04.

For example, if I try to run this very small script

import numpy as np
from osgeo import gdal

ds = gdal.Open("/home/giacomo/Dropbox/Linux/VHVV.tif")
myarray = np.array(ds.GetRasterBand(1).ReadAsArray()

Qgis quits.

The strange thing is that it doesn't happen when I launch the same script
in QGIS 2.18.15 in Windows 10.

Any help

Thank you
_______________________________________________
Qgis-user mailing list
Qgis-user@lists.osgeo.org
List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user

Reply via email to