<div dir="ltr"><div dir="ltr"><div>Hey,<br></div><div><br>Actually that one is missing. I have { _gdal, _gnm, _gdalconst, _ogr, _osr}.cpython-36m-x86-linux-gnu.so but no _<a href="http://gdal_array.cpython-36m-x86-linux-gnu.so">gdal_array.cpython-36m-x86-linux-gnu.so</a>. <br><br>If there is no _gdal_array.py, why gdal_array.py tries to import it? <br></div><div>How can be missing _<a href="http://gdal_array.cpython-36m-x86-linux-gnu.so">gdal_array.cpython-36m-x86-linux-gnu.so</a> if numpy is installed? <br><br></div><div>Well, I deleted the folder osgeo, i did make clean and compiled again, but now i get this error:<br>ERROR 1: NUMPY driver was compiled against GDAL 2.2, but the current library version is 2.3<br><br></div><div>It's getting worse. <br></div><div><br></div><div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr">El lun., 3 sept. 2018 a las 15:49, Even Rouault (<<a href="mailto:even.rouault@spatialys.com">even.rouault@spatialys.com</a>>) escribió:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">(please keep the list cc'ed in your replies)<br>
<br>
There's no such file as _gdal_array.py. But there should be a file named like <br>
_<a href="http://gdal_array.cpython-36m-x86_64-linux-gnu.so" rel="noreferrer" target="_blank">gdal_array.cpython-36m-x86_64-linux-gnu.so</a> with the native code of the <br>
binding corresponding to gdal_array.py<br>
Perhaps try make clean before rebuilding<br>
<br>
> Hello Even,<br>
> <br>
> It has been always installed, from pip3, I also tried to build it from<br>
> source.. and still no success. What _gdal_array.py contains that<br>
> gdal_array.py does not? Is it possible to just copy that file from someone<br>
> who has it?<br>
> <br>
> Imanol<br>
> <br>
> <br>
> El lun., 3 sept. 2018 a las 15:17, Even Rouault<br>
> (<<a href="mailto:even.rouault@spatialys.com" target="_blank">even.rouault@spatialys.com</a>>)<br>
> escribió:<br>
> > Imanol,<br>
> > <br>
> > it is likely you need also to install the python-numpy package. The<br>
> > gdal_array.py extension used by ReadAsArray() is only built if numpy is<br>
> > available when the bindings are built.<br>
> > <br>
> > Even<br>
> > <br>
> > > Dear all,<br>
> > > <br>
> > > I have been struggling with these for some days. Usually I always build<br>
> > > from source GDAL, it tends to give me better results than install<br>
> > <br>
> > packages.<br>
> > <br>
> > > But this time no, I have tried with `./configure', `./configure<br>
> > > --with-python' and `./configure --with-python=python3.6'. It seems to<br>
> > > compile and work, until I do `ReadAsArray()`, when it complains about<br>
> > > the<br>
> > > missing `_gdal_array.py`. I tried to compile also numpy from source.<br>
> > > <br>
> > > I don't write only to ask for a solution, but also to try to understand<br>
> > > what is this file since I can't find much info about it online.<br>
> > > `gdal_array,py` exists, but don't know what the missing one contains.<br>
> > > <br>
> > > Thank you<br>
> > <br>
> > --<br>
> > Spatialys - Geospatial professional services<br>
> > <a href="http://www.spatialys.com" rel="noreferrer" target="_blank">http://www.spatialys.com</a><br>
<br>
<br>
-- <br>
Spatialys - Geospatial professional services<br>
<a href="http://www.spatialys.com" rel="noreferrer" target="_blank">http://www.spatialys.com</a><br>
</blockquote></div>