(please keep the list cc'ed in your replies) There's no such file as _gdal_array.py. But there should be a file named like _gdal_array.cpython-36m-x86_64-linux-gnu.so with the native code of the binding corresponding to gdal_array.py Perhaps try make clean before rebuilding
> Hello Even, > > It has been always installed, from pip3, I also tried to build it from > source.. and still no success. What _gdal_array.py contains that > gdal_array.py does not? Is it possible to just copy that file from someone > who has it? > > Imanol > > > El lun., 3 sept. 2018 a las 15:17, Even Rouault > (<even.roua...@spatialys.com>) > escribió: > > 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 -- 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