Was recently upgraded to ArcPro 2.9.1. I had been previously working in a 2.8.x version. We have a few tools that reference the gdal library and ran correctly. After upgrade to 2.9.1 the tool box fails to open and syntax checks give the following:
---File "<string>", line 33, in <module>
ModuleNotFoundError: No module named 'gdal'---
I have tried to import gdal in the python window and receive and import error. According to the python package manager. gdal 3.3.0 is currently installed. I have tried in the default environment and a clone.
Any way to get these modules to function correctly?
Solved! Go to Solution.
Take a look at this as I believe there were some updates to GDAL for ArcGIS Pro 2.9.x: https://pro.arcgis.com/en/pro-app/latest/get-started/whats-new-in-arcgis-pro.htm#ESRI_SECTION1_546A5...
Take a look at this as I believe there were some updates to GDAL for ArcGIS Pro 2.9.x: https://pro.arcgis.com/en/pro-app/latest/get-started/whats-new-in-arcgis-pro.htm#ESRI_SECTION1_546A5...
Thank you so much! per that article, a simple transition from 'import gdal' to 'from osgeo import gdal' did the trick.
Great to hear!