[Qgis-user] PY QGIS crashing when using numpy
    Giacomo Fontanelli 
    giacomofontanelli76 at gmail.com
       
    Mon Feb 26 10:48:28 PST 2018
    
    
  
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20180226/6e7a6d4b/attachment.html>
    
    
More information about the Qgis-user
mailing list