From 2713a10fa283e49169494f81ba60754a2a60adf7 Mon Sep 17 00:00:00 2001
From: Remi Cresson <remi.cresson@irstea.fr>
Date: Mon, 21 Mar 2022 15:20:40 +0100
Subject: [PATCH] FIX: import gdal from osgeo

---
 python/otbtf.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/python/otbtf.py b/python/otbtf.py
index a23d5237..860e86a7 100644
--- a/python/otbtf.py
+++ b/python/otbtf.py
@@ -2,7 +2,7 @@
 # ==========================================================================
 #
 #   Copyright 2018-2019 IRSTEA
-#   Copyright 2020-2021 INRAE
+#   Copyright 2020-2022 INRAE
 #
 #   Licensed under the Apache License, Version 2.0 (the "License");
 #   you may not use this file except in compliance with the License.
@@ -28,7 +28,7 @@ import logging
 from abc import ABC, abstractmethod
 import numpy as np
 import tensorflow as tf
-import gdal
+from osgeo import gdal
 
 
 # ----------------------------------------------------- Helpers --------------------------------------------------------
-- 
GitLab