Python snappy with two version GDAL problem

hello

i create a simple script using one python snappy function and one GDAL function in the same script.
the problem is any time to run snappy code then change GDAL version in this script with as a result to crashing GDAL function .

INFO: org.esa.s2tbx.dataio.gdal.GDALVersion: Incompatible GDAL 3.2.1 found on system. Internal GDAL 3.0.0 from distribution will be used.
INFO: org.esa.s2tbx.dataio.gdal.GDALVersion: Internal GDAL 3.0.0 set to be used by SNAP.

Any idea how to avoid set GDAL 3.0.0 version by SNAP ?

SNAP 8.0
ubuntu GDAL Version 3.2.1 (export CPLUS_INCLUDE_PATH=/usr/include/gdal ,
export C_INCLUDE_PATH=/usr/include/gdal )
SNAP GDAL Version 3.0.0
python 3.8

Upgrade: SNAP 9 uses gdal-3.2.1

1 Like