<div dir="ltr">Hi everyone, basically i build from source GDAL 3.2.2 and install the python bindings via pip3 install gdal==3.2.2 <br><br>Later i install numpy, i have read online that the numpy must be installed before GDAL python bindings.<br>So i tried to uninstall python gdal and than reinstall it, but the problem still persists.<br><br>Do you have any suggestions about it?<br><br>Python3 libraries:<br>GDAL 3.2.2<br>NUMPY 1.21.2<br><br>SWIG 4.0.2<br><br>LOG:<br><pre style="margin-top:0px;margin-bottom:0px;border:0px">ModuleNotFoundError: No module named 'osgeo._gdal_array'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "temp-1544239507789228725main.py", line 98, in <module>
SSRD,gtSSRD = tiff2array(path_to_tiff, band_SSRD)
File "/hadoop/yarn/local/usercache/dispatcher/appcache/application_1628674283442_0030/container_e33_1628674283442_0030_01_000001/61a5101c-d78d-494d-b0d6-ef16719143719035222534140350861632485975806.zip/utility/rasterutils.py", line 58, in tiff2array
File "/usr/local/lib/python3.7/site-packages/osgeo/gdal.py", line 3832, in ReadAsArray
from osgeo import gdalnumeric
File "/usr/local/lib/python3.7/site-packages/osgeo/gdalnumeric.py", line 2, in <module>
from osgeo.gdal_array import *
File "/usr/local/lib/python3.7/site-packages/osgeo/gdal_array.py", line 17, in <module>
_gdal_array = swig_import_helper()
File "/usr/local/lib/python3.7/site-packages/osgeo/gdal_array.py", line 16, in swig_import_helper
return importlib.import_module('_gdal_array')
File "/usr/local/lib/python3.7/importlib/__init__.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named '_gdal_array'</pre></div>