<div dir="ltr"><div>Hello,</div><div>Please, your help with the following problem. </div><div>I am not able to see the Oracle OCI driver from python using the GDAL/OGR bindings.</div><div>The following code prints always None:</div><div><div>    from osgeo import ogr</div><div>    print(ogr.GetDriverByName( 'OCI' ))</div></div><div> Also, the driver is never listed here:</div><div><div>    drivers = [ogr.GetDriver(i).GetDescription() for i in range(ogr.GetDriverCount())]</div><div>    drivers.sort()</div><div>    print(drivers)</div></div><div><div>['ARCGEN', 'AVCBin', 'AVCE00', 'AeronavFAA', 'AmigoCloud', 'BNA', 'CAD', 'CSV', 'CSW', 'Carto', 'Cloudant', 'CouchDB', 'DGN', 'DXF', 'EDIGEO', 'ESRI Shapefile', 'ESRIJSON', 'ElasticSearch', 'GFT', 'GML', 'GMLAS', 'GPKG', 'GPSBabel', 'GPSTrackMaker', 'GPX', 'GeoJSON', 'GeoRSS', 'Geoconcept', 'HTF', 'HTTP', 'Idrisi', 'Interlis 1', 'Interlis 2', 'JML', 'JP2OpenJPEG', 'KML', 'LIBKML', 'MBTiles', 'MVT', 'MapInfo File', 'Memory', 'NAS', 'ODS', 'OGR_DODS', 'OGR_GMT', 'OGR_PDS', 'OGR_SDTS', 'OGR_VRT', 'OSM', 'OpenAir', 'OpenFileGDB', 'PCIDSK', 'PDF', 'PGDUMP', 'PLSCENES', 'PostgreSQL', 'REC', 'S57', 'SEGUKOOA', 'SEGY', 'SQLite', 'SUA', 'SVG', 'SXF', 'Selafin', 'TIGER', 'TopoJSON', 'UK .NTF', 'VDV', 'VFK', 'WAsP', 'WFS', 'WFS3', 'XLS', 'XLSX', 'XPlane', 'netCDF']</div></div><div><br></div><div>However, OCI can be used in command line with ogr2ogr and it is listed when executing ogrinfo --formats:</div><div><div>  OCI -vector- (rw+): Oracle Spatial</div></div><div><br></div><div>My environment is as follows:</div><div>RHOL 7, GDAL 2.3.3, Python 3.6 (with Numpy 1.16.1), Oracle Instant Client 18.5</div><div><br></div><div>I have tried building the python bindings using the following alternatives:</div><div>1) Building the python bindings with the GDAL source tree:</div><div>./configure --prefix=<GDAL_PREFIX> --with-curl=/usr/bin/curl-config --with-python=<PYTHON3.6_BIN>/python  --with-oci-include=$ORACLE_HOME/sdk/include --with-oci=$ORACLE_HOME<br></div><div>2) Downloading the python bindings from <a href="https://pypi.org/project/GDAL/2.3.3/#files" target="_blank">https://pypi.org/project/GDAL/2.3.3/#files</a> and running setup.py build/install process</div><div>3) Using pip install GDAL==2.3.3</div><div><br></div><div>The result is the same always, I can use the GDAL/OGR python API but cannot see or use the OCI driver (the same for GeoRaster).</div><div><br></div><div>As suggested at <a href="https://trac.osgeo.org/gdal/wiki/BuildingOnUnix#OCIwithoutinstallingOracle" target="_blank">https://trac.osgeo.org/gdal/wiki/BuildingOnUnix#OCIwithoutinstallingOracle</a>, I have my ORACLE_HOME variable pointing to the instantclient folder, ORACLE_HOME is also present at the PATH and LD_LIBRARY_PATH env vars as it is GDAL/bin and GDAL/lib respectively.</div><div><br></div><div>I wonder if I'm missing something.</div><div><br></div><div>Any help is appreciated.</div><br class="gmail-Apple-interchange-newline"></div>