I’ve been doing some snappy tutorials and am now trying to import rasterio for image display. When I try to do the import it gives this message:
ImportError Traceback (most recent call last) <ipython-input-1-350e27267e59> in <module> ----> 1 import rasterio C:\Miniconda3\envs\snap\lib\site-packages\rasterio\__init__.py in <module> 20 pass 21 ---> 22 from rasterio._base import gdal_version 23 from rasterio.drivers import is_blacklisted 24 from rasterio.dtypes import ( ImportError: DLL load failed: The specified module could not be found.
I’m using Jupyter lab and noticed in the bash window this message:
INFO: org.esa.s2tbx.dataio.gdal.GDALVersion: Incompatible GDAL 3.1.4 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. Native library load failed.
I’m using Python 3.6, conda, Windows 10. I downgraded GDAL to 3.0.4 (the only one available in conda-forge) but it didn’t help. I followed other online posts and added
.../env/DDLs path to my PATH. None of it has worked.
I don’t know if this is a rasterio problem or a snappy problem, so apologies if I’m posting in the wrong place. rasterio works fine in my other environments.
Edit: snappy works fine in this environment. I just can’t get snappy and rasterio to both work in the same environment.