Cannot access gdal libraries

1353
3
Jump to solution
02-15-2022 05:34 AM
MicahReed
New Contributor

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?

0 Kudos
1 Solution

Accepted Solutions
George_Thompson
Esri Frequent Contributor

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...

--- George T.

View solution in original post

3 Replies
George_Thompson
Esri Frequent Contributor

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...

--- George T.
MicahReed
New Contributor

Thank you so much! per that article, a simple transition from 'import gdal' to 'from osgeo import gdal' did the trick. 

0 Kudos
George_Thompson
Esri Frequent Contributor

Great to hear!

--- George T.
0 Kudos