deprecated gdal import syntax replaced
The syntax
import gdal
is deprecated since GDAL 2.0. It's recommended(*) to use
from osgeo import gdal
See https://pypi.org/project/GDAL/
On Debian testing (GDAL installed via apt
) it's even failing by
ModuleNotFoundError: No module named 'gdal'