Imanol, it is likely you need also to install the python-numpy package. The gdal_array.py extension used by ReadAsArray() is only built if numpy is available when the bindings are built.
Even > Dear all, > > I have been struggling with these for some days. Usually I always build > from source GDAL, it tends to give me better results than install packages. > > But this time no, I have tried with `./configure', `./configure > --with-python' and `./configure --with-python=python3.6'. It seems to > compile and work, until I do `ReadAsArray()`, when it complains about the > missing `_gdal_array.py`. I tried to compile also numpy from source. > > I don't write only to ask for a solution, but also to try to understand > what is this file since I can't find much info about it online. > `gdal_array,py` exists, but don't know what the missing one contains. > > Thank you -- Spatialys - Geospatial professional services http://www.spatialys.com _______________________________________________ gdal-dev mailing list gdal-dev@lists.osgeo.org https://lists.osgeo.org/mailman/listinfo/gdal-dev